ReactOS 0.4.16-dev-1946-g52006dd
opregion.h
Go to the documentation of this file.
1#pragma once
2
3#include <uacpi/types.h>
4#include <uacpi/status.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#ifndef UACPI_BAREBONES_MODE
11
12/*
13 * Install an address space handler to a device node.
14 * The handler is recursively connected to all of the operation regions of
15 * type 'space' underneath 'device_node'. Note that this recursion stops as
16 * soon as another device node that already has an address space handler of
17 * this type installed is encountered.
18 */
22);
23
24/*
25 * Uninstall the handler of type 'space' from a given device node.
26 */
28 uacpi_namespace_node *device_node,
30);
31
32/*
33 * Execute _REG(space, ACPI_REG_CONNECT) for all of the opregions with this
34 * address space underneath this device. This should only be called manually
35 * if you want to register an early handler that must be available before the
36 * call to uacpi_namespace_initialize().
37 */
39 uacpi_namespace_node *device_node,
41);
42
43#endif // !UACPI_BAREBONES_MODE
44
45#ifdef __cplusplus
46}
47#endif
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7512
uacpi_status
Definition: status.h:10
uacpi_status(* uacpi_region_handler)(uacpi_region_op op, uacpi_handle op_data)
Definition: types.h:505
uacpi_address_space
Definition: types.h:36
uacpi_status uacpi_install_address_space_handler(uacpi_namespace_node *device_node, enum uacpi_address_space space, uacpi_region_handler handler, uacpi_handle handler_context)
Definition: opregion.c:701
uacpi_status uacpi_reg_all_opregions(uacpi_namespace_node *device_node, enum uacpi_address_space space)
Definition: opregion.c:585
uacpi_status uacpi_uninstall_address_space_handler(uacpi_namespace_node *device_node, enum uacpi_address_space space)
Definition: opregion.c:711