PatchworkOS
Loading...
Searching...
No Matches
compare.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
kernel/acpi/aml/object.h
>
4
17
typedef
enum
18
{
19
AML_COMPARE_AND
= 0,
20
AML_COMPARE_EQUAL
= 1,
21
AML_COMPARE_GREATER
= 2,
22
AML_COMPARE_LESS
= 3,
23
AML_COMPARE_OR
= 4,
24
25
AML_COMPARE_INVERT_BASE
= 0xFF,
26
AML_COMPARE_NOT_EQUAL
=
AML_COMPARE_INVERT_BASE
+
AML_COMPARE_EQUAL
,
27
AML_COMPARE_LESS_EQUAL
=
AML_COMPARE_INVERT_BASE
+
AML_COMPARE_GREATER
,
28
AML_COMPARE_GREATER_EQUAL
=
AML_COMPARE_INVERT_BASE
+
AML_COMPARE_LESS
,
29
}
aml_compare_operation_t
;
30
37
aml_integer_t
aml_compare_not
(
aml_integer_t
value);
38
50
aml_integer_t
aml_compare
(
aml_object_t
* a,
aml_object_t
* b,
aml_compare_operation_t
operation);
51
aml_compare_operation_t
aml_compare_operation_t
Definition
compare.h:18
aml_compare_not
aml_integer_t aml_compare_not(aml_integer_t value)
Perform a logical NOT operation on an integer value.
Definition
compare.c:25
aml_compare
aml_integer_t aml_compare(aml_object_t *a, aml_object_t *b, aml_compare_operation_t operation)
Compare two ACPI objects.
Definition
compare.c:30
AML_COMPARE_NOT_EQUAL
@ AML_COMPARE_NOT_EQUAL
Definition
compare.h:26
AML_COMPARE_GREATER_EQUAL
@ AML_COMPARE_GREATER_EQUAL
Definition
compare.h:28
AML_COMPARE_OR
@ AML_COMPARE_OR
Section 19.6.80, integer only.
Definition
compare.h:23
AML_COMPARE_LESS
@ AML_COMPARE_LESS
Section 19.6.73.
Definition
compare.h:22
AML_COMPARE_GREATER
@ AML_COMPARE_GREATER
Section 19.6.71.
Definition
compare.h:21
AML_COMPARE_EQUAL
@ AML_COMPARE_EQUAL
Section 19.6.70.
Definition
compare.h:20
AML_COMPARE_LESS_EQUAL
@ AML_COMPARE_LESS_EQUAL
Definition
compare.h:27
AML_COMPARE_AND
@ AML_COMPARE_AND
Section 19.6.69, integer only.
Definition
compare.h:19
AML_COMPARE_INVERT_BASE
@ AML_COMPARE_INVERT_BASE
All operations above this value are inverted versions of the base operations.
Definition
compare.h:25
aml_integer_t
uint64_t aml_integer_t
AML Integer type.
Definition
integer.h:20
object.h
aml_object_t
ACPI object.
Definition
object.h:425
include
kernel
acpi
aml
runtime
compare.h
Generated by
1.9.8