From 17d11c23f0e1f47f2b5f68f9f49659fde189372f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 31 Dec 2013 15:23:07 +0000 Subject: [PATCH] fixed bug in I/O PCIBAR detection --- BaS_gcc/include/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_gcc/include/pci.h b/BaS_gcc/include/pci.h index 8cffff8..318bff7 100644 --- a/BaS_gcc/include/pci.h +++ b/BaS_gcc/include/pci.h @@ -215,7 +215,7 @@ typedef struct /* structure of address conversion */ #define PCI_INTERRUPT_PIN(i) (((i) & 0xff00) >> 8) #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 PCI_MEMBAR_TYPE(i) (((i) & 0x6) >> 1) #define PCI_IOBAR_ADR(i) (((i) & 0xfffffffc))