aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/pci.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-08-29 13:33:16 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-08-30 02:57:07 -0400
commit67f43f38eeb34da43b624a29d57b703f4c4844b4 (patch)
treef38156d87f7bce9e1b32cb8214de0d24447e2dd6 /arch/s390/include/asm/pci.h
parent0944fe3f4a323f436180d39402cae7f9c46ead17 (diff)
s390/pci/hotplug: convert to be builtin only
Convert s390' pci hotplug to be builtin only, with no module option. Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pci.h')
-rw-r--r--arch/s390/include/asm/pci.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h
index d0872769d44e..64081f85ffdb 100644
--- a/arch/s390/include/asm/pci.h
+++ b/arch/s390/include/asm/pci.h
@@ -116,11 +116,6 @@ struct zpci_dev {
116 struct dentry *debugfs_perf; 116 struct dentry *debugfs_perf;
117}; 117};
118 118
119struct pci_hp_callback_ops {
120 int (*create_slot) (struct zpci_dev *zdev);
121 void (*remove_slot) (struct zpci_dev *zdev);
122};
123
124static inline bool zdev_enabled(struct zpci_dev *zdev) 119static inline bool zdev_enabled(struct zpci_dev *zdev)
125{ 120{
126 return (zdev->fh & (1UL << 31)) ? true : false; 121 return (zdev->fh & (1UL << 31)) ? true : false;
@@ -154,6 +149,17 @@ static inline void zpci_event_error(void *e) {}
154static inline void zpci_event_availability(void *e) {} 149static inline void zpci_event_availability(void *e) {}
155#endif /* CONFIG_PCI */ 150#endif /* CONFIG_PCI */
156 151
152#ifdef CONFIG_HOTPLUG_PCI_S390
153int zpci_init_slot(struct zpci_dev *);
154void zpci_exit_slot(struct zpci_dev *);
155#else /* CONFIG_HOTPLUG_PCI_S390 */
156static inline int zpci_init_slot(struct zpci_dev *zdev)
157{
158 return 0;
159}
160static inline void zpci_exit_slot(struct zpci_dev *zdev) {}
161#endif /* CONFIG_HOTPLUG_PCI_S390 */
162
157/* Helpers */ 163/* Helpers */
158struct zpci_dev *get_zdev(struct pci_dev *); 164struct zpci_dev *get_zdev(struct pci_dev *);
159struct zpci_dev *get_zdev_by_fid(u32); 165struct zpci_dev *get_zdev_by_fid(u32);
@@ -167,14 +173,6 @@ void zpci_sysfs_remove_device(struct device *);
167int zpci_dma_init(void); 173int zpci_dma_init(void);
168void zpci_dma_exit(void); 174void zpci_dma_exit(void);
169 175
170/* Hotplug */
171extern struct mutex zpci_list_lock;
172extern struct list_head zpci_list;
173extern unsigned int s390_pci_probe;
174
175void zpci_register_hp_ops(struct pci_hp_callback_ops *);
176void zpci_deregister_hp_ops(void);
177
178/* FMB */ 176/* FMB */
179int zpci_fmb_enable_device(struct zpci_dev *); 177int zpci_fmb_enable_device(struct zpci_dev *);
180int zpci_fmb_disable_device(struct zpci_dev *); 178int zpci_fmb_disable_device(struct zpci_dev *);