|
@@ -209,9 +209,12 @@ unsigned long eeh_check_failure(const volatile void __iomem *token,
|
|
|
unsigned long val);
|
|
|
int eeh_dev_check_failure(struct eeh_dev *edev);
|
|
|
void eeh_addr_cache_build(void);
|
|
|
+void eeh_add_device_early(struct device_node *);
|
|
|
void eeh_add_device_tree_early(struct device_node *);
|
|
|
+void eeh_add_device_late(struct pci_dev *);
|
|
|
void eeh_add_device_tree_late(struct pci_bus *);
|
|
|
void eeh_add_sysfs_files(struct pci_bus *);
|
|
|
+void eeh_remove_device(struct pci_dev *, int);
|
|
|
void eeh_remove_bus_device(struct pci_dev *, int);
|
|
|
|
|
|
/**
|
|
@@ -252,12 +255,18 @@ static inline unsigned long eeh_check_failure(const volatile void __iomem *token
|
|
|
|
|
|
static inline void eeh_addr_cache_build(void) { }
|
|
|
|
|
|
+static inline void eeh_add_device_early(struct device_node *dn) { }
|
|
|
+
|
|
|
static inline void eeh_add_device_tree_early(struct device_node *dn) { }
|
|
|
|
|
|
+static inline void eeh_add_device_late(struct pci_dev *dev) { }
|
|
|
+
|
|
|
static inline void eeh_add_device_tree_late(struct pci_bus *bus) { }
|
|
|
|
|
|
static inline void eeh_add_sysfs_files(struct pci_bus *bus) { }
|
|
|
|
|
|
+static inline void eeh_remove_device(struct pci_dev *dev, int purge_pe) { }
|
|
|
+
|
|
|
static inline void eeh_remove_bus_device(struct pci_dev *dev, int purge_pe) { }
|
|
|
|
|
|
#define EEH_POSSIBLE_ERROR(val, type) (0)
|