PatchworkOS
Loading...
Searching...
No Matches
patch_up.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5#include <sys/list.h>
6
7typedef struct aml_unresolved_obj aml_unresolved_obj_t;
8typedef struct aml_object aml_object_t;
9typedef struct aml_state aml_state_t;
10
26
31typedef struct aml_patch_up_entry
32{
36
43
54
61
75
82
uint64_t aml_patch_up_init(void)
Initialize the patch-up system.
Definition patch_up.c:15
uint64_t aml_patch_up_unresolved_count(void)
Get the number of unresolved references in the global list.
Definition patch_up.c:105
void aml_patch_up_remove_unresolved(aml_unresolved_obj_t *unresolved)
Removes an unresolved reference from the global list.
Definition patch_up.c:41
uint64_t aml_patch_up_resolve_all(void)
Attempts to resolve all unresolved references.
Definition patch_up.c:60
uint64_t aml_patch_up_add_unresolved(aml_unresolved_obj_t *unresolved)
Adds a unresolved reference to the global list.
Definition patch_up.c:21
uint64_t(* aml_patch_up_resolve_callback_t)(aml_state_t *state, aml_object_t *match, aml_object_t *unresolved)
Callback type for resolving a forward reference.
Definition patch_up.h:25
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
ACPI object.
Definition object.h:425
Entry in the global list of unresolved references.
Definition patch_up.h:32
aml_unresolved_obj_t * unresolved
The unresolved object.
Definition patch_up.h:34
list_entry_t entry
List entry for the global list of unresolved references.
Definition patch_up.h:33
AML State.
Definition state.h:25
Data for an unresolved object.
Definition object.h:390
A entry in a doubly linked list.
Definition list.h:38