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.

116 lines
3.0 KiB

  1. /*** wubiosp.h - WindowsUpdate BIOS Scanning VxD Private Definitions
  2. *
  3. * Author: Yan Leshinsky (YanL)
  4. * Created 10/04/98
  5. *
  6. * MODIFICATION HISTORY
  7. */
  8. #ifndef _WUBIOSP_H
  9. #define _WUBIOSP_H
  10. /*XLATOFF*/
  11. #define CM_PERFORMANCE_INFO
  12. #include <basedef.h>
  13. #include <vmm.h>
  14. #define USECMDWRAPPERS
  15. #include <vxdwraps.h>
  16. #include <configmg.h>
  17. #include <vwin32.h>
  18. #include <winerror.h>
  19. #include "wubios.h"
  20. /*XLATON*/
  21. /*** Build Options
  22. */
  23. #ifdef DEBUG
  24. #define TRACING
  25. #define DEBUGGER
  26. #endif //DEBUG
  27. /*** Constants
  28. */
  29. #define WARNNAME "WUBIOS"
  30. /*XLATOFF*/
  31. #pragma intrinsic(memcpy)
  32. /*** Global Data
  33. */
  34. #ifdef TRACING
  35. extern int giIndent;
  36. #endif
  37. /*** Macros
  38. */
  39. #define DEREF(x) ((x) = (x))
  40. #ifdef TRACING
  41. BOOL CM_LOCAL IsTraceOn(BYTE n, char *pszProcName, BOOL fEnter);
  42. #define TRACENAME(s) char *pszTraceName = s;
  43. #define ENTER(n,p) { \
  44. if (IsTraceOn(n, pszTraceName, TRUE)) \
  45. CMDD p; \
  46. ++giIndent; \
  47. }
  48. #define EXIT(n,p) { \
  49. --giIndent; \
  50. if (IsTraceOn(n, pszTraceName, FALSE)) \
  51. CMDD p; \
  52. }
  53. #else
  54. #define TRACENAME(s)
  55. #define ENTER(n,p)
  56. #define EXIT(n,p)
  57. #endif //TRACING
  58. #ifdef DEBUGGER
  59. VOID CM_SYSCTRL WUBIOS_Debug(VOID);
  60. #endif
  61. #ifdef DEBUG
  62. #define DBG_PRINTF(str) _Debug_Printf_Service##str
  63. #define DBG_WARN(str) { \
  64. _Debug_Printf_Service(WARNNAME ":WARNS:"); \
  65. _Debug_Printf_Service##str; \
  66. _Debug_Printf_Service("\n"); \
  67. }
  68. #define DBG_ERR(str) { \
  69. _Debug_Printf_Service(WARNNAME ":ERROR:"); \
  70. _Debug_Printf_Service##str; \
  71. _Debug_Printf_Service("\n"); \
  72. _asm int 3 \
  73. }
  74. #define ASSERT(x) if (!(x)) \
  75. DBG_ERR(("Assertion failed: file %s, line %d", \
  76. __FILE__, __LINE__))
  77. #else
  78. #define DBG_PRINTF(str)
  79. #define DBG_WARN(str)
  80. #define DBG_ERR(str)
  81. #define ASSERT(x)
  82. #endif //DEBUG
  83. /*XLATON*/
  84. /*** Functions prototipes
  85. */
  86. CM_VXD_RESULT CM_SYSCTRL WUBIOS_IOCtrl(PDIOCPARAMETERS pdioc);
  87. BYTE CM_INTERNAL CheckSum(PBYTE pb, DWORD dwLen);
  88. /*** ACPI
  89. */
  90. DWORD CM_INTERNAL AcpiFindTable(DWORD dwSig, PDWORD pdwLen);
  91. VOID CM_INTERNAL AcpiCopyROM(DWORD dwPhyAddr, PBYTE pbBuff, DWORD dwLen);
  92. /*** SMBIOS
  93. */
  94. DWORD CM_INTERNAL SmbStructSize(void);
  95. CM_VXD_RESULT CM_INTERNAL SmbCopyStruct(DWORD dwType, PBYTE pbBuff, DWORD dwLen);
  96. DWORD CM_INTERNAL PnpOEMID(void);
  97. #endif //ifndef _ACPITABP_H