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.

142 lines
2.5 KiB

  1. /**************************************************************************************************************************
  2. * DIAGS.H SigmaTel STIR4200 diagnostic definitions
  3. **************************************************************************************************************************
  4. * (C) Unpublished Copyright of Sigmatel, Inc. All Rights Reserved.
  5. *
  6. *
  7. * Created: 04/27/2000
  8. * Version 0.92
  9. * Edited: 05/12/2000
  10. * Version 0.94
  11. *
  12. *
  13. **************************************************************************************************************************/
  14. #ifndef DIAGS_H
  15. #define DIAGS_H
  16. #include "diagsioctl.h"
  17. //
  18. // Prototypes
  19. //
  20. BOOLEAN
  21. Diags_BufferToFirPacket(
  22. IN PIR_DEVICE pIrDev,
  23. OUT PUCHAR pIrPacketBuf,
  24. ULONG IrPacketBufLen,
  25. IN PUCHAR pContigPacketBuf,
  26. ULONG ContigPacketLen,
  27. OUT PULONG pIrPacketLen
  28. );
  29. BOOLEAN
  30. Diags_BufferToSirPacket(
  31. IN PIR_DEVICE pIrDev,
  32. OUT PUCHAR pIrPacketBuf,
  33. ULONG IrPacketBufLen,
  34. IN PUCHAR pContigPacketBuf,
  35. ULONG ContigPacketLen,
  36. USHORT ExtraBOFs,
  37. OUT PULONG pIrPacketLen
  38. );
  39. NTSTATUS
  40. Diags_Enable(
  41. IN OUT PIR_DEVICE pThisDev
  42. );
  43. NTSTATUS
  44. Diags_Disable(
  45. IN OUT PIR_DEVICE pThisDev
  46. );
  47. NTSTATUS
  48. Diags_ReadRegisters(
  49. IN PIR_DEVICE pThisDev,
  50. OUT PDIAGS_READ_REGISTERS_IOCTL pIOCTL,
  51. ULONG IOCTLSize
  52. );
  53. NTSTATUS
  54. Diags_WriteRegister(
  55. IN OUT PIR_DEVICE pThisDev,
  56. OUT PDIAGS_READ_REGISTERS_IOCTL pIOCTL,
  57. ULONG IOCTLSize
  58. );
  59. NTSTATUS
  60. Diags_PrepareBulk(
  61. IN OUT PIR_DEVICE pThisDev,
  62. OUT PDIAGS_BULK_IOCTL pIOCTL,
  63. ULONG IOCTLSize,
  64. BOOLEAN DirectionOut
  65. );
  66. NTSTATUS
  67. Diags_PrepareSend(
  68. IN OUT PIR_DEVICE pThisDev,
  69. OUT PDIAGS_SEND_IOCTL pIOCTL,
  70. ULONG IOCTLSize
  71. );
  72. NTSTATUS
  73. Diags_Receive(
  74. IN OUT PIR_DEVICE pThisDev,
  75. OUT PDIAGS_RECEIVE_IOCTL pIOCTL,
  76. ULONG IOCTLSize
  77. );
  78. NTSTATUS
  79. Diags_GetSpeed(
  80. IN OUT PIR_DEVICE pThisDev,
  81. OUT PDIAGS_SPEED_IOCTL pIOCTL,
  82. ULONG IOCTLSize
  83. );
  84. NTSTATUS
  85. Diags_SetSpeed(
  86. IN OUT PIR_DEVICE pThisDev,
  87. OUT PDIAGS_SPEED_IOCTL pIOCTL,
  88. ULONG IOCTLSize
  89. );
  90. VOID
  91. Diags_CompleteEnable(
  92. IN OUT PIR_DEVICE pThisDev,
  93. IN PVOID pContext
  94. );
  95. VOID
  96. Diags_CompleteReadRegisters(
  97. IN OUT PIR_DEVICE pThisDev,
  98. IN PVOID pContext
  99. );
  100. VOID
  101. Diags_CompleteWriteRegister(
  102. IN OUT PIR_DEVICE pThisDev,
  103. IN PVOID pContext
  104. );
  105. VOID
  106. Diags_Bulk(
  107. IN OUT PIR_DEVICE pThisDev,
  108. IN PVOID pContext,
  109. BOOLEAN DirectionOut
  110. );
  111. VOID
  112. Diags_Send(
  113. IN OUT PIR_DEVICE pThisDev,
  114. IN PVOID pContext
  115. );
  116. NTSTATUS
  117. Diags_CompleteIrp(
  118. IN PDEVICE_OBJECT pUsbDevObj,
  119. IN PIRP pIrp,
  120. IN PVOID Context
  121. );
  122. #endif DIAGS_H
  123.