acpi.h 1.8 KB

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