diff options
| -rw-r--r-- | drivers/acpi/motherboard.c | 2 | ||||
| -rw-r--r-- | include/asm-i386/pci.h | 4 | ||||
| -rw-r--r-- | include/asm-x86_64/pci.h | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/drivers/acpi/motherboard.c b/drivers/acpi/motherboard.c index 2934475d67d6..61ea70742d49 100644 --- a/drivers/acpi/motherboard.c +++ b/drivers/acpi/motherboard.c | |||
| @@ -43,7 +43,7 @@ ACPI_MODULE_NAME ("acpi_motherboard") | |||
| 43 | */ | 43 | */ |
| 44 | #define IS_RESERVED_ADDR(base, len) \ | 44 | #define IS_RESERVED_ADDR(base, len) \ |
| 45 | (((len) > 0) && ((base) > 0) && ((base) + (len) < IO_SPACE_LIMIT) \ | 45 | (((len) > 0) && ((base) > 0) && ((base) + (len) < IO_SPACE_LIMIT) \ |
| 46 | && ((base) + (len) > 0x1000)) | 46 | && ((base) + (len) > PCIBIOS_MIN_IO)) |
| 47 | 47 | ||
| 48 | /* | 48 | /* |
| 49 | * Clearing the flag (IORESOURCE_BUSY) allows drivers to use | 49 | * Clearing the flag (IORESOURCE_BUSY) allows drivers to use |
diff --git a/include/asm-i386/pci.h b/include/asm-i386/pci.h index 2cbab30734d6..78c85985aee3 100644 --- a/include/asm-i386/pci.h +++ b/include/asm-i386/pci.h | |||
| @@ -18,9 +18,11 @@ extern unsigned int pcibios_assign_all_busses(void); | |||
| 18 | #define pcibios_scan_all_fns(a, b) 0 | 18 | #define pcibios_scan_all_fns(a, b) 0 |
| 19 | 19 | ||
| 20 | extern unsigned long pci_mem_start; | 20 | extern unsigned long pci_mem_start; |
| 21 | #define PCIBIOS_MIN_IO 0x4000 | 21 | #define PCIBIOS_MIN_IO 0x1000 |
| 22 | #define PCIBIOS_MIN_MEM (pci_mem_start) | 22 | #define PCIBIOS_MIN_MEM (pci_mem_start) |
| 23 | 23 | ||
| 24 | #define PCIBIOS_MIN_CARDBUS_IO 0x4000 | ||
| 25 | |||
| 24 | void pcibios_config_init(void); | 26 | void pcibios_config_init(void); |
| 25 | struct pci_bus * pcibios_scan_root(int bus); | 27 | struct pci_bus * pcibios_scan_root(int bus); |
| 26 | 28 | ||
diff --git a/include/asm-x86_64/pci.h b/include/asm-x86_64/pci.h index 9c4527eb55e2..eeb3088a1c9e 100644 --- a/include/asm-x86_64/pci.h +++ b/include/asm-x86_64/pci.h | |||
| @@ -22,9 +22,11 @@ extern unsigned int pcibios_assign_all_busses(void); | |||
| 22 | extern int no_iommu, force_iommu; | 22 | extern int no_iommu, force_iommu; |
| 23 | 23 | ||
| 24 | extern unsigned long pci_mem_start; | 24 | extern unsigned long pci_mem_start; |
| 25 | #define PCIBIOS_MIN_IO 0x4000 | 25 | #define PCIBIOS_MIN_IO 0x1000 |
| 26 | #define PCIBIOS_MIN_MEM (pci_mem_start) | 26 | #define PCIBIOS_MIN_MEM (pci_mem_start) |
| 27 | 27 | ||
| 28 | #define PCIBIOS_MIN_CARDBUS_IO 0x4000 | ||
| 29 | |||
| 28 | void pcibios_config_init(void); | 30 | void pcibios_config_init(void); |
| 29 | struct pci_bus * pcibios_scan_root(int bus); | 31 | struct pci_bus * pcibios_scan_root(int bus); |
| 30 | extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value); | 32 | extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value); |
