mach_acpi.h 524 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. typedef QLock ACPI_MUTEX;
  28. typedef uint32_t UINT32;
  29. typedef uint16_t UINT16;
  30. typedef uint8_t UINT8;
  31. typedef int ACPI_THREAD_ID;
  32. #define ACPI_MACHINE_WIDTH 64