diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index bd993351db45..8c663d628d03 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -41,6 +41,12 @@ int pci_domains_supported = 1; | |||
41 | unsigned long pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE; | 41 | unsigned long pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE; |
42 | unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE; | 42 | unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE; |
43 | 43 | ||
44 | #define DEFAULT_HOTPLUG_IO_SIZE (256) | ||
45 | #define DEFAULT_HOTPLUG_MEM_SIZE (2*1024*1024) | ||
46 | /* pci=hpmemsize=nnM,hpiosize=nn can override this */ | ||
47 | unsigned long pci_hotplug_io_size = DEFAULT_HOTPLUG_IO_SIZE; | ||
48 | unsigned long pci_hotplug_mem_size = DEFAULT_HOTPLUG_MEM_SIZE; | ||
49 | |||
44 | /** | 50 | /** |
45 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children | 51 | * pci_bus_max_busnr - returns maximum PCI bus number of given bus' children |
46 | * @bus: pointer to PCI bus structure to search | 52 | * @bus: pointer to PCI bus structure to search |
@@ -2732,6 +2738,10 @@ static int __init pci_setup(char *str) | |||
2732 | strlen(str + 19)); | 2738 | strlen(str + 19)); |
2733 | } else if (!strncmp(str, "ecrc=", 5)) { | 2739 | } else if (!strncmp(str, "ecrc=", 5)) { |
2734 | pcie_ecrc_get_policy(str + 5); | 2740 | pcie_ecrc_get_policy(str + 5); |
2741 | } else if (!strncmp(str, "hpiosize=", 9)) { | ||
2742 | pci_hotplug_io_size = memparse(str + 9, &str); | ||
2743 | } else if (!strncmp(str, "hpmemsize=", 10)) { | ||
2744 | pci_hotplug_mem_size = memparse(str + 10, &str); | ||
2735 | } else { | 2745 | } else { |
2736 | printk(KERN_ERR "PCI: Unknown option `%s'\n", | 2746 | printk(KERN_ERR "PCI: Unknown option `%s'\n", |
2737 | str); | 2747 | str); |