Leaked source code of windows server 2003
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.

118 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. kdcomp.h
  5. Abstract:
  6. Private Kernel Debugger HW Extension DLL com port definitions
  7. Author:
  8. Eric Nelson (enelson) 1/10/2000
  9. Revision History:
  10. --*/
  11. #include "nthal.h"
  12. #define NOEXTAPI
  13. #include "wdbgexts.h"
  14. #include "ntdbg.h"
  15. #include "string.h"
  16. #include "stdlib.h"
  17. #include "kddll.h"
  18. #include "acpitabl.h"
  19. #ifndef __KDCOMP_H__
  20. #define __KDCOMP_H__
  21. extern ULONG KdCompPacketIdExpected;
  22. extern ULONG KdCompNextPacketIdToSend;
  23. extern BOOLEAN KdCompDbgPortsPresent;
  24. //
  25. // Local functions
  26. //
  27. ULONG
  28. KdCompGetByte(
  29. OUT PUCHAR Input
  30. );
  31. NTSTATUS
  32. KdCompInitialize(
  33. PDEBUG_PARAMETERS DebugParameters,
  34. PLOADER_PARAMETER_BLOCK LoaderBlock
  35. );
  36. VOID
  37. KdCompInitialize1(
  38. VOID
  39. );
  40. ULONG
  41. KdCompPollByte (
  42. OUT PUCHAR Input
  43. );
  44. VOID
  45. KdCompPutByte(
  46. IN UCHAR Output
  47. );
  48. USHORT
  49. KdCompReceivePacketLeader(
  50. IN ULONG PacketType,
  51. OUT PULONG PacketLeader,
  52. IN OUT PKD_CONTEXT KdContext
  53. );
  54. VOID
  55. KdCompRestore(
  56. VOID
  57. );
  58. VOID
  59. KdCompSave(
  60. VOID
  61. );
  62. VOID
  63. CpWritePortUchar(
  64. IN PUCHAR Address,
  65. IN UCHAR Value
  66. );
  67. UCHAR
  68. CpReadPortUchar(
  69. IN PUCHAR Address
  70. );
  71. VOID
  72. CpWriteRegisterUchar(
  73. IN PUCHAR Address,
  74. IN UCHAR Value
  75. );
  76. UCHAR
  77. CpReadRegisterUchar(
  78. IN PUCHAR Address
  79. );
  80. typedef
  81. VOID
  82. (*pKWriteUchar) (
  83. IN PUCHAR Address,
  84. IN UCHAR Value
  85. );
  86. typedef
  87. UCHAR
  88. (*pKReadUchar) (
  89. IN PUCHAR Address
  90. );
  91. #endif // __KDCOMP_H__