/** * acpiphp_register_attention - set attention LED callback * @info: must be completely filled with LED callbacks * * Description: This is used to register a hardware specific ACPI * driver that manipulates the attention LED. All the fields in * info must be set.
*/ int acpiphp_register_attention(struct acpiphp_attention_info *info)
{ int retval = -EINVAL;
/** * acpiphp_unregister_attention - unset attention LED callback * @info: must match the pointer used to register * * Description: This is used to un-register a hardware specific acpi * driver that manipulates the attention LED. The pointer to the * info struct must be the same as the one used to set it.
*/ int acpiphp_unregister_attention(struct acpiphp_attention_info *info)
{ int retval = -EINVAL;
/** * enable_slot - power on and enable a slot * @hotplug_slot: slot to enable * * Actual tasks are done in acpiphp_enable_slot()
*/ staticint enable_slot(struct hotplug_slot *hotplug_slot)
{ struct slot *slot = to_slot(hotplug_slot);
/* enable the specified slot */ return acpiphp_enable_slot(slot->acpi_slot);
}
/** * disable_slot - disable and power off a slot * @hotplug_slot: slot to disable * * Actual tasks are done in acpiphp_disable_slot()
*/ staticint disable_slot(struct hotplug_slot *hotplug_slot)
{ struct slot *slot = to_slot(hotplug_slot);
/* disable the specified slot */ return acpiphp_disable_slot(slot->acpi_slot);
}
/** * set_attention_status - set attention LED * @hotplug_slot: slot to set attention LED on * @status: value to set attention LED to (0 or 1) * * attention status LED, so we use a callback that * was registered with us. This allows hardware specific * ACPI implementations to blink the light for us.
*/ staticint set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
{ int retval = -ENODEV;
/** * get_power_status - get power status of a slot * @hotplug_slot: slot to get status * @value: pointer to store status * * Some platforms may not implement _STA method properly. * In that case, the value returned may not be reliable.
*/ staticint get_power_status(struct hotplug_slot *hotplug_slot, u8 *value)
{ struct slot *slot = to_slot(hotplug_slot);
/** * get_attention_status - get attention LED status * @hotplug_slot: slot to get status from * @value: returns with value of attention LED * * ACPI doesn't have known method to determine the state * of the attention status LED, so we use a callback that * was registered with us. This allows hardware specific * ACPI implementations to determine its state.
*/ staticint get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value)
{ int retval = -EINVAL;
/** * get_latch_status - get latch status of a slot * @hotplug_slot: slot to get status * @value: pointer to store status * * ACPI doesn't provide any formal means to access latch status. * Instead, we fake latch status from _STA.
*/ staticint get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value)
{ struct slot *slot = to_slot(hotplug_slot);
/** * get_adapter_status - get adapter status of a slot * @hotplug_slot: slot to get status * @value: pointer to store status * * ACPI doesn't provide any formal means to access adapter status. * Instead, we fake adapter status from _STA.
*/ staticint get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
{ struct slot *slot = to_slot(hotplug_slot);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.