aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-02-11 08:46:10 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-02-16 17:54:25 +0000
commit352af7d4dd90bac3640ad2383e4e9f332d3a4537 (patch)
treef324bc26229909f82df0a7f324f998d5da65a9bf /arch/arm/include
parent276fd3c5f8a21f9d7d398383b818d5d0ac81db23 (diff)
downloadlinux-352af7d4dd90bac3640ad2383e4e9f332d3a4537.tar.gz
ARM: 7648/1: pci: Allow passing per-controller private data
In order to allow drivers to specify private data for each controller, this commit adds a private_data field to the struct hw_pci. This field is an array of nr_controllers pointers that will be used to initialize the private_data field of the corresponding controller's pci_sys_data structure. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/mach/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h
index db9fedb57f2..5cf2e979b4b 100644
--- a/arch/arm/include/asm/mach/pci.h
+++ b/arch/arm/include/asm/mach/pci.h
@@ -23,6 +23,7 @@ struct hw_pci {
#endif
struct pci_ops *ops;
int nr_controllers;
+ void **private_data;
int (*setup)(int nr, struct pci_sys_data *);
struct pci_bus *(*scan)(int nr, struct pci_sys_data *);
void (*preinit)(void);