diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-11-13 19:34:13 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-24 18:29:17 -0500 |
commit | d215a9c8b46e55a1d3bc1cd907c943ef95938a0e (patch) | |
tree | e377a5f8995fdc83bf333d7f6cee69b59447d686 /arch/x86/include/asm/pci_x86.h | |
parent | df5eb1d67e8074dfbc23cf396c556116728187b3 (diff) |
x86/PCI: MMCONFIG: use a private structure rather than the ACPI MCFG one
This adds a struct pci_mmcfg_region with a little more information
than the struct acpi_mcfg_allocation used previously. The acpi_mcfg
structure is defined by the spec, so we can't change it.
To begin with, struct pci_mmcfg_region is basically the same as the
ACPI MCFG version, but future patches will add more information.
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/asm/pci_x86.h')
-rw-r--r-- | arch/x86/include/asm/pci_x86.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h index 7d94a235ec82..3a2ca5f69521 100644 --- a/arch/x86/include/asm/pci_x86.h +++ b/arch/x86/include/asm/pci_x86.h | |||
@@ -118,10 +118,17 @@ extern int __init pcibios_init(void); | |||
118 | 118 | ||
119 | /* pci-mmconfig.c */ | 119 | /* pci-mmconfig.c */ |
120 | 120 | ||
121 | struct pci_mmcfg_region { | ||
122 | u64 address; | ||
123 | u16 pci_segment; | ||
124 | u8 start_bus_number; | ||
125 | u8 end_bus_number; | ||
126 | }; | ||
127 | |||
121 | extern int __init pci_mmcfg_arch_init(void); | 128 | extern int __init pci_mmcfg_arch_init(void); |
122 | extern void __init pci_mmcfg_arch_free(void); | 129 | extern void __init pci_mmcfg_arch_free(void); |
123 | 130 | ||
124 | extern struct acpi_mcfg_allocation *pci_mmcfg_config; | 131 | extern struct pci_mmcfg_region *pci_mmcfg_config; |
125 | extern int pci_mmcfg_config_num; | 132 | extern int pci_mmcfg_config_num; |
126 | 133 | ||
127 | #define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20) | 134 | #define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20) |