diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8b44cff2c176..1e74e1ee8bd8 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -21,6 +21,12 @@ | |||
21 | 21 | ||
22 | unsigned int pci_pm_d3_delay = 10; | 22 | unsigned int pci_pm_d3_delay = 10; |
23 | 23 | ||
24 | #define DEFAULT_CARDBUS_IO_SIZE (256) | ||
25 | #define DEFAULT_CARDBUS_MEM_SIZE (64*1024*1024) | ||
26 | /* pci=cbmemsize=nnM,cbiosize=nn can override this */ | ||
27 | unsigned long pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE; | ||
28 | unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE; | ||
29 | |||
24 | /** | 30 | /** |
25 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children | 31 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children |
26 | * @bus: pointer to PCI bus structure to search | 32 | * @bus: pointer to PCI bus structure to search |
@@ -1300,7 +1306,7 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | |||
1300 | 1306 | ||
1301 | /** | 1307 | /** |
1302 | * pci_select_bars - Make BAR mask from the type of resource | 1308 | * pci_select_bars - Make BAR mask from the type of resource |
1303 | * @pdev: the PCI device for which BAR mask is made | 1309 | * @dev: the PCI device for which BAR mask is made |
1304 | * @flags: resource type mask to be selected | 1310 | * @flags: resource type mask to be selected |
1305 | * | 1311 | * |
1306 | * This helper routine makes bar mask from the type of resource. | 1312 | * This helper routine makes bar mask from the type of resource. |
@@ -1333,6 +1339,10 @@ static int __devinit pci_setup(char *str) | |||
1333 | if (*str && (str = pcibios_setup(str)) && *str) { | 1339 | if (*str && (str = pcibios_setup(str)) && *str) { |
1334 | if (!strcmp(str, "nomsi")) { | 1340 | if (!strcmp(str, "nomsi")) { |
1335 | pci_no_msi(); | 1341 | pci_no_msi(); |
1342 | } else if (!strncmp(str, "cbiosize=", 9)) { | ||
1343 | pci_cardbus_io_size = memparse(str + 9, &str); | ||
1344 | } else if (!strncmp(str, "cbmemsize=", 10)) { | ||
1345 | pci_cardbus_mem_size = memparse(str + 10, &str); | ||
1336 | } else { | 1346 | } else { |
1337 | printk(KERN_ERR "PCI: Unknown option `%s'\n", | 1347 | printk(KERN_ERR "PCI: Unknown option `%s'\n", |
1338 | str); | 1348 | str); |