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.

242 lines
7.7 KiB

  1. // $Header: G:/SwDev/WDM/Video/bt848/rcs/Preg.h 1.2 1998/04/29 22:43:35 tomz Exp $
  2. // Header file generated from zzztmp.h
  3. // use the macro DECLARE_regname to get declarations.
  4. // use the macro CONSTRUCT_regname to get constructor calls.
  5. #define DECLARE_COLORFORMAT RegisterDW ColorFormat; \
  6. RegField COLOR_EVEN; \
  7. RegField COLOR_ODD
  8. #define CONSTRUCT_COLORFORMAT ColorFormat( 0x00D4, RW), \
  9. COLOR_EVEN( ColorFormat, 0, 4, RW), \
  10. COLOR_ODD( ColorFormat, 4, 4, RW)
  11. #define DECLARE_COLORCONTROL RegisterDW ColorControl; \
  12. RegField BSWAP_EVEN; \
  13. RegField BSWAP_ODD; \
  14. RegField WSWAP_EVEN; \
  15. RegField WSWAP_ODD; \
  16. RegField GAMMA; \
  17. RegField RGB_DED; \
  18. RegField COLOR_BARS; \
  19. RegField EXT_FRMRATE
  20. #define CONSTRUCT_COLORCONTROL ColorControl( 0x00D8, RW), \
  21. BSWAP_EVEN( ColorControl, 0, 1, RW), \
  22. BSWAP_ODD( ColorControl, 1, 1, RW), \
  23. WSWAP_EVEN( ColorControl, 2, 1, RW), \
  24. WSWAP_ODD( ColorControl, 3, 1, RW), \
  25. GAMMA( ColorControl, 4, 1, RW), \
  26. RGB_DED( ColorControl, 5, 1, RW), \
  27. COLOR_BARS( ColorControl, 6, 1, RW), \
  28. EXT_FRMRATE( ColorControl, 7, 1, RW)
  29. #define DECLARE_CAPTURECONTROL RegisterDW CaptureControl; \
  30. RegField CAPTURE_EVEN; \
  31. RegField CAPTURE_ODD; \
  32. RegField CAPTURE_VBI_EVEN; \
  33. RegField CAPTURE_VBI_ODD; \
  34. RegField DITH_FRAME; \
  35. RegField RESERVED0
  36. #define CONSTRUCT_CAPTURECONTROL CaptureControl( 0x00DC, RW), \
  37. CAPTURE_EVEN( CaptureControl, 0, 1, RW), \
  38. CAPTURE_ODD( CaptureControl, 1, 1, RW), \
  39. CAPTURE_VBI_EVEN( CaptureControl, 2, 1, RW), \
  40. CAPTURE_VBI_ODD( CaptureControl, 3, 1, RW), \
  41. DITH_FRAME( CaptureControl, 4, 1, RW), \
  42. RESERVED0( CaptureControl, 5, 3, RW)
  43. #define DECLARE_VBIPACKETSIZE RegisterDW VBIPacketSize; \
  44. RegField VBI_PKT_LO
  45. #define CONSTRUCT_VBIPACKETSIZE VBIPacketSize( 0x00E0, RW), \
  46. VBI_PKT_LO( VBIPacketSize, 0, 8, RW)
  47. #define DECLARE_VBIDELAY RegisterDW VBIDelay; \
  48. RegField VBI_PKT_HI; \
  49. RegField EXT_RAW; \
  50. RegField VBI_HDELAY
  51. #define CONSTRUCT_VBIDELAY VBIDelay( 0x00E4, RW), \
  52. VBI_PKT_HI( VBIDelay, 0, 1, RW), \
  53. EXT_RAW( VBIDelay, 1, 1, RW), \
  54. VBI_HDELAY( VBIDelay, 2, 6, RW)
  55. #define DECLARE_INTERRUPTSTATUS RegisterDW InterruptStatus; \
  56. RegField FMTCHG; \
  57. RegField VSYNC; \
  58. RegField HSYNC; \
  59. RegField OFLOW; \
  60. RegField HLOCK; \
  61. RegField VPRES; \
  62. RegField RESERVED1; \
  63. RegField RESERVED2; \
  64. RegField I2CDONE; \
  65. RegField GPINT; \
  66. RegField RESERVED3; \
  67. RegField RISCI; \
  68. RegField FBUS; \
  69. RegField FTRGT; \
  70. RegField FDSR; \
  71. RegField PPERR; \
  72. RegField RIPERR; \
  73. RegField PABORT; \
  74. RegField OCERR; \
  75. RegField SCERR; \
  76. RegField RESERVED4; \
  77. RegField FIELD; \
  78. RegField RACK; \
  79. RegField V5IO; \
  80. RegField RISC_EN; \
  81. RegField RISCS
  82. #define CONSTRUCT_INTERRUPTSTATUS InterruptStatus( 0x0100, RW), \
  83. FMTCHG( InterruptStatus, 0, 1, RR), \
  84. VSYNC( InterruptStatus, 1, 1, RR), \
  85. HSYNC( InterruptStatus, 2, 1, RR), \
  86. OFLOW( InterruptStatus, 3, 1, RR), \
  87. HLOCK( InterruptStatus, 4, 1, RR), \
  88. VPRES( InterruptStatus, 5, 1, RR), \
  89. RESERVED1( InterruptStatus, 6, 1, RO), \
  90. RESERVED2( InterruptStatus, 7, 1, RO), \
  91. I2CDONE( InterruptStatus, 8, 1, RR), \
  92. GPINT( InterruptStatus, 9, 1, RR), \
  93. RESERVED3( InterruptStatus, 10, 1, RO), \
  94. RISCI( InterruptStatus, 11, 1, RR), \
  95. FBUS( InterruptStatus, 12, 1, RR), \
  96. FTRGT( InterruptStatus, 13, 1, RR), \
  97. FDSR( InterruptStatus, 14, 1, RR), \
  98. PPERR( InterruptStatus, 15, 1, RR), \
  99. RIPERR( InterruptStatus, 16, 1, RR), \
  100. PABORT( InterruptStatus, 17, 1, RR), \
  101. OCERR( InterruptStatus, 18, 1, RR), \
  102. SCERR( InterruptStatus, 19, 1, RR), \
  103. RESERVED4( InterruptStatus, 20, 4, RO), \
  104. FIELD( InterruptStatus, 24, 1, RO), \
  105. RACK( InterruptStatus, 25, 1, RO), \
  106. V5IO( InterruptStatus, 26, 1, RO), \
  107. RISC_EN( InterruptStatus, 27, 1, RO), \
  108. RISCS( InterruptStatus, 28, 4, RO)
  109. #define DECLARE_INTERRUPTMASK RegisterDW InterruptMask; \
  110. RegField IMASK_FMTCHG; \
  111. RegField IMASK_VSYNC; \
  112. RegField IMASK_HSYNC; \
  113. RegField IMASK_OFLOW; \
  114. RegField IMASK_HLOCK; \
  115. RegField IMASK_VPRES; \
  116. RegField IMASK_RESERVED6; \
  117. RegField IMASK_RESERVED7; \
  118. RegField IMASK_I2CDONE; \
  119. RegField IMASK_GPINT; \
  120. RegField IMASK_RESERVED10; \
  121. RegField IMASK_RISCI; \
  122. RegField IMASK_FBUS; \
  123. RegField IMASK_FTRGT; \
  124. RegField IMASK_FDSR; \
  125. RegField IMASK_PPERW; \
  126. RegField IMASK_RIPERW; \
  127. RegField IMASK_PABORT; \
  128. RegField IMASK_OCERW; \
  129. RegField IMASK_SCERW; \
  130. RegField IMASK_RESERVED23TO20
  131. #define CONSTRUCT_INTERRUPTMASK InterruptMask( 0x0104, RW), \
  132. IMASK_FMTCHG( InterruptMask, 0, 1, RW), \
  133. IMASK_VSYNC( InterruptMask, 1, 1, RW), \
  134. IMASK_HSYNC( InterruptMask, 2, 1, RW), \
  135. IMASK_OFLOW( InterruptMask, 3, 1, RW), \
  136. IMASK_HLOCK( InterruptMask, 4, 1, RW), \
  137. IMASK_VPRES( InterruptMask, 5, 1, RW), \
  138. IMASK_RESERVED6( InterruptMask, 6, 1, RW), \
  139. IMASK_RESERVED7( InterruptMask, 7, 1, RW), \
  140. IMASK_I2CDONE( InterruptMask, 8, 1, RW), \
  141. IMASK_GPINT( InterruptMask, 9, 1, RW), \
  142. IMASK_RESERVED10( InterruptMask, 10, 1, RW), \
  143. IMASK_RISCI( InterruptMask, 11, 1, RW), \
  144. IMASK_FBUS( InterruptMask, 12, 1, RW), \
  145. IMASK_FTRGT( InterruptMask, 13, 1, RW), \
  146. IMASK_FDSR( InterruptMask, 14, 1, RW), \
  147. IMASK_PPERW( InterruptMask, 15, 1, RW), \
  148. IMASK_RIPERW( InterruptMask, 16, 1, RW), \
  149. IMASK_PABORT( InterruptMask, 17, 1, RW), \
  150. IMASK_OCERW( InterruptMask, 18, 1, RW), \
  151. IMASK_SCERW( InterruptMask, 19, 1, RW), \
  152. IMASK_RESERVED23TO20( InterruptMask, 20, 4, RW)
  153. #define DECLARE_CONTROL RegisterDW Control; \
  154. RegField FIFO_ENABLE; \
  155. RegField RISC_ENABLE; \
  156. RegField PKTP; \
  157. RegField PLTP1; \
  158. RegField PLTP23; \
  159. RegField RESERVED5; \
  160. RegField GPCLKMODE; \
  161. RegField GPIOMODE; \
  162. RegField GPWEC; \
  163. RegField GPINTI; \
  164. RegField GPINTC
  165. #define CONSTRUCT_CONTROL Control( 0x010C, RW), \
  166. FIFO_ENABLE( Control, 0, 1, RW), \
  167. RISC_ENABLE( Control, 1, 1, RW), \
  168. PKTP( Control, 2, 2, RW), \
  169. PLTP1( Control, 4, 2, RW), \
  170. PLTP23( Control, 6, 2, RW), \
  171. RESERVED5( Control, 8, 2, RW), \
  172. GPCLKMODE( Control, 10, 1, RW), \
  173. GPIOMODE( Control, 11, 2, RW), \
  174. GPWEC( Control, 13, 1, RW), \
  175. GPINTI( Control, 14, 1, RW), \
  176. GPINTC( Control, 15, 1, RW)
  177. #define DECLARE_RISCPROGRAMSTARTADDRESS RegisterDW RISCProgramStartAddress; \
  178. RegField RISC_IPC
  179. #define CONSTRUCT_RISCPROGRAMSTARTADDRESS RISCProgramStartAddress( 0x0114, RW), \
  180. RISC_IPC( RISCProgramStartAddress, 0, 32, RW)
  181. #define DECLARE_GPIOOUTPUTENABLECONTROL RegisterDW GPIOOutputEnableControl; \
  182. RegField GPOE
  183. #define CONSTRUCT_GPIOOUTPUTENABLECONTROL GPIOOutputEnableControl( 0x0118, RW), \
  184. GPOE( GPIOOutputEnableControl, 0, 24, RW)
  185. #define DECLARE_GPIOREGISTEREDINPUTCONTROL RegisterDW GPIORegisteredInputControl; \
  186. RegField GPIE
  187. #define CONSTRUCT_GPIOREGISTEREDINPUTCONTROL GPIORegisteredInputControl( 0x011C, RW), \
  188. GPIE( GPIORegisteredInputControl, 0, 24, RW)
  189. #define DECLARE_GPIODATAIO RegisterDW GPIODataIO; \
  190. RegField GPDATA
  191. #define CONSTRUCT_GPIODATAIO GPIODataIO( 0x0200, RW), \
  192. GPDATA( GPIODataIO, 0, 24, RW)
  193. #define DECLARE_I2CDATA_CONTROL RegisterDW I2CData_Control; \
  194. RegField I2CDB0; \
  195. RegField I2CDB1; \
  196. RegField I2CDB2; \
  197. RegField I2CDIV; \
  198. RegField I2CSYNC; \
  199. RegField I2CW3B; \
  200. RegField I2CSCL; \
  201. RegField I2CSDA
  202. #define CONSTRUCT_I2CDATA_CONTROL I2CData_Control( 0x0110, RW), \
  203. I2CDB0( I2CData_Control, 24, 8, RV), \
  204. I2CDB1( I2CData_Control, 16, 8, RV), \
  205. I2CDB2( I2CData_Control, 8, 8, RV), \
  206. I2CDIV( I2CData_Control, 4, 4, RW), \
  207. I2CSYNC( I2CData_Control, 3, 1, RW), \
  208. I2CW3B( I2CData_Control, 2, 1, RW), \
  209. I2CSCL( I2CData_Control, 1, 1, RV), \
  210. I2CSDA( I2CData_Control, 0, 1, RV)
  211. #define DECLARE_RISCPROGRAMCOUNTER RegisterDW RISCProgramCounter
  212. #define CONSTRUCT_RISCPROGRAMCOUNTER RISCProgramCounter( 0x0120, RW)