| .. | .. |
|---|
| 32 | 32 | unsigned int devfn; |
|---|
| 33 | 33 | struct pci_bus *bus; |
|---|
| 34 | 34 | struct pci_dev *dev; |
|---|
| 35 | + unsigned int latch_status:1; |
|---|
| 36 | + unsigned int adapter_status:1; |
|---|
| 35 | 37 | unsigned int extracting; |
|---|
| 36 | | - struct hotplug_slot *hotplug_slot; |
|---|
| 38 | + struct hotplug_slot hotplug_slot; |
|---|
| 37 | 39 | struct list_head slot_list; |
|---|
| 38 | 40 | }; |
|---|
| 39 | 41 | |
|---|
| .. | .. |
|---|
| 58 | 60 | |
|---|
| 59 | 61 | static inline const char *slot_name(struct slot *slot) |
|---|
| 60 | 62 | { |
|---|
| 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); |
|---|
| 62 | 69 | } |
|---|
| 63 | 70 | |
|---|
| 64 | 71 | int cpci_hp_register_controller(struct cpci_hp_controller *controller); |
|---|