mach_acpi.h 928 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. int32_t key;
  9. int32_t 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 uint8_t BOOLEAN;
  29. typedef QLock ACPI_MUTEX;
  30. typedef uint64_t COMPILER_DEPENDENT_UINT64;
  31. typedef uint64_t UINT64;
  32. typedef uint32_t UINT32;
  33. typedef uint16_t UINT16;
  34. typedef uint8_t UINT8;
  35. typedef int64_t COMPILER_DEPENDENT_INT64;
  36. typedef int64_t INT64;
  37. typedef int32_t INT32;
  38. typedef int16_t INT16;
  39. typedef int8_t 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__