diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-11-13 19:34:29 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-24 18:29:41 -0500 |
commit | 56ddf4d3cf04e80254d3d721c6bea2f8ec44c41a (patch) | |
tree | 9b09f7d7daf480138e4e178520d03d537a49959b /arch/x86/include | |
parent | 95cf1cf0c5a767feb811dfed298b95b1df8824c7 (diff) |
x86/PCI: MMCONFIG: add resource to struct pci_mmcfg_region
This patch adds a resource and corresponding name to the MMCONFIG
structure. This makes allocation simpler (we can allocate the
resource and name at the same time we allocate the pci_mmcfg_region),
and gives us a way to hang onto the resource after inserting it.
This will be needed so we can release and free it when hot-removing
a host bridge.
Reviewed-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/pci_x86.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h index a752d618f196..a6d42c10b017 100644 --- a/arch/x86/include/asm/pci_x86.h +++ b/arch/x86/include/asm/pci_x86.h | |||
@@ -118,11 +118,16 @@ extern int __init pcibios_init(void); | |||
118 | 118 | ||
119 | /* pci-mmconfig.c */ | 119 | /* pci-mmconfig.c */ |
120 | 120 | ||
121 | /* "PCI MMCONFIG %04x [bus %02x-%02x]" */ | ||
122 | #define PCI_MMCFG_RESOURCE_NAME_LEN (22 + 4 + 2 + 2) | ||
123 | |||
121 | struct pci_mmcfg_region { | 124 | struct pci_mmcfg_region { |
125 | struct resource res; | ||
122 | u64 address; | 126 | u64 address; |
123 | u16 segment; | 127 | u16 segment; |
124 | u8 start_bus; | 128 | u8 start_bus; |
125 | u8 end_bus; | 129 | u8 end_bus; |
130 | char name[PCI_MMCFG_RESOURCE_NAME_LEN]; | ||
126 | }; | 131 | }; |
127 | 132 | ||
128 | extern int __init pci_mmcfg_arch_init(void); | 133 | extern int __init pci_mmcfg_arch_init(void); |