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.

123 lines
1.5 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. ULONG
  81. KdCompGetDebugTblBaudRate(
  82. UCHAR BaudRateFlag
  83. );
  84. typedef
  85. VOID
  86. (*pKWriteUchar) (
  87. IN PUCHAR Address,
  88. IN UCHAR Value
  89. );
  90. typedef
  91. UCHAR
  92. (*pKReadUchar) (
  93. IN PUCHAR Address
  94. );
  95. #endif // __KDCOMP_H__