You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

acpi.h 973B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _GPXE_ACPI_H
  2. #define _GPXE_ACPI_H
  3. /** @file
  4. *
  5. * ACPI data structures
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. #include <stdint.h>
  10. /**
  11. * An ACPI description header
  12. *
  13. * This is the structure common to the start of all ACPI system
  14. * description tables.
  15. */
  16. struct acpi_description_header {
  17. /** ACPI signature (4 ASCII characters) */
  18. char signature[4];
  19. /** Length of table, in bytes, including header */
  20. uint32_t length;
  21. /** ACPI Specification minor version number */
  22. uint8_t revision;
  23. /** To make sum of entire table == 0 */
  24. uint8_t checksum;
  25. /** OEM identification */
  26. char oem_id[6];
  27. /** OEM table identification */
  28. char oem_table_id[8];
  29. /** OEM revision number */
  30. uint32_t oem_revision;
  31. /** ASL compiler vendor ID */
  32. char asl_compiler_id[4];
  33. /** ASL compiler revision number */
  34. uint32_t asl_compiler_revision;
  35. } __attribute__ (( packed ));
  36. extern void acpi_fix_checksum ( struct acpi_description_header *acpi );
  37. #endif /* _GPXE_ACPI_H */