mirror of
https://github.com/acpica/acpica/
synced 2025-02-23 17:04:21 +03:00
added AcpiGetDevices
changed DEVICE_ID to only return one type date 2000.09.29.21.53.00; author agrover; state Exp;
This commit is contained in:
parent
2f35bd86e9
commit
a686d54e14
@ -1,7 +1,7 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
*
|
*
|
||||||
* Module Name: cmeval - Object evaluation
|
* Module Name: cmeval - Object evaluation
|
||||||
* $Revision: 1.16 $
|
* $Revision: 1.17 $
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
@ -293,16 +293,14 @@ AcpiCmExecute_HID (
|
|||||||
{
|
{
|
||||||
/* Convert the Numeric HID to string */
|
/* Convert the Numeric HID to string */
|
||||||
|
|
||||||
AcpiAmlEisaIdToString (ObjDesc->Number.Value, Hid->Data.Buffer);
|
AcpiAmlEisaIdToString (ObjDesc->Number.Value, Hid->Buffer);
|
||||||
Hid->Type = STRING_DEVICE_ID;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Copy the String HID from the returned object */
|
/* Copy the String HID from the returned object */
|
||||||
|
|
||||||
Hid->Data.StringPtr = ObjDesc->String.Pointer;
|
STRNCPY(Hid->Buffer, ObjDesc->String.Pointer, sizeof(Hid->Buffer));
|
||||||
Hid->Type = STRING_PTR_DEVICE_ID;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,17 +388,16 @@ AcpiCmExecute_UID (
|
|||||||
{
|
{
|
||||||
if (ObjDesc->Common.Type == ACPI_TYPE_NUMBER)
|
if (ObjDesc->Common.Type == ACPI_TYPE_NUMBER)
|
||||||
{
|
{
|
||||||
/* Convert the Numeric HID to string */
|
/* Convert the Numeric UID to string */
|
||||||
|
|
||||||
Uid->Data.Number = ObjDesc->Number.Value;
|
AcpiUnsignedIntegerToString(ObjDesc->Number.Value, Uid->Buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Copy the String HID from the returned object */
|
/* Copy the String UID from the returned object */
|
||||||
|
|
||||||
Uid->Data.StringPtr = ObjDesc->String.Pointer;
|
STRNCPY(Uid->Buffer, ObjDesc->String.Pointer, sizeof(Uid->Buffer));
|
||||||
Uid->Type = STRING_PTR_DEVICE_ID;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user