Skip to contentSkip to conversation

PCI/IA64: embed pci hostbridge resources into pci_root_info

PATCH In review Yijing Wang 1 participant 1 message Jun 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 3/8 PCI/IA64: embed pci hostbridge resources into pci_root_info

Currently, pcibios_resource_to_bus() and pcibios_bus_to_resource() functions use pci_host_bridge to translate bus side address from/to cpu side address. The pci_window in pci_controller never be used again. So we remove pci_window in pci_controller and embed hostbridge resource into pci_root_info. Bjorn suggested to implement hostbridge resources release in IA64 like in X86, this patch is to prepare for that.

Cc Tony Luck <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc Yinghai Lu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Thierry Reding <[email protected]>
---
 arch/ia64/include/asm/pci.h |    9 +-----
 arch/ia64/pci/pci.c         |   65 ++++++++++++++++++++++++------------------
 2 files changed, 38 insertions(+), 36 deletions(-)
arch/ia64/include/asm/pci.h +1 -8
index 5e04b59..a7ebe5f 100644
@@ -89,23 +89,16 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
 #define pci_legacy_read platform_pci_legacy_read
 #define pci_legacy_write platform_pci_legacy_write
 
-struct pci_window {
-	struct resource resource;
-	u64 offset;
-};
-
 struct pci_controller {
 	void *acpi_handle;
 	void *iommu;
 	int segment;
 	int node;		/* nearest node with memory or -1 for global allocation */
 
-	unsigned int windows;
-	struct pci_window *window;
-
 	void *platform_data;
 };
 
+
 #define PCI_CONTROLLER(busdev) ((struct pci_controller *) busdev->sysdata)
 #define pci_domain_nr(busdev)    (PCI_CONTROLLER(busdev)->segment)
 
arch/ia64/pci/pci.c +35 -27

122 lines not on this page · raw message

Signature · 1 line
1.7.1