forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/pci/hotplug/cpci_hotplug.h
....@@ -32,8 +32,10 @@
3232 unsigned int devfn;
3333 struct pci_bus *bus;
3434 struct pci_dev *dev;
35
+ unsigned int latch_status:1;
36
+ unsigned int adapter_status:1;
3537 unsigned int extracting;
36
- struct hotplug_slot *hotplug_slot;
38
+ struct hotplug_slot hotplug_slot;
3739 struct list_head slot_list;
3840 };
3941
....@@ -58,7 +60,12 @@
5860
5961 static inline const char *slot_name(struct slot *slot)
6062 {
61
- return hotplug_slot_name(slot->hotplug_slot);
63
+ return hotplug_slot_name(&slot->hotplug_slot);
64
+}
65
+
66
+static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot)
67
+{
68
+ return container_of(hotplug_slot, struct slot, hotplug_slot);
6269 }
6370
6471 int cpci_hp_register_controller(struct cpci_hp_controller *controller);