print valid device HID

git-svn-id: svn://kolibrios.org@1500 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2010-06-18 17:36:20 +00:00
parent c504310cbf
commit 4d746806a6

View File

@ -35,7 +35,7 @@ get_device_by_hid_callback(ACPI_HANDLE obj, u32_t depth, void* context,
ACPI_BUFFER buffer;
ACPI_DEVICE_INFO info;
ACPI_DEVICE_INFO *info;
// *retval = NULL;
@ -51,19 +51,14 @@ get_device_by_hid_callback(ACPI_HANDLE obj, u32_t depth, void* context,
dbgprintf("device %d %s ", counter, buff);
/*
buffer.Pointer = &info;
memset(&info, 0, sizeof(ACPI_DEVICE_INFO));
status = AcpiGetObjectInfo(obj, &buffer.Pointer);
status = AcpiGetObjectInfo(obj, &info);
if (ACPI_SUCCESS (status))
{
dbgprintf (" HID: %s, ADR: %x %x, Status: %x",
info.HardwareId.String,
(UINT32)(info.Address>>32),(UINT32)info.Address,
info.CurrentStatus);
if (info->Valid & ACPI_VALID_HID)
dbgprintf (" HID: %s", info->HardwareId.String);
};
*/
dbgprintf("\n");
counter++;
@ -100,18 +95,22 @@ prt_walk_table(ACPI_BUFFER *prt)
}
u32_t drvEntry(int action, char *cmdline)
{
u32_t retval;
ACPI_STATUS status;
int i;
if(action != 1)
return 0;
ACPI_STATUS status;
status = AcpiReallocateRootTable();
if (ACPI_FAILURE(status)) {
dbgprintf("Unable to reallocate ACPI tables\n");
goto err;
}
status = AcpiInitializeSubsystem();
if (status != AE_OK) {
@ -134,7 +133,7 @@ u32_t drvEntry(int action, char *cmdline)
goto err;
}
u32_t mode = ACPI_FULL_INITIALIZATION;
u32_t mode = ACPI_NO_HARDWARE_INIT | ACPI_NO_ACPI_ENABLE;
status = AcpiEnableSubsystem(mode);
if (status != AE_OK) {