| 123456789101112131415161718192021222324252627282930313233343536 |
- /* Minimal ACPI table discovery: RSDP -> RSDT/XSDT -> MADT.
- *
- * Only the CPU/LAPIC information needed to start APs is parsed. Absence of
- * ACPI or of a usable MADT is not an error: the kernel then stays UP.
- */
- #ifndef ACPI_H
- #define ACPI_H
- #define ACPI_MAX_CPUS 8
- #define ACPI_MAX_IOAPICS 4
- /* Returns 1 when a usable MADT with at least one local APIC entry was found.
- * acpi_cpu_count() then includes the BSP as entry 0. */
- int acpi_init(void);
- unsigned int acpi_cpu_count(void);
- unsigned int acpi_cpu_apic_id(unsigned int index);
- unsigned int acpi_bsp_apic_id(void);
- unsigned int acpi_lapic_base(void);
- unsigned int acpi_ioapic_count(void);
- unsigned int acpi_ioapic_base(unsigned int index);
- /* CMOS register holding the RTC century byte from the FADT, or 0 when the
- * firmware does not provide one (old non-ACPI hardware). */
- unsigned int acpi_rtc_century_reg(void);
- /* Put the machine into ACPI S5 (soft off). Returns 0 when the S5 write was
- * issued, -1 when the firmware provides no usable S5 path. */
- int acpi_poweroff(void);
- /* Write the DSDT (as mapped at boot) to a VFS path, for diagnostics. */
- int acpi_dump_dsdt(const char *path);
- void acpi_dump(void);
- #endif
|