Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to determine the inteerupt pin and interrupt line #9

Merged
merged 3 commits into from May 24, 2023

Conversation

stlankes
Copy link
Contributor

@stlankes stlankes commented May 12, 2023

According to the PCI Express Specification 4.0, Min_Gnt/Max_Lat registers must be read-only and hardwired to 00h. Consequently, the function ignores the Min_Gnt/Max_Lat registers.

In addition, the calculation of the IO addresses and the size of the 64 bit memory bar was wrong.

According to the PCI Express Specification 4.0, Min_Gnt/Max_Lat registers
must be read-only and hardwired to 00h. Consequently, the function
ignores the Min_Gnt/Max_Lat registers.
as with Memory32, it must be shifted left by the number of bits
removed
If the memory size of Bar::Memory64 is represented in 32bit,
it has to be calculated like the memory size of Bar::Memory32.
@IsaacWoods
Copy link
Member

IsaacWoods commented May 24, 2023

Thanks!

🚀 Published as pci_types v0.5.0

@IsaacWoods IsaacWoods merged commit 4dd04ae into rust-osdev:master May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants