Logo Search packages:      
Sourcecode: linux-2.6 version File versions

hotplug_slot_ops Struct Reference

#include <pci_hotplug.h>

List of all members.


Detailed Description

struct hotplug_slot_ops -the callbacks that the hotplug pci core can use : The module owner of this structure : Called when the user wants to enable a specific pci slot : Called when the user wants to disable a specific pci slot : Called to set the specific slot's attention LED to the specified value : Called to run a specified hardware test on the specified slot. : Called to get the current power status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the current attention status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the current latch status of a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get see if an adapter is present in the slot or not. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the max bus speed for a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user. : Called to get the current bus speed for a slot. If this field is NULL, the value passed in the struct hotplug_slot_info will be used when this value is requested by a user.

The table of function pointers that is passed to the hotplug pci core by a hotplug pci driver. These functions are called by the hotplug pci core when the user wants to do something to a specific slot (query it for information, set an LED, enable / disable power, etc.)

Definition at line 110 of file pci_hotplug.h.


Public Attributes

int(* disable_slot )(struct hotplug_slot *slot)
int(* enable_slot )(struct hotplug_slot *slot)
int(* get_adapter_status )(struct hotplug_slot *slot, u8 *value)
int(* get_attention_status )(struct hotplug_slot *slot, u8 *value)
int(* get_cur_bus_speed )(struct hotplug_slot *slot, enum pci_bus_speed *value)
int(* get_latch_status )(struct hotplug_slot *slot, u8 *value)
int(* get_max_bus_speed )(struct hotplug_slot *slot, enum pci_bus_speed *value)
int(* get_power_status )(struct hotplug_slot *slot, u8 *value)
int(* hardware_test )(struct hotplug_slot *slot, u32 value)
struct module * owner
int(* set_attention_status )(struct hotplug_slot *slot, u8 value)

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index