acpi.h 796 B

1234567891011121314151617181920212223242526
  1. /* Minimal ACPI table discovery: RSDP -> RSDT/XSDT -> MADT.
  2. *
  3. * Only the CPU/LAPIC information needed to start APs is parsed. Absence of
  4. * ACPI or of a usable MADT is not an error: the kernel then stays UP.
  5. */
  6. #ifndef ACPI_H
  7. #define ACPI_H
  8. #define ACPI_MAX_CPUS 8
  9. /* Returns 1 when a usable MADT with at least one local APIC entry was found.
  10. * acpi_cpu_count() then includes the BSP as entry 0. */
  11. int acpi_init(void);
  12. unsigned int acpi_cpu_count(void);
  13. unsigned int acpi_cpu_apic_id(unsigned int index);
  14. unsigned int acpi_bsp_apic_id(void);
  15. unsigned int acpi_lapic_base(void);
  16. /* CMOS register holding the RTC century byte from the FADT, or 0 when the
  17. * firmware does not provide one (old non-ACPI hardware). */
  18. unsigned int acpi_rtc_century_reg(void);
  19. void acpi_dump(void);
  20. #endif