fixed bug in I/O PCIBAR detection

This commit is contained in:
Markus Fröschle
2013-12-31 15:23:07 +00:00
parent a1e84fd3aa
commit 17d11c23f0

View File

@@ -215,7 +215,7 @@ typedef struct /* structure of address conversion */
#define PCI_INTERRUPT_PIN(i) (((i) & 0xff00) >> 8) #define PCI_INTERRUPT_PIN(i) (((i) & 0xff00) >> 8)
#define PCI_INTERRUPT_LINE(i) (((i)) & 0xff) #define PCI_INTERRUPT_LINE(i) (((i)) & 0xff)
#define IS_PCI_MEM_BAR(I) ((i) & 1) == 0 #define IS_PCI_MEM_BAR(i) ((i) & 1) == 0
#define IS_PCI_IO_BAR(i) ((i) & 1) == 1 #define IS_PCI_IO_BAR(i) ((i) & 1) == 1
#define PCI_MEMBAR_TYPE(i) (((i) & 0x6) >> 1) #define PCI_MEMBAR_TYPE(i) (((i) & 0x6) >> 1)
#define PCI_IOBAR_ADR(i) (((i) & 0xfffffffc)) #define PCI_IOBAR_ADR(i) (((i) & 0xfffffffc))