|
ReactOS 0.4.17-dev-684-ga6524ef
|


Go to the source code of this file.
Classes | |
| struct | uacpi_pci_routing_table_entry |
| struct | uacpi_pci_routing_table |
| struct | uacpi_id_string |
| struct | uacpi_pnp_id_list |
| struct | uacpi_namespace_node_info |
Macros | |
| #define | UACPI_NS_NODE_INFO_HAS_ADR (1 << 0) |
| #define | UACPI_NS_NODE_INFO_HAS_HID (1 << 1) |
| #define | UACPI_NS_NODE_INFO_HAS_UID (1 << 2) |
| #define | UACPI_NS_NODE_INFO_HAS_CID (1 << 3) |
| #define | UACPI_NS_NODE_INFO_HAS_CLS (1 << 4) |
| #define | UACPI_NS_NODE_INFO_HAS_SXD (1 << 5) |
| #define | UACPI_NS_NODE_INFO_HAS_SXW (1 << 6) |
Typedefs | |
| typedef enum uacpi_interrupt_model | uacpi_interrupt_model |
| typedef struct uacpi_pci_routing_table_entry | uacpi_pci_routing_table_entry |
| typedef struct uacpi_pci_routing_table | uacpi_pci_routing_table |
| typedef struct uacpi_id_string | uacpi_id_string |
| typedef struct uacpi_pnp_id_list | uacpi_pnp_id_list |
| typedef struct uacpi_namespace_node_info | uacpi_namespace_node_info |
| #define UACPI_NS_NODE_INFO_HAS_ADR (1 << 0) |
Definition at line 137 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_CID (1 << 3) |
Definition at line 140 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_CLS (1 << 4) |
Definition at line 141 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_HID (1 << 1) |
Definition at line 138 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_SXD (1 << 5) |
Definition at line 142 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_SXW (1 << 6) |
Definition at line 143 of file utilities.h.
| #define UACPI_NS_NODE_INFO_HAS_UID (1 << 2) |
Definition at line 139 of file utilities.h.
| typedef struct uacpi_id_string uacpi_id_string |
| typedef struct uacpi_pnp_id_list uacpi_pnp_id_list |
Definition at line 48 of file utilities.h.
| uacpi_bool uacpi_device_matches_pnp_id | ( | uacpi_namespace_node * | node, |
| const uacpi_char *const * | list | ||
| ) |
Checks whether the device at 'node' matches any of the PNP ids provided in 'list' (terminated by a UACPI_NULL). This is done by first attempting to match the value returned from _HID and then the value(s) from _CID.
Note that the presence of the device (_STA) is not verified here.
Definition at line 905 of file utilities.c.
Referenced by find_one_device(), and find_pci_root().
| uacpi_status uacpi_eval_adr | ( | uacpi_namespace_node * | node, |
| uacpi_u64 * | out | ||
| ) |
Evaluate a device's _ADR method and get its value.
Definition at line 600 of file utilities.c.
Referenced by uacpi_get_namespace_node_info().
| uacpi_status uacpi_eval_cid | ( | uacpi_namespace_node * | node, |
| uacpi_pnp_id_list ** | out_list | ||
| ) |
Evaluate a device's _CID method and get its value. The returned structure must be freed using uacpi_free_pnp_id_list.
Definition at line 446 of file utilities.c.
Referenced by uacpi_device_matches_pnp_id().
| uacpi_status uacpi_eval_cls | ( | uacpi_namespace_node * | node, |
| uacpi_id_string ** | out_id | ||
| ) |
Evaluate a device's _CLS method and get its value. The format of returned string is BBSSPP where: BB => Base Class (e.g. 01 => Mass Storage) SS => Sub-Class (e.g. 06 => SATA) PP => Programming Interface (e.g. 01 => AHCI) The returned struture must be freed using uacpi_free_id_string.
Definition at line 621 of file utilities.c.
| uacpi_status uacpi_eval_hid | ( | uacpi_namespace_node * | node, |
| uacpi_id_string ** | out_id | ||
| ) |
Evaluate a device's _HID method and get its value. The returned struture must be freed using uacpi_free_id_string.
Definition at line 371 of file utilities.c.
Referenced by uacpi_device_matches_pnp_id().
| uacpi_status uacpi_eval_sta | ( | uacpi_namespace_node * | node, |
| uacpi_u32 * | flags | ||
| ) |
Evaluate a device's _STA method and get its value. If this method is not found, the value of 'flags' is set to all ones.
Definition at line 577 of file utilities.c.
Referenced by find_one_device(), and sta_eval().
| uacpi_status uacpi_eval_uid | ( | uacpi_namespace_node * | node, |
| uacpi_id_string ** | out_uid | ||
| ) |
Evaluate a device's _UID method and get its value. The returned struture must be freed using uacpi_free_id_string.
Definition at line 664 of file utilities.c.
| uacpi_status uacpi_find_devices | ( | const uacpi_char * | hid, |
| uacpi_iteration_callback | cb, | ||
| void * | user | ||
| ) |
Same as uacpi_find_devices_at, except this starts at the root and only matches one hid.
Definition at line 986 of file utilities.c.
| uacpi_status uacpi_find_devices_at | ( | uacpi_namespace_node * | parent, |
| const uacpi_char *const * | hids, | ||
| uacpi_iteration_callback | cb, | ||
| void * | user | ||
| ) |
Find all the devices in the namespace starting at 'parent' matching the specified 'hids' (terminated by a UACPI_NULL) against any value from _HID or _CID. Only devices reported as present via _STA are checked. Any matching devices are then passed to the 'cb'.
Definition at line 967 of file utilities.c.
Referenced by uacpi_find_devices().
| void uacpi_free_id_string | ( | uacpi_id_string * | id | ) |
Definition at line 438 of file utilities.c.
Referenced by uacpi_device_matches_pnp_id(), and uacpi_get_namespace_node_info().
| void uacpi_free_namespace_node_info | ( | uacpi_namespace_node_info * | info | ) |
Definition at line 897 of file utilities.c.
| void uacpi_free_pci_routing_table | ( | uacpi_pci_routing_table * | table | ) |
Definition at line 1136 of file utilities.c.
Referenced by uacpi_get_pci_routing_table().
| void uacpi_free_pnp_id_list | ( | uacpi_pnp_id_list * | list | ) |
Definition at line 569 of file utilities.c.
Referenced by uacpi_device_matches_pnp_id(), and uacpi_get_namespace_node_info().
| uacpi_status uacpi_get_namespace_node_info | ( | uacpi_namespace_node * | node, |
| uacpi_namespace_node_info ** | out_info | ||
| ) |
Retrieve information about a namespace node. This includes the attached object's type, name, number of parameters (if it's a method), the result of evaluating _ADR, _UID, _CLS, _HID, _CID, as well as _SxD and _SxW.
The returned structure must be freed with uacpi_free_namespace_node_info.
Definition at line 797 of file utilities.c.
| uacpi_status uacpi_get_pci_routing_table | ( | uacpi_namespace_node * | parent, |
| uacpi_pci_routing_table ** | out_table | ||
| ) |
Definition at line 1024 of file utilities.c.
| uacpi_status uacpi_set_interrupt_model | ( | uacpi_interrupt_model | model | ) |
Definition at line 999 of file utilities.c.