.. | .. |
---|
63 | 63 | u32 index; |
---|
64 | 64 | u32 type; |
---|
65 | 65 | u32 power_domain; |
---|
| 66 | + u8 attention_status; |
---|
66 | 67 | char *name; |
---|
67 | 68 | struct device_node *dn; |
---|
68 | 69 | struct pci_bus *bus; |
---|
69 | 70 | struct list_head *pci_devs; |
---|
70 | | - struct hotplug_slot *hotplug_slot; |
---|
| 71 | + struct hotplug_slot hotplug_slot; |
---|
71 | 72 | }; |
---|
72 | 73 | |
---|
73 | | -extern struct hotplug_slot_ops rpaphp_hotplug_slot_ops; |
---|
| 74 | +extern const struct hotplug_slot_ops rpaphp_hotplug_slot_ops; |
---|
74 | 75 | extern struct list_head rpaphp_slot_head; |
---|
75 | 76 | |
---|
| 77 | +static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) |
---|
| 78 | +{ |
---|
| 79 | + return container_of(hotplug_slot, struct slot, hotplug_slot); |
---|
| 80 | +} |
---|
| 81 | + |
---|
76 | 82 | /* function prototypes */ |
---|
77 | 83 | |
---|
78 | 84 | /* rpaphp_pci.c */ |
---|