acpi: export read_bit_register and write_bit_register
acpi cpuidle needs such acpi functions Signed-off-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
committed by
Fredrik Holmqvist
parent
71d9d375b8
commit
0a0af8957e
@@ -262,6 +262,10 @@ struct acpi_module_info {
|
|||||||
/* Table Access */
|
/* Table Access */
|
||||||
status_t (*get_table)(const char *signature, uint32 instance,
|
status_t (*get_table)(const char *signature, uint32 instance,
|
||||||
void **tableHeader);
|
void **tableHeader);
|
||||||
|
|
||||||
|
/* Register Access */
|
||||||
|
status_t (*read_bit_register)(uint32 regid, uint32 *val);
|
||||||
|
status_t (*write_bit_register)(uint32 regid, uint32 val);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -715,6 +715,20 @@ get_table(const char* signature, uint32 instance, void** tableHeader)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
read_bit_register(uint32 regid, uint32 *val)
|
||||||
|
{
|
||||||
|
return AcpiReadBitRegister(regid, (UINT32 *)val);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
write_bit_register(uint32 regid, uint32 val)
|
||||||
|
{
|
||||||
|
return AcpiWriteBitRegister(regid, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
struct acpi_module_info gACPIModule = {
|
struct acpi_module_info gACPIModule = {
|
||||||
{
|
{
|
||||||
B_ACPI_MODULE_NAME,
|
B_ACPI_MODULE_NAME,
|
||||||
@@ -759,5 +773,7 @@ struct acpi_module_info gACPIModule = {
|
|||||||
prepare_sleep_state,
|
prepare_sleep_state,
|
||||||
enter_sleep_state,
|
enter_sleep_state,
|
||||||
reboot,
|
reboot,
|
||||||
get_table
|
get_table,
|
||||||
|
read_bit_register,
|
||||||
|
write_bit_register
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user