acpi: add ACPI_DEVICE_ADDR_ITEM and ACPI_DEVICE_CID_ITEM for device nodes
ACPI_DEVICE_HID_ITEM is now optional, instead of an empty string. Change-Id: I352ffaaad377659f650a0b8c0d56e40a68b739c3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2420 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -243,8 +243,8 @@ struct acpi_module_info {
|
||||
status_t (*get_device)(const char *hid, uint32 index, char *result,
|
||||
size_t resultLength);
|
||||
|
||||
status_t (*get_device_hid)(const char *path, char *hid,
|
||||
size_t hidLength);
|
||||
status_t (*get_device_info)(const char *path, char** hid,
|
||||
char** cidList, size_t cidListLength);
|
||||
uint32 (*get_object_type)(const char *path);
|
||||
status_t (*get_object)(const char *path,
|
||||
acpi_object_type **_returnValue);
|
||||
@@ -303,6 +303,8 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
#define ACPI_DEVICE_ADDR_ITEM "acpi/addr"
|
||||
#define ACPI_DEVICE_CID_ITEM "acpi/cid"
|
||||
#define ACPI_DEVICE_HID_ITEM "acpi/hid"
|
||||
#define ACPI_DEVICE_PATH_ITEM "acpi/path"
|
||||
#define ACPI_DEVICE_TYPE_ITEM "acpi/type"
|
||||
|
||||
Reference in New Issue
Block a user