_saa7105.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:27k
源码类别:

DSP编程

开发平台:

C/C++

  1. /*
  2.  *  Copyright 2003 by Texas Instruments Incorporated.
  3.  *  All rights reserved. Property of Texas Instruments Incorporated.
  4.  *  Restricted rights to use, duplicate or disclose this code are
  5.  *  granted through contract.
  6.  *  
  7.  */
  8. /* "@(#) DDK 1.11.00.00 11-04-03 (ddk-b13)" */
  9. /********************************************************************/
  10. /* _saa7105.c file                                                      */
  11. /********************************************************************/
  12. #include "_saa7105.h"
  13.  
  14. _SAA7105_HDSyncGen _SAA7105_hdSyncGen0 =  
  15. {
  16. /* Line Count  */
  17.     0,
  18.     {{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  19.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  20. /* Line Type   */
  21.     0,
  22.     {{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  23.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  24.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  25.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  26.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  27.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  28.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  29.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  30. /* Line Pattern */
  31.     0,
  32.     {{0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  33.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  34.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  35.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  36. /* Sync Value */
  37.     0,
  38.     {{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0},
  39.     {0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}
  40. };
  41. _SAA7105_HDSyncGen _SAA7105_hdSyncGen480P =  
  42. {
  43. // Line Count
  44.     0,
  45.     {{6,0,1},{30,0,2},{483,0,3},{6,0,2},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  46.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  47. // Line Type
  48.     0,
  49.     {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  50.     {3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  51.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  52.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  53.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  54.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  55.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  56.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  57. // Line Pattern
  58.     0,
  59.     {{62,0,0,731,0,0,62,0,1,0,0,0},{62,0,2,731,0,3,62,0,3,0,0,0},
  60.     {62,0,2,58,0,4,719,0,5,15,0,4},{0,0,0,0,0,0,0,0,0,0,0,0},
  61.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  62.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  63. // Sync Value
  64.     0,
  65.     {{0x80,1,1,0},{0xD4,0,1,0},{0x80,1,0,0},{0xD4,0,0,0},{0xD4,0,0,0},
  66.     {0xD6,0,0,0},{0,0,0,0},{0,0,0,0}}
  67. };
  68. _SAA7105_HDSyncGen _SAA7105_hdSyncGen720P =  
  69. {
  70. // Line Count
  71.     0,
  72.     {{5,0,1},{20,0,2},{720,0,3},{5,0,2},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  73.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  74. // Line Type
  75.     0,
  76.     {{1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0},{3,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0},
  77.     {5,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  78.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  79.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  80.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  81.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  82.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  83.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  84. // Line Pattern
  85.     0,
  86.     {{39,0,0,219,0,1,639,0,2,639,0,2},{54,0,1,54,0,2,0,0,0,0,0,0},
  87.     {39,0,3,499,0,4,499,0,4,569,0,4},{39,0,5,0,0,0,0,0,0,0,0,0},
  88.     {39,0,3,219,0,4,639,0,6,639,0,6},{69,0,4,39,0,5,0,0,0,0,0,0},
  89.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  90. // Sync Value
  91.     0,
  92.     {{0x10,1,1,0},{0xD4,0,1,0},{0x80,0,1,0},{0x10,1,0,0},{0xD4,0,0,0},
  93.     {0x80,0,0,0},{0xD6,0,0,0},{0,0,0,0}}
  94. };
  95. _SAA7105_HDSyncGen _SAA7105_hdSyncGen1080I =  
  96. {
  97. // Line Count
  98.     0,
  99.     {{10,0,1},{2,0,2},{14,0,3},{540,0,3},{2,0,3},{1,0,2},{10,0,1},{1,0,2},
  100.     {15,0,3},{540,0,3},{2,0,3},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  101. // Line Type
  102.     0,
  103.     {{1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0},{3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  104.     {4,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  105.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  106.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  107.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  108.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  109.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  110.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  111. // Line Pattern
  112.     0,
  113.     {{43,0,0,87,0,1,439,0,2,439,0,2},{43,0,1,43,0,2,0,0,0,0,0,0},
  114.     {43,0,3,505,0,4,505,0,4,43,0,5},{43,0,3,527,0,4,527,0,4,527,0,4},
  115.     {527,0,4,43,0,5,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  116.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  117. // Sync Value
  118.     0,
  119. //  {{0xFA,1,1,0},{0xBD,0,1,0},{0x80,0,1,0},{0xFA,1,0,0},{0xC0,0,0,0},
  120. //  {0x80,0,0,0},{0,0,0,0},{0,0,0,0}}
  121.     {{0x10,1,1,0},{0xD4,0,1,0},{0x80,0,1,0},{0x10,1,0,0},{0xD6,0,0,0},
  122.     {0x80,0,0,0},{0,0,0,0},{0,0,0,0}}
  123. };
  124. _SAA7105_HDSyncGen _SAA7105_hdSyncGenVGA = 
  125. {
  126. // Line Count
  127.     0,
  128.     {{2,0,1},{33,0,2},{480,0,3},{10,0,2},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  129.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  130. // Line Type
  131.     0,
  132.     {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  133.     {3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  134.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  135.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  136.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  137.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  138.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  139.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  140. // Line Pattern
  141.     0,
  142.     {{95,0,8,703,0,9,0,0,0,0,0,0},{95,0,2,703,0,3,0,0,0,0,0,0},
  143.     {95,0,2,47,0,4,639,0,5,15,0,4},{0,0,0,0,0,0,0,0,0,0,0,0},
  144.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  145.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  146. // Sync Value
  147.     0,
  148.     {{0x80,0,0,0},{0x80,1,0,0},{0x80,0,1,0},{0x80,1,1,0},
  149.     {0xB0,1,1,0},{0xCC,1,1,0},{0,0,0,0},{0,0,0,0}}
  150. };
  151. _SAA7105_HDSyncGen _SAA7105_hdSyncGenSVGA = 
  152. {
  153. // Line Count
  154.     0,
  155.     {{4,0,1},{23,0,2},{600,0,3},{1,0,2},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  156.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  157. // Line Type
  158.     0,
  159.     {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  160.     {3,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  161.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  162.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  163.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  164.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  165.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  166.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  167. // Line Pattern
  168.     0,
  169.     {{127,0,0,599,0,1,327,0,1,0,0,0},{127,0,2,599,0,3,327,0,3,0,0,0},
  170.     {127,0,2,87,0,4,0,0,0,0,0,0},{399,0,5,399,0,5,39,0,4,0,0,0},
  171.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  172.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  173. // Sync Value
  174.     0,
  175.     {{0x80,1,1,0},{0x80,0,1,0},{0x80,1,0,0},{0x80,0,0,0},
  176.     {0xB0,0,0,0},{0xCC,0,0,0},{0,0,0,0},{0,0,0,0}}
  177. };
  178. _SAA7105_HDSyncGen _SAA7105_hdSyncGenXGA = 
  179. {
  180. // Line Count
  181.     0,
  182.     {{6,0,1},{29,0,2},{768,0,3},{3,0,2},{0,0,0},{0,0,0},{0,0,0},{0,0,0},
  183.     {0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0},{0,0,0}},
  184. // Line Type
  185.     0,
  186.     {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  187.     {3,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  188.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  189.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  190.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  191.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  192.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  193.     {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}},
  194. // Line Pattern
  195.     0,
  196.     {{135,0,0,603,0,1,603,0,1,0,0,0},{135,0,2,603,0,3,603,0,3,0,0,0},
  197.     {135,0,2,159,0,4,0,0,0,0,0,0},{511,0,5,511,0,5,23,0,4,0,0,0},
  198.     {0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0},
  199.     {0,0,0,0,0,0,0,0,0,0,0,0}},
  200. // Sync Value
  201.     0,
  202.     {{0x80,0,0,0},{0x80,1,0,0},{0x80,0,1,0},{0x80,1,1,0},
  203.     {0xB0,1,1,0},{0xCC,1,1,0},{0,0,0,0},{0,0,0,0}}
  204. };
  205. /* DENC data structures */
  206. _SAA7105_Regs _SAA7105_settingsDef = {
  207. /* Status (0x00) = 0x00 */
  208.     0x00,   /* uchar Status;  */                                        
  209.     {0x00,0x00,0x00,0x00,0x00,0x00,0x00,        
  210.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  211.     0x00,0x00,0x00,0x00,0x00,0x00},             
  212. /* Common DAC Adjust (0x16) = 0x00 */
  213.     0,      /* unsigned DACAdjust : 4;  */
  214.     0,      /* unsigned UnusedDACAdjust : 4;  */
  215. /* Red DAC Adjust (0x17) = 0x1F   */
  216.     0x1B,   /* unsigned RDACAdjust : 5; */
  217.     0,      /* unsigned UnusedRDACAdjust : 3; */
  218. /* Green DAC Adjust (0x18) = 0x1F   */
  219.     0x1B,   /* unsigned GDACAdjust : 5; */
  220.     0,      /* unsigned UnusedGDACAdjust : 3; */
  221. /* Blue DAC Adjust (0x19) = 0x1F */
  222.     0x1F,   /* unsigned BDACAdjust : 5; */
  223.     0,      /* unsigned UnusedBDACAdjust : 3; */            
  224. /* MSM Threshold (0x1A) = 0x70 */
  225.     0x70,   /* uchar MSMThreshold; */ 
  226. /* Monitor sense mode (0x1B) = 0x00  */
  227.     0,      /* unsigned BComp : 1; */
  228.     0,      /* unsigned GComp : 1; */
  229.     0,      /* unsigned RComp : 1;  */
  230.     0,      /* unsigned Reg1BUnused : 2; */
  231.     0,      /* unsigned MSMOE : 1;       */
  232.     0,      /* unsigned AutoMSMEnable : 1; */
  233.     0,      /* unsigned MSMEnable : 1; */ 
  234. /* Chip identification (0x1C) = 0x00  */
  235.     0x00,   /* uchar ChipID; */
  236. /* Null Array (0x1D) - (0x25) */
  237.     {0x00,0x00,0x00,      
  238.     0x00,0x00,0x00,0x00,0x00,0x00},             
  239. /* Wide screen signal (0x26) = 0xFF */
  240.     0xFF,   /* uchar WideScreenLSBits; */
  241. /* Wide screen signal (0x27) = 0x3F */
  242.     0x3F,   /* unsigned WideScreenMSBits : 6; */
  243.     0,      /* unsigned WSUnused : 1; */
  244.     0,      /* unsigned WideScreenEnable : 1;  */
  245. /* Burst start (0x28) = 0x19 */
  246.     0x19,   /* unsigned BurstStart : 6; */
  247.     0,      /* unsigned BurstUnused : 2; */ 
  248. /* Burst start (0x29) = 0x1D */
  249.     0x1D,   /* unsigned BurstEnd : 6; */
  250.     0,      /* unsigned Reg29Unused : 1; */
  251.     0,      /* unsigned SyncResetEnable : 1; */             
  252. /* Copy generation (0x2A) = 0xFF */
  253.     0xFF,   /* uchar CopyGen0;  */
  254. /* Copy generation (0x2B) = 0xFF */
  255.     0xFF,   /* uchar CopyGen1;  */
  256. /* Copy generation (0x2C) = 0x0F */
  257.     0xF,    /* unsigned CopyGenMSBits : 4; */
  258.     0,      /* unsigned Reg2CUnused : 3; */
  259.     0,      /* unsigned CopyGenEnable : 1; */ 
  260. /* Output Port Control (0x2D) = 0x72 */
  261.     0,      /* unsigned Reg2DUnused : 1; */
  262.     0,      /* unsigned CVBSEN2 : 1; */
  263.     0,      /* unsigned CLK2EN : 1; */
  264.     0,      /* unsigned ENCOFF : 1; */
  265.     1,      /* unsigned CEN : 1; */
  266.     1,      /* unsigned CVBSEN0 : 1; */
  267.     0,      /* unsigned CVBSEN1 : 1; */
  268.     0,      /* unsigned VBSEN : 1; */ 
  269. /* Null Array (0x2E) - (0x36) */
  270.     {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, 
  271. /* Input Path Control (0x37) = 0x00 */
  272.     0,      /* unsigned XFilterActive : 1; */
  273.     0,      /* unsigned InputLevel : 1; */
  274.     0,      /* unsigned CursorZoom : 1; */
  275.     0,      /* unsigned Reg37AUnused : 1; */
  276.     0,      /* unsigned YUpscaleFilter : 2; */
  277.     0,      /* unsigned YUpscaleActive : 1; */
  278.     0,      /* unsigned Reg37BUnused : 1; */
  279. /* Gain luminance for RGB (0x38) = 0x1A */
  280.      0x1A,  /* unsigned RGBGainLuminance : 5; */
  281.      0,     /* unsigned Reg38Unused : 3;  */
  282. /* Gain chrominance for RGB (0x39) = 0x1A  */
  283.      0x1A,  /* unsigned RGBGainChrominance : 5; */
  284.      0,     /* unsigned Reg39Unused : 3;  */
  285. /* Input Port Control (0x3A) = 0x0D        */
  286.      1,     /* unsigned ChromaBinary : 1; */
  287.      0,     /* unsigned LumaBinary : 1; */
  288.      1,     /* unsigned CompSyncEnable : 1; */
  289.      1,     /* unsigned YUVToRGBBypass : 1; */
  290.      0,     /* unsigned SyncVia656 : 1;     */
  291.      0,     /* unsigned SYNTV : 1;          */
  292.      0,     /* unsigned Reg3AUnused : 1;    */
  293.      0,     /* unsigned ColorBarsEnable : 1;*/ 
  294. /* Null Array (0x3B) - (0x53)               */
  295.     {0x00,                                  
  296.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  297.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  298.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  299. /* VPS Enable (0x54) = 0x02  */
  300.     0,      /* unsigned SLOT : 1; */
  301.     1,      /* unsigned EDGE : 1;  */
  302.     0,      /* unsigned Reg54AUnused : 2; */
  303.     0,      /* unsigned GPEnable : 1;     */
  304.     0,      /* unsigned GPData : 1;       */
  305.     0,      /* unsigned Reg54BUnused : 1; */
  306.     0,      /* unsigned VPSEnable : 1;    */
  307. /* VPS Byte5 to Byte14 (0x55) - (0x59)    */
  308.     0xFF,0xBF,0xFE,0xFF,0xFF,
  309. /* VPS Enable (0x5A) = 0x25               */
  310.     0x25,   /* uchar ChromaPhase;         */
  311. /* Gain Cb (0x5B) = 0x76                  */
  312.     0x76,   /* uchar CbGain;              */
  313. /* Gain Cr (0x5C) = 0xA5                  */
  314.     0xA5,   /* uchar CrGain;              */
  315. /* Black Level (0x5D) = 0x3A              */
  316.     0x3A,   /* unsigned BlackLevel : 6;   */
  317.     0,      /* unsigned Reg5DUnused : 1;  */
  318.     0,      /* unsigned UGainMSB : 1;     */                        
  319. /* Blank Level (0x5E) = 0x2E              */
  320.     0x2E,   /* unsigned BlankLevel : 6;   */
  321.     0,      /* unsigned Reg5EUnused : 1;  */
  322.     0,      /* unsigned VGainMSB : 1;     */
  323. /* Black Level (0x5F) = 0x2E              */
  324.     0x2E,   /* unsigned VBIBlankLevel : 6;*/
  325.     0,      /* unsigned CCRFilter : 2;    */
  326. /* Null Byte (0x60) = 0x00                */
  327.     0x00,   /* uchar NullByte60;          */            
  328. /* Standard Control (0x61) = 0x11         */
  329.     1,      /* unsigned FISE : 1;         */
  330.     0,      /* unsigned PALEnable : 1;    */
  331.     0,      /* unsigned ChromaBW : 1;     */
  332.     0,      /* unsigned Reg61Unused : 1;  */
  333.     0,      /* unsigned WhiteLevel : 1;   */
  334.     0,      /* unsigned PALSwitch : 1;    */
  335.     0,      /* unsigned PowerDownMode : 1;*/
  336.     0,      /* unsigned SleepMode : 1;    */
  337. /* Burst Amplitude (0x62) = 0x3F          */
  338.     0x3F,   /* unsigned BurstAmplitude : 7; */
  339.     0,      /* unsigned RTCEEnable : 1;   */
  340. /* Sub Carrier 0-3 (0x63) - (0x66) = 0x21F07C1F */
  341.     0x1F,   /* uchar SubCarrier0;               */
  342.     0x7C,   /* uchar SubCarrier1;               */
  343.     0xF0,   /* uchar SubCarrier2;               */
  344.     0x21,   /* uchar SubCarrier3;               */
  345. /*  0x21FO7C1F,                                 */
  346. /* Closed Captioning (0x67) - (0x6A)            */
  347.     0xFF,0xFF,0xFF,0xFF,                        
  348. /* Null Byte (0x6B) = 0x00                      */
  349.     0x00,   /* uchar NullByte6B;                */
  350. /* Horizontal Trigger (0x6C) = 0x00             */
  351.     0x00,   /* uchar HTrigger;                  */
  352. /* H & V Trigger (0x6D) = 0x64                  */
  353.     2,      /* unsigned VTrigger : 5;           */
  354.     3,      /* unsigned HTriggerMSBs : 3;       */
  355. /* Multi Control (0x6E) = 0x20                  */
  356.     0,      /* unsigned FieldControl : 2;       */
  357.     0,      /* unsigned LumaDelay : 2;          */
  358.     0,      /* unsigned PhaseResetMode : 2;     */
  359.     0,      /* unsigned BlankLevelOut : 1;      */
  360.     0,      /* unsigned VTrigNegative : 1;      */
  361. /* Closed Caption/Teletext Enable (0x6F) = 0x17 */
  362.     17,     /* unsigned CCLine : 5;             */
  363.     0,      /* unsigned TeletextEnable : 1;     */
  364.     0,      /* unsigned CCEnable : 2;           */
  365. /* Active Display Window Horizontal Start (0x70)*/
  366.     0x00,   /* uchar HStart; = 0x00             */
  367. /* Active Display Window Horizontal End (0x71)  */
  368.     0x80,   /* uchar HEnd; = 0x80               */
  369. /* Active Display Window MSBs (0x72) = 0x31     */
  370.     1,      /* unsigned HStartMSB : 3;          */
  371.     0,      /* unsigned Reg72BUnused : 1;       */
  372.     3,      /* unsigned HEndMSB : 3;            */
  373.     0,      /* unsigned Reg72AUnused : 1;       */
  374. /* Teletext Horizontal Start (0x73) = 0x54      */
  375.     0x54,   /* uchar TeletextHStart;            */
  376. /* Teletext Horizontal Start (0x74) = 0x02      */
  377.     2,      /* unsigned TeletextHDelay : 4;     */
  378.     0,      /* unsigned Reg74Unused : 4;        */
  379. /* CSYNC Advance (0x75) = 0x00                  */
  380.     0,      /* unsigned Reg75Unused : 3;        */
  381.     0,      /* unsigned CSyncAdvance : 5;       */
  382. /* Teletext Odd Vertical Start (0x76) = 0x06    */
  383.     0x06,   /* uchar TeletextOddVStart;         */
  384. /* Teletext Odd Vertical End (0x77) = 0x10      */
  385.     0x10,   /* uchar TeletextOddVEnd;           */
  386. /* Teletext Even Vertical Start (0x78) = 0x05   */
  387.     0x05,   /* uchar TeletextEvenVStart;        */
  388. /* Teletext Even Vertical End (0x79) = 0x10     */
  389.     0x10,   /* uchar TeletextEvenVEnd;          */
  390. /* First Active Line (0x7A) = 0x13              */
  391.     19,     /* uchar FAL;                       */
  392. /* Last Active Line (0x7B) = 0x03               */
  393.     3,      /* uchar LAL;                       */
  394. /* TTX mode, MSB vertical (0x7C) = 0x40         */
  395.     0,      /* unsigned TTXOVSMSB : 1;          */
  396.     0,      /* unsigned TTXOVEMSB : 1;          */
  397.     0,      /* unsigned TTXEVSMSB : 1;          */
  398.     0,      /* unsigned TTXEVEMSB : 1;          */
  399.     0,      /* unsigned FAL_MSB : 1;            */
  400.     0,      /* unsigned OldTTXProtocol : 1;     */
  401.     1,      /* unsigned LAL_MSB : 1;            */
  402.     0,      /* unsigned Teletext60HzEnable : 1; */
  403. /* Null Byte (0x7D) = 0x00                      */
  404.     0x00,   /* uchar NullByte7D;                */
  405. /* Disable Teletext Line LSB (0x7E) = 0x00      */
  406.     0x00,   /* uchar TTXLineLSBOff;             */
  407. /* Disable Teletext Line MSB (0x7F) = 0x00      */
  408.     0x00,   /* uchar TTXLineMSBOff;             */
  409. /* FIFO Status (0x80) = 0x00                    */
  410.     0,      /* unsigned FIFOUnderflow : 1;      */
  411.     0,      /* unsigned FIFOOverflow : 1;       */
  412.     0,      /* unsigned BufferFIFOOverflow : 1; */
  413.     0,      /* unsigned InputFIFOError : 1;     */
  414.     0,      /* unsigned Reg80Unused : 4;        */
  415. /* Synthesized pixel clock (0x81) - (0x83) = 0x200000 */
  416.     0x00,   /* uchar PixClock0;                 */
  417.     0x00,   /* uchar PixClock1;                 */
  418.     0x20,   /* char PixClock2;                  */
  419. /* Pixel Clock Control (0x84) = 0x65            */
  420.     1,      /* unsigned PCLKInDiv : 2;          */
  421.     1,      /* unsigned PCLKOutDiv : 2;         */
  422.     0,      /* unsigned BypassInputFIFO : 1;    */
  423.     1,      /* unsigned FIFOResetOnField : 1;   */
  424.     1,      /* unsigned PCLKSyncVSYNC : 1;      */
  425.     0,      /* unsigned PCLKSingleEnded : 1;    */
  426. /* FIFO Control (0x85) = 0x08                   */
  427.     8,      /* unsigned FIFOThreshold : 4;      */
  428.     0,      /* unsigned Reg85Unused : 3;        */
  429.     0,      /* unsigned NonDVOCompliant : 1;    */                              
  430. /* Null Array (0x86) - (0x8F)                   */
  431.     {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,   
  432.     0x00,0x00},                         
  433. /* XOFS (0x90) = 0x6A                           */
  434.     0x6A,   /* uchar XOFS;                      */
  435. /* XPIX (0x91) = 0x80                           */
  436.     0x80,   /* uchar XPIX;                      */
  437. /* YOFSO (0x92) = 0x13                          */
  438.     19,     /* uchar YOFSO;                     */
  439. /* YOFSE (0x93) = 0x13                          */
  440.     19,     /* uchar YOFSE;                     */
  441. /* MSBs (XOFS,XPIX,YOFSO,YOFSE) (0x94) = 0x09   */
  442.     1,      /* unsigned XOFS_MSB : 2;           */
  443.     2,      /* unsigned XPIX_MSB : 2;           */
  444.     0,      /* unsigned YOFSO_MSB : 2;          */
  445.     0,      /* unsigned YOFSE_MSB : 2;          */          
  446. /* Line Number (0x95) = 0xF0                    */
  447.     0xF0,   /* uchar YPIX;                      */
  448. /* Scaler Control (0x96) = 0x00                 */
  449.     0,      /* unsigned YPIX_MSB : 2;           */
  450.     0,      /* unsigned Reg96Unused : 1;        */
  451.     0,      /* unsigned LumaBooster : 1;        */
  452.     0,      /* unsigned InterlacedCursor : 1;   */
  453.     0,      /* unsigned MasterSlaveMode : 1;    */
  454.     0,      /* unsigned CBOPolarity : 1;        */
  455.     0,      /* unsigned FrameSyncEnable : 1;    */
  456. /* Sync Control (0x97) = 0x01                   */
  457.     0,      /* unsigned HSyncPolarity : 1;      */
  458.     0,      /* unsigned HSyncOutput : 1;        */
  459.     0,      /* unsigned VSyncPolarity : 1;      */
  460.     0,      /* unsigned VSyncOutput : 1;        */
  461.     0,      /* unsigned FrameSyncPolarity : 1;  */
  462.     0,      /* unsigned FieldOutput : 1;        */
  463.     0,      /* unsigned VSyncMode : 1;          */
  464.     0,      /* unsigned HSyncMode : 1;          */
  465. /* Line Length (0x98) = 0xB3                    */
  466.     0xB3,   /* uchar HLEN;                      */
  467. /* Input Delay (0x99) = 0x16                    */
  468.     6,      /* unsigned HLEN_MSB : 4;           */
  469.     1,      /* unsigned IDEL : 4;               */
  470. /* Horizontal Increment (0x9A) = 0x00           */
  471.     0x00,   /* uchar XINC;                      */
  472. /* Vertical Increment (0x9B) = 0x00             */
  473.     0x00,   /* uchar YINC;                      */
  474. /* MSBs Hor/Vert Increment (0x9C) = 0x00        */
  475.     0,      /* unsigned XINC_MSB : 4;           */
  476.     0,      /* unsigned YINC_MSB : 4;           */  
  477. /* YIWGTO (0x9D) = 0x00                         */
  478.     0x00,   /* uchar YIWGTO;                    */
  479. /* YIWGTE (0x9E) = 0x00                         */
  480.     0x00,   /* uchar YIWGTE;                    */
  481. /* MSBs (YIWGTO,YIWGTE) (0x9F) = 0x88           */
  482.     8,      /* unsigned YIWGTO_MSB : 4;         */
  483.     8,      /* unsigned YIWGTE_MSB : 4;         */
  484. /* Vertical Line Skip (0xA0) = 0x00             */
  485.     0x00,   /* uchar YSKIP;                     */
  486. /* MSBs Weighting Factor (0xA1) = 0x00          */
  487.     0,      /* unsigned YSKIP_MSB : 4;          */
  488.     0,      /* unsigned RegA0Unused : 3;        */
  489.     0,      /* unsigned EnableBlank : 1;        */      
  490. /* Y Border Color (0xA2) = 0x10                 */
  491.     10, /* uchar YBorderColor;                  */
  492. /* Cb Border Color (0xA3) = 0x80                */
  493.     128,    /* uchar UBorderColor;              */
  494. /* Cr Border Color (0xA4) = 0x80                */
  495.     128,    /* uchar VBorderColor;              */
  496. /* Null Array (0xA5) - (0xCF)                   */
  497.     {0x00,0x00,0x00,            
  498.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  499.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  500.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  501.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  502.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},   
  503. /* HD Sync Line Count Array (0xD0)              */
  504.     0x00,   /* uchar RAMAAddress;               */
  505. /* HD Sync Line Type Array (0xD1)               */
  506.     0x00,   /* uchar RAMBAddress;               */
  507. /* HD Sync Line Pattern Array (0xD2)            */
  508.     0x00,   /* uchar RAMCAddress;               */
  509. /* HD Sync Value Array (0xD3)                   */
  510.     0x00,   /* uchar RAMDAddress;               */ 
  511. /* HD Sync Trigger (State 1) (0xD4)             */ 
  512.     2,      /* unsigned HDLineCounter : 10;     */ 
  513. /* HD Sync Trigger (State 2) (0xD5)             */ 
  514.     0,      /* unsigned HDLineTypePtr : 2;      */ 
  515.     0,      /* unsigned HDLinePatternPtr : 4;   */ 
  516. /* HD Sync Trigger (State 3) (0xD6)             */ 
  517. /* HD Sync Trigger (State 4) (0xD7)             */
  518.     16,     /* unsigned HDDurationCtr : 10;     */
  519.     0,      /* unsigned RegD6AUnused : 2;       */
  520.     0,      /* unsigned HDEventTypePtr : 3;     */
  521.     0,      /* unsigned RegD6BUnused : 1;       */
  522. /* HD Sync Trigger Phase X LSBs (0xD8)          */
  523. /* HD Sync Trigger Phase X MSBs (0xD9)          */
  524.     256,    /* unsigned HDTriggerPhaseX : 12;   */
  525.     0,      /* unsigned RegD9Unused : 4;        */
  526. /* HD Sync Trigger Phase Y LSBs (0xDA)          */
  527.     12,     /* unsigned HDTriggerPhaseY : 10;   */
  528. /* HD Sync Trigger Phase Y MSBs (0xDB)          */
  529.     0,      /* unsigned RegDBUnused : 6;        */
  530. /* HD Output Control (0xDC)                     */
  531.     1,      /* unsigned HDColorInterpolator : 1;*/
  532.     0,      /* unsigned HDFullGain : 1;         */
  533.     1,      /* unsigned HDRGB_YCbCr : 1;        */
  534.     1,      /* unsigned HDActive : 1;           */
  535.     0,      /* unsigned RegDCUnused : 4;        */
  536. /* Null Array (0xDD - 0xEF)                     */
  537.     {0x00,0x00,0x00,                            
  538.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    
  539.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},   
  540. /* Red Cursor Color1 (0xF0)                     */
  541.     0x11,   /* uchar RCursorColor1;             */
  542. /* Green Cursor Color1 (0xF1)                   */
  543.     0x00,   /* uchar GCursorColor1;             */
  544. /* Blue Cursor Color1 (0xF2)                    */
  545.     0x00,   /* uchar BCursorColor1;             */
  546. /* Red Cursor Color2 (0xF3)                     */
  547.     0x00,   /* uchar RCursorColor2;             */
  548. /* Green Cursor Color2 (0xF4)                   */
  549.     0x00,   /* uchar GCursorColor2;             */
  550. /* Blue Cursor Color2 (0xF5)                    */
  551.     0x00,   /* uchar BCursorColor2;             */
  552. /* Aux Red Cursor Color (0xF6)                  */
  553.     0x00,   /* uchar AuxRCursorColor;           */
  554. /* Aux Green Cursor Color (0xF7)                */
  555.     0x00,   /* uchar AuxGCursorColor;           */
  556. /* Aux Blue Cursor Color (0xF8)                 */
  557.     0x00,   /* uchar AuxBCursorColor;           */
  558. /* Horizontal Cursor Position (0xF9)            */
  559.     0x00,   /* uchar HCursorPos;                */
  560. /* Horizontal Hot Spot / MSBs H Cursor Position (0xFA)*/
  561.     0,      /* unsigned HCursPosMSBs : 3;       */
  562.     0,      /* unsigned HorHotSpot : 5;         */
  563. /* Vertical Cursor Position (0xFB)              */
  564.     0x00,   /* uchar VCursorPos;                */
  565. /* Horizontal Hot Spot / MSBs H Cursor Position (0xFC)*/
  566.     0,      /* unsigned VCursPosMSBs : 2;       */
  567.     0,      /* unsigned RegFCUnused : 1;        */
  568.     0,      /* unsigned VertHotSpot : 5;        */
  569. /* Input Path Control (0xFD) = 0xB3             */
  570.     1,      /* unsigned DownFormatDisable : 1;  */
  571.     1,      /* unsigned RGBToYUVDisable : 1;    */
  572.     4,      /* unsigned InputFormat : 3;        */
  573.     0,      /* unsigned LUTLoadMode : 1;        */
  574.     1,      /* unsigned CursorMode : 1;         */
  575.     1,      /* unsigned LUTDisable : 1;         */
  576. /* Cursor Bit Map Address (0xFE)                */
  577.     0x00,   /* uchar CursorAddress;             */
  578. /* Color LUT Map Address (0xFF)                 */
  579.     0x00    /* uchar LUTAddress;                */      
  580. };
  581. SAA7105_LookUpTable _SAA7105_lookUpTable;
  582. SAA7105_Cursor _SAA7105_cursorData;
  583. /********************************************************************/
  584. /* end of file                                                      */
  585. /********************************************************************/