acpi.h 618 B

12345678910111213141516171819202122
  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. void acpi_dump(void);
  17. #endif