MOS Source Code
|
#include "mos/filesystem/sysfs/sysfs.h"
#include "mos/filesystem/sysfs/sysfs_autoinit.h"
#include "mos/mm/mm.h"
#include "mos/mm/paging/table_ops.h"
#include "mos/mm/physical/pmm.h"
#include "mos/x86/acpi/acpi_types.h"
#include <mos/mos_global.h>
#include <mos/syslog/printk.h>
#include <mos/x86/acpi/acpi.h>
#include <mos/x86/acpi/madt.h>
#include <mos/x86/cpu/cpu.h>
#include <mos/x86/devices/port.h>
#include <mos/x86/x86_interrupt.h>
#include <mos/x86/x86_platform.h>
#include <mos_stdlib.h>
#include <mos_string.h>
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | acpi_sysfs_item_t |
Macros | |
#define | do_verify_checksum(var, header, type) |
Functions | |
static void | __sysfs_acpi_init (void) |
MOS_INIT (SYSFS, __sysfs_acpi_init) | |
static bool | acpi_sysfs_mmap (sysfs_file_t *f, vmap_t *vmap, off_t offset) |
static bool | acpi_sysfs_munmap (sysfs_file_t *f, vmap_t *vmap, bool *unmapped) |
static void | register_sysfs_acpi_rsdp (const acpi_rsdp_t *rsdp) |
static void | register_sysfs_acpi_node (const char table_name[4], const acpi_sdt_header_t *header) |
should_inline bool | verify_sdt_checksum (const acpi_sdt_header_t *tableHeader) |
static void | do_handle_sdt_header (const acpi_sdt_header_t *const header) |
static void | do_iterate_sdts (const acpi_rsdp_t *rsdp) |
void | acpi_parse_rsdt (const acpi_rsdp_t *rsdp) |
const acpi_rsdp_t * | acpi_find_rsdp (ptr_t start, size_t size) |
Variables | |
ptr_t | x86_acpi_dsdt = 0 |
static sysfs_item_t | acpi_sysfs_items [] |
static sysfs_dir_t | __sysfs_acpi = { .list_node = LIST_NODE_INIT(__sysfs_acpi), .name = "acpi", .items = acpi_sysfs_items, .num_items = MOS_ARRAY_SIZE(acpi_sysfs_items), ._dentry = NULL, ._dynamic_items = LIST_HEAD_INIT(__sysfs_acpi._dynamic_items), } |
#define do_verify_checksum | ( | var, | |
header, | |||
type ) |
Definition at line 30 of file acpi.c.
Referenced by do_handle_sdt_header(), and do_iterate_sdts().
MOS_INIT | ( | SYSFS | , |
__sysfs_acpi_init | ) |
|
static |
Definition at line 42 of file acpi.c.
Referenced by register_sysfs_acpi_node(), and register_sysfs_acpi_rsdp().
|
static |
Definition at line 54 of file acpi.c.
Referenced by register_sysfs_acpi_node(), and register_sysfs_acpi_rsdp().
|
static |
Definition at line 62 of file acpi.c.
Referenced by acpi_parse_rsdt().
|
static |
Definition at line 81 of file acpi.c.
Referenced by do_handle_sdt_header().
should_inline bool verify_sdt_checksum | ( | const acpi_sdt_header_t * | tableHeader | ) |
Definition at line 100 of file acpi.c.
Referenced by do_handle_sdt_header(), and do_iterate_sdts().
|
static |
Definition at line 108 of file acpi.c.
Referenced by do_iterate_sdts().
|
static |
Definition at line 131 of file acpi.c.
Referenced by acpi_parse_rsdt().
void acpi_parse_rsdt | ( | const acpi_rsdp_t * | rsdp | ) |
Definition at line 173 of file acpi.c.
Referenced by platform_startup_late().
const acpi_rsdp_t * acpi_find_rsdp | ( | ptr_t | start, |
size_t | size ) |
Definition at line 180 of file acpi.c.
Referenced by platform_startup_late().
ptr_t x86_acpi_dsdt = 0 |
Definition at line 22 of file acpi.c.
Referenced by do_handle_sdt_header().
|
static |
|
static |
Definition at line 28 of file acpi.c.
Referenced by register_sysfs_acpi_node(), and register_sysfs_acpi_rsdp().