RTEMS
6.1-rc7
Loading...
Searching...
No Matches
bsps
x86_64
amd64
include
acpi
acpi.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
13
/*
14
* Copyright (C) 2024 Matheus Pecoraro
15
*
16
* Redistribution and use in source and binary forms, with or without
17
* modification, are permitted provided that the following conditions
18
* are met:
19
* 1. Redistributions of source code must retain the above copyright
20
* notice, this list of conditions and the following disclaimer.
21
* 2. Redistributions in binary form must reproduce the above copyright
22
* notice, this list of conditions and the following disclaimer in the
23
* documentation and/or other materials provided with the distribution.
24
*
25
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
29
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35
* POSSIBILITY OF SUCH DAMAGE.
36
*/
37
38
#ifndef _AMD64_ACPI_H_
39
#define _AMD64_ACPI_H_
40
41
#include <bsp.h>
42
#include <acpi/acpica/acpi.h>
43
44
#define ACPI_MAX_INIT_TABLES 16
45
46
extern
uint64_t acpi_rsdp_addr;
47
59
bool
acpi_tables_initialize
(
void
);
60
68
void
acpi_walk_subtables
(
69
ACPI_TABLE_HEADER
*table,
70
size_t
size_of_header,
71
void
(*handler)(
ACPI_SUBTABLE_HEADER
*)
72
);
73
74
#endif
/* _AMD64_ACPI_H_ */
acpi_subtable_header
Definition:
actbl1.h:241
acpi_table_header
Definition:
actbl.h:215
acpi_walk_subtables
void acpi_walk_subtables(ACPI_TABLE_HEADER *table, size_t size_of_header, void(*handler)(ACPI_SUBTABLE_HEADER *))
Walks through the subtables of an ACPI table.
Definition:
acpi.c:59
acpi_tables_initialize
bool acpi_tables_initialize(void)
Initializes the ACPICA Table Manager. Requires dynamic memory.
Definition:
acpi.c:46
Generated by
1.9.6