hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pci/hotplug/rpaphp.h
....@@ -63,16 +63,22 @@
6363 u32 index;
6464 u32 type;
6565 u32 power_domain;
66
+ u8 attention_status;
6667 char *name;
6768 struct device_node *dn;
6869 struct pci_bus *bus;
6970 struct list_head *pci_devs;
70
- struct hotplug_slot *hotplug_slot;
71
+ struct hotplug_slot hotplug_slot;
7172 };
7273
73
-extern struct hotplug_slot_ops rpaphp_hotplug_slot_ops;
74
+extern const struct hotplug_slot_ops rpaphp_hotplug_slot_ops;
7475 extern struct list_head rpaphp_slot_head;
7576
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
+
7682 /* function prototypes */
7783
7884 /* rpaphp_pci.c */