Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. acpiuasm.h
  5. Abstract:
  6. Test wrapper for the unassembler
  7. Author:
  8. Stephane Plante
  9. Based on code by Ken Reneris
  10. Environment:
  11. User
  12. Revision History:
  13. --*/
  14. #ifndef _ACPIUASM_H_
  15. #define _ACPIUASM_H_
  16. #include <windows.h>
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <stdarg.h>
  20. #define DATA_SIZE 7*1024 // max value to write into registry
  21. typedef struct _DSDT {
  22. ULONG Signature;
  23. ULONG Length;
  24. UCHAR Revision;
  25. UCHAR Checksum;
  26. UCHAR OemID[6];
  27. UCHAR OemTableID[8];
  28. UCHAR OemRevision[4];
  29. UCHAR CreatorID[4];
  30. UCHAR CreatorRevision[4];
  31. } DSDT, *PDSDT;
  32. typedef struct _IFILE {
  33. BOOLEAN Opened;
  34. PUCHAR Desc;
  35. PUCHAR FileName;
  36. HANDLE FileHandle;
  37. HANDLE MapHandle;
  38. ULONG FileSize;
  39. PUCHAR Image;
  40. PUCHAR EndOfImage;
  41. PUCHAR OemID;
  42. PUCHAR OemTableID;
  43. UCHAR OemRevision[4];
  44. } IFILE, *PIFILE;
  45. //
  46. // External references
  47. //
  48. extern
  49. ULONG
  50. ScopeParser(
  51. IN PUCHAR String,
  52. IN ULONG Length,
  53. IN ULONG BaseAddress,
  54. IN ULONG IndentLevel
  55. );
  56. //
  57. // Internal prototypes
  58. //
  59. VOID
  60. ParseArgs (
  61. IN int argc,
  62. IN char *argv[]
  63. );
  64. VOID
  65. CheckImageHeader (
  66. IN PIFILE File
  67. );
  68. VOID
  69. FAbort (
  70. PUCHAR Text,
  71. PIFILE File
  72. );
  73. VOID
  74. Abort (
  75. VOID
  76. );
  77. PUCHAR
  78. FixString (
  79. IN PUCHAR Str,
  80. IN ULONG Len
  81. );
  82. #endif