acpi.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*++
  2. Copyright (c) 2012 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. acpi.h
  5. Abstract:
  6. This header contains definitions for the kernel's implementation of support
  7. for the Advanced Configuration and Power Interface (ACPI).
  8. Author:
  9. Evan Green 4-Aug-2012
  10. --*/
  11. //
  12. // ------------------------------------------------------------------- Includes
  13. //
  14. #include <minoca/fw/acpitabs.h>
  15. //
  16. // ---------------------------------------------------------------- Definitions
  17. //
  18. //
  19. // Define the ACPI allocation tag: ACPI.
  20. //
  21. #define ACPI_ALLOCATION_TAG 0x49504341
  22. //
  23. // Define the ACPI resource allocation tag: AcpR.
  24. //
  25. #define ACPI_RESOURCE_ALLOCATION_TAG 0x52706341
  26. //
  27. // ------------------------------------------------------ Data Type Definitions
  28. //
  29. //
  30. // -------------------------------------------------------------------- Globals
  31. //
  32. extern PVOID AcpiTables;
  33. extern ULONG AcpiTablesSize;
  34. //
  35. // -------------------------------------------------------- Function Prototypes
  36. //
  37. KERNEL_API
  38. PVOID
  39. AcpiFindTable (
  40. ULONG Signature,
  41. PVOID PreviousTable
  42. );
  43. /*++
  44. Routine Description:
  45. This routine attempts to find an ACPI description table with the given
  46. signature. This routine can also be used to find the SMBIOS table.
  47. Arguments:
  48. Signature - Supplies the signature of the desired table.
  49. PreviousTable - Supplies a pointer to the table to start the search from.
  50. Return Value:
  51. Returns a pointer to the beginning of the header to the table if the table
  52. was found, or NULL if the table could not be located.
  53. --*/