PCI: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
added source tags
Line 242:
|+I/O Space BAR Layout
|-
!31 - 32
!2
!1
!20
|-
| 4-Byte Aligned Base Address
Line 251:
|}
 
When you want to retrieve the actual base address of a BAR, be sure to mask the lower bits. For Memory Space BARs, you calculate (BAR & 0xFFFFFFF0). For I/O Space BARs, you calculate (BAR & 0xFFF80xFFFFFFFC).
 
To determine the size of memory maps needed by a PCI device, you must read the BAR .