25 #include <linux/pci.h>
26 #include <linux/stat.h>
28 #include <asm/pci-bridge.h>
39 #define EEH_SHOW_ATTR(_name,_memb,_format) \
40 static ssize_t eeh_show_##_name(struct device *dev, \
41 struct device_attribute *attr, char *buf) \
43 struct pci_dev *pdev = to_pci_dev(dev); \
44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
49 return sprintf(buf, _format "\n", edev->_memb); \
51 static DEVICE_ATTR(_name, S_IRUGO, eeh_show_##_name, NULL);