acpi.h 912 B

1234567891011121314151617181920212223242526272829
  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. #define ACPI_MAX_IOAPICS 4
  10. /* Returns 1 when a usable MADT with at least one local APIC entry was found.
  11. * acpi_cpu_count() then includes the BSP as entry 0. */
  12. int acpi_init(void);
  13. unsigned int acpi_cpu_count(void);
  14. unsigned int acpi_cpu_apic_id(unsigned int index);
  15. unsigned int acpi_bsp_apic_id(void);
  16. unsigned int acpi_lapic_base(void);
  17. unsigned int acpi_ioapic_count(void);
  18. unsigned int acpi_ioapic_base(unsigned int index);
  19. /* CMOS register holding the RTC century byte from the FADT, or 0 when the
  20. * firmware does not provide one (old non-ACPI hardware). */
  21. unsigned int acpi_rtc_century_reg(void);
  22. void acpi_dump(void);
  23. #endif