mach_acpi.h 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* acpi.h */
  2. /* File for Harvey-specific ACPI defines. */
  3. /* ACPI redefines things found in libc, but this one thing we need.
  4. */
  5. #if 0
  6. typedef
  7. struct Lock {
  8. i32 key;
  9. i32 sem;
  10. } Lock;
  11. typedef struct QLp QLp;
  12. struct QLp
  13. {
  14. int inuse;
  15. QLp *next;
  16. char state;
  17. };
  18. typedef
  19. struct QLock
  20. {
  21. Lock lock;
  22. int locked;
  23. QLp *head;
  24. QLp *tail;
  25. } QLock;
  26. #endif
  27. #define ACPI_USE_SYSTEM_INTTYPES
  28. typedef u8 BOOLEAN;
  29. typedef QLock ACPI_MUTEX;
  30. typedef u64 COMPILER_DEPENDENT_UINT64;
  31. typedef u64 UINT64;
  32. typedef u32 UINT32;
  33. typedef u16 UINT16;
  34. typedef u8 UINT8;
  35. typedef i64 COMPILER_DEPENDENT_INT64;
  36. typedef i64 INT64;
  37. typedef i32 INT32;
  38. typedef i16 INT16;
  39. typedef i8 INT8;
  40. typedef int ACPI_THREAD_ID;
  41. #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
  42. #define ACPI_MACHINE_WIDTH 64
  43. #pragma clang diagnostic ignored "-Wunused-variable"
  44. #define ACPI_GET_FUNCTION_NAME __func__