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.

269 lines
3.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. tcicext.h
  5. Abstract:
  6. Definitions for TCIC support helper functions.
  7. Author(s):
  8. John Keys - Databook Inc. 7-Apr-1995
  9. Revisions:
  10. --*/
  11. #ifndef _tcicext_h_ // prevent multiple includes
  12. #define _tcicext_h_
  13. BOOLEAN
  14. TcicReservedBitsOK(
  15. IN PSOCKET pskt
  16. );
  17. VOID
  18. TcicFillInAdapter(
  19. IN PSOCKET plocskt,
  20. IN PSOCKET *psocketPtr,
  21. IN PSOCKET *previousSocketPtr,
  22. IN PFDO_EXTENSION DeviceExtension,
  23. IN ULONG ioPortBase
  24. );
  25. USHORT
  26. TcicReadBaseReg(
  27. IN PSOCKET SocketPtr,
  28. IN ULONG Register
  29. );
  30. VOID
  31. TcicWriteBaseReg(
  32. IN PSOCKET SocketPtr,
  33. IN ULONG Register,
  34. IN USHORT value
  35. );
  36. ULONG
  37. TcicReadAddrReg(
  38. IN PSOCKET SocketPtr
  39. );
  40. VOID
  41. TcicWriteAddrReg(
  42. IN PSOCKET SocketPtr,
  43. IN ULONG addr
  44. );
  45. USHORT
  46. TcicReadAuxReg(
  47. IN PSOCKET SocketPtr,
  48. IN ULONG Register
  49. );
  50. VOID
  51. TcicWriteAuxReg(
  52. IN PSOCKET SocketPtr,
  53. IN ULONG Register,
  54. IN USHORT value
  55. );
  56. VOID
  57. TcicReadIndirectRegs(
  58. IN PSOCKET SocketPtr,
  59. IN ULONG StartRegister,
  60. IN USHORT numWords,
  61. IN PUSHORT ReadBuffer
  62. );
  63. VOID
  64. TcicWriteIndirectRegs(
  65. IN PSOCKET SocketPtr,
  66. IN ULONG StartRegister,
  67. IN USHORT numWords,
  68. IN PUSHORT WriteBuffer
  69. );
  70. USHORT
  71. TcicSocketSelect(
  72. IN PSOCKET SocketPtr,
  73. IN USHORT sktnum
  74. );
  75. PUCHAR
  76. TcicAllocateMemRange(
  77. IN PFDO_EXTENSION DeviceExtension,
  78. IN PULONG Mapped,
  79. IN PULONG Physical
  80. );
  81. USHORT
  82. TcicChipID (
  83. IN PDBSOCKET pInst
  84. );
  85. BOOLEAN
  86. TcicCheckSkt(
  87. IN PSOCKET pInst,
  88. IN int iSocket
  89. );
  90. USHORT
  91. TcicCheckAliasing(
  92. IN PDBSOCKET pdbskt,
  93. IN USHORT offst
  94. );
  95. USHORT
  96. TcicCheckAliasType (
  97. IN PDBSOCKET pInst
  98. );
  99. BOOLEAN
  100. TcicCheckXBufNeeded(
  101. IN PSOCKET pInst
  102. );
  103. VOID TcicSetMemWindow(
  104. IN PSOCKET pInst,
  105. IN USHORT wnum,
  106. IN ULONG_PTR base,
  107. IN USHORT npages,
  108. IN USHORT mctl
  109. );
  110. VOID
  111. TcicGetPossibleIRQs(
  112. IN PDBSOCKET pInst,
  113. IN UCHAR *ptbl
  114. );
  115. CHIPPROPS *
  116. TcicGetChipProperties(
  117. IN PDBSOCKET pInst
  118. );
  119. BOOLEAN
  120. TcicChipIDKnown(
  121. IN PDBSOCKET pInst
  122. );
  123. USHORT
  124. TcicGetnIOWins(
  125. IN PDBSOCKET pInst
  126. );
  127. USHORT
  128. TcicGetnMemWins(
  129. IN PDBSOCKET pInst
  130. );
  131. USHORT
  132. TcicGetFlags(
  133. IN PDBSOCKET pInst
  134. );
  135. BOOLEAN
  136. TcicIsPnP(
  137. IN PDBSOCKET pInst
  138. );
  139. BOOLEAN
  140. TcicHasSktIRQPin(
  141. IN PDBSOCKET pInst
  142. );
  143. VOID
  144. TcicGetAdapterInfo(
  145. IN PDBSOCKET dbsocketPtr
  146. );
  147. USHORT
  148. TcicGet5vVccVal(
  149. IN PDBSOCKET pInst
  150. );
  151. VOID
  152. TcicGetIRQMap(
  153. IN PDBSOCKET pInst
  154. );
  155. USHORT
  156. TcicClockRate(
  157. PSOCKET pInst
  158. );
  159. VOID
  160. TcicSetIoWin(
  161. IN PSOCKET socketPtr,
  162. IN USHORT winIdx,
  163. IN ULONG BasePort,
  164. IN ULONG NumPorts,
  165. IN UCHAR Attributes
  166. );
  167. VOID
  168. TcicSetMemWin(
  169. IN PSOCKET socketPtr,
  170. IN USHORT winIdx,
  171. IN ULONG cardbase,
  172. IN ULONG base,
  173. IN ULONG size,
  174. IN UCHAR AttrMem,
  175. IN UCHAR AccessSpeed,
  176. IN USHORT Attributes
  177. );
  178. USHORT
  179. TcicMapSpeedCode(
  180. IN PDBSOCKET pdb,
  181. IN UCHAR AccessSpeed
  182. );
  183. VOID
  184. TcicAutoBusyOff(
  185. IN PDBSOCKET pdbs
  186. );
  187. UCHAR
  188. TcicAutoBusyCheck(
  189. IN PDBSOCKET pdbs
  190. );
  191. VOID
  192. TcicCheckSktLED(
  193. IN PDBSOCKET pdbs
  194. );
  195. VOID
  196. TcicBusyLedRoutine(
  197. IN PDEVICE_OBJECT DeviceObject,
  198. IN PVOID Context
  199. );
  200. VOID
  201. TcicDecodeIoWin(
  202. USHORT iobase,
  203. USHORT ioctl,
  204. USHORT *NumPorts,
  205. USHORT *BasePort
  206. );
  207. VOID
  208. TcicDecodeMemWin(
  209. USHORT mbase,
  210. USHORT mmap,
  211. USHORT mctl,
  212. ULONG *Host,
  213. ULONG *Card,
  214. ULONG *Size,
  215. UCHAR *Attr
  216. );
  217. #endif // _tcicext_h_