diff options
Diffstat (limited to 'arch/s390/include/asm/pci.h')
| -rw-r--r-- | arch/s390/include/asm/pci.h | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index b1fa93c606a..6c1801235db 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h @@ -140,6 +140,7 @@ static inline bool zdev_enabled(struct zpci_dev *zdev)  struct zpci_dev *zpci_alloc_device(void);  int zpci_create_device(struct zpci_dev *);  int zpci_enable_device(struct zpci_dev *); +int zpci_disable_device(struct zpci_dev *);  void zpci_stop_device(struct zpci_dev *);  void zpci_free_device(struct zpci_dev *);  int zpci_scan_device(struct zpci_dev *); @@ -160,9 +161,14 @@ void zpci_teardown_msi_irq(struct zpci_dev *, struct msi_desc *);  int zpci_msihash_init(void);  void zpci_msihash_exit(void); +#ifdef CONFIG_PCI  /* Error handling and recovery */  void zpci_event_error(void *);  void zpci_event_availability(void *); +#else /* CONFIG_PCI */ +static inline void zpci_event_error(void *e) {} +static inline void zpci_event_availability(void *e) {} +#endif /* CONFIG_PCI */  /* Helpers */  struct zpci_dev *get_zdev(struct pci_dev *); @@ -180,8 +186,10 @@ void zpci_dma_exit(void);  /* Hotplug */  extern struct mutex zpci_list_lock;  extern struct list_head zpci_list; -extern struct pci_hp_callback_ops hotplug_ops; -extern unsigned int pci_probe; +extern unsigned int s390_pci_probe; + +void zpci_register_hp_ops(struct pci_hp_callback_ops *); +void zpci_deregister_hp_ops(void);  /* FMB */  int zpci_fmb_enable_device(struct zpci_dev *);  |