| .. | .. |
|---|
| 378 | 378 | struct bus_node *ibmphp_find_res_bus(u8); |
|---|
| 379 | 379 | void ibmphp_print_test(void); /* for debugging purposes */ |
|---|
| 380 | 380 | |
|---|
| 381 | | -void ibmphp_hpc_initvars(void); |
|---|
| 382 | 381 | int ibmphp_hpc_readslot(struct slot *, u8, u8 *); |
|---|
| 383 | 382 | int ibmphp_hpc_writeslot(struct slot *, u8); |
|---|
| 384 | 383 | void ibmphp_lock_operations(void); |
|---|
| .. | .. |
|---|
| 698 | 697 | u8 supported_bus_mode; |
|---|
| 699 | 698 | u8 flag; /* this is for disable slot and polling */ |
|---|
| 700 | 699 | u8 ctlr_index; |
|---|
| 701 | | - struct hotplug_slot *hotplug_slot; |
|---|
| 700 | + struct hotplug_slot hotplug_slot; |
|---|
| 702 | 701 | struct controller *ctrl; |
|---|
| 703 | 702 | struct pci_func *func; |
|---|
| 704 | 703 | u8 irq[4]; |
|---|
| .. | .. |
|---|
| 740 | 739 | int ibmphp_update_slot_info(struct slot *); /* This function is called from HPC, so we need it to not be be static */ |
|---|
| 741 | 740 | int ibmphp_configure_card(struct pci_func *, u8); |
|---|
| 742 | 741 | int ibmphp_unconfigure_card(struct slot **, int); |
|---|
| 743 | | -extern struct hotplug_slot_ops ibmphp_hotplug_slot_ops; |
|---|
| 742 | +extern const struct hotplug_slot_ops ibmphp_hotplug_slot_ops; |
|---|
| 743 | + |
|---|
| 744 | +static inline struct slot *to_slot(struct hotplug_slot *hotplug_slot) |
|---|
| 745 | +{ |
|---|
| 746 | + return container_of(hotplug_slot, struct slot, hotplug_slot); |
|---|
| 747 | +} |
|---|
| 744 | 748 | |
|---|
| 745 | 749 | #endif //__IBMPHP_H |
|---|
| 746 | 750 | |
|---|