|
@@ -24,6 +24,7 @@
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/list.h>
|
|
|
#include <linux/string.h>
|
|
|
+#include <linux/time.h>
|
|
|
|
|
|
struct pci_dev;
|
|
|
struct pci_bus;
|
|
@@ -62,6 +63,7 @@ struct eeh_pe {
|
|
|
struct pci_bus *bus; /* Top PCI bus for bus PE */
|
|
|
int check_count; /* Times of ignored error */
|
|
|
int freeze_count; /* Times of froze up */
|
|
|
+ struct timeval tstamp; /* Time on first-time freeze */
|
|
|
int false_positives; /* Times of reported #ff's */
|
|
|
struct eeh_pe *parent; /* Parent PE */
|
|
|
struct list_head child_list; /* Link PE to the child list */
|
|
@@ -190,6 +192,7 @@ struct eeh_pe *eeh_phb_pe_get(struct pci_controller *phb);
|
|
|
struct eeh_pe *eeh_pe_get(struct eeh_dev *edev);
|
|
|
int eeh_add_to_parent_pe(struct eeh_dev *edev);
|
|
|
int eeh_rmv_from_parent_pe(struct eeh_dev *edev, int purge_pe);
|
|
|
+void eeh_pe_update_time_stamp(struct eeh_pe *pe);
|
|
|
void *eeh_pe_dev_traverse(struct eeh_pe *root,
|
|
|
eeh_traverse_func fn, void *flag);
|
|
|
void eeh_pe_restore_bars(struct eeh_pe *pe);
|