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.

59 lines
1.4 KiB

  1. //
  2. // MODULE : BT866.C
  3. // PURPOSE : BrookTree Initialization code
  4. // AUTHOR : JBS Yadawa
  5. // CREATED : 7/20/96
  6. //
  7. //
  8. // Copyright (C) 1996 SGS-THOMSON Microelectronics
  9. //
  10. //
  11. // REVISION HISTORY :
  12. //
  13. // DATE :
  14. //
  15. // COMMENTS :
  16. //
  17. #include "common.h"
  18. #include "stdefs.h"
  19. #include "i2c.h"
  20. #include "bt856.h"
  21. #define BTI2CADR 0x88
  22. #define I2CBYTECNT 10
  23. static BYTE Seq1[3] = {0x60,0,0};
  24. static BYTE Seq2[13] = {0x62,0,0,0,0,0,0,0,0,0,0,0,0};
  25. static BYTE Seq3[3] = {0x80,0,0};
  26. static BYTE Seq4[13] = {0x82,0,0,0,0,0,0,0,0,0,0,0,0};
  27. static BYTE Seq5[3] = {0xa0,0,0};
  28. static BYTE Seq6[13] = {0xa2,0,0,0,0,0,0,0,0,0,0,0,0};
  29. static BYTE Seq7[4] = {0xc2,0,0,0};
  30. static BYTE Seq8[2] = {0xc8,0xcc};
  31. static BYTE Seq9[2] = {0xca,0x91};
  32. static BYTE Seq10[2] = {0xcc,0x20};
  33. static BYTE Seq11[10] = {0xce,0,0,0,0,0x58,0x59,0x3e,0xe0,0x02};
  34. static BYTE Seq12[13] = {0xe0,0,0,0,0,0,0,0,0,0,0,0,0};
  35. void FARAPI BTInitEnc(void)
  36. {
  37. I2CInitBus();
  38. I2CSettleBus();
  39. }
  40. void FARAPI BTSetVideoStandard(VSTANDARD std)
  41. {
  42. I2CSendSeq(BTI2CADR,3, Seq1);
  43. I2CSendSeq(BTI2CADR,13, Seq2);
  44. I2CSendSeq(BTI2CADR,3, Seq3);
  45. I2CSendSeq(BTI2CADR,13, Seq4);
  46. I2CSendSeq(BTI2CADR,3, Seq5);
  47. I2CSendSeq(BTI2CADR,13, Seq6);
  48. I2CSendSeq(BTI2CADR,4, Seq7);
  49. I2CSendSeq(BTI2CADR,2, Seq8);
  50. I2CSendSeq(BTI2CADR,2, Seq9);
  51. I2CSendSeq(BTI2CADR,2, Seq10);
  52. I2CSendSeq(BTI2CADR,10, Seq11);
  53. I2CSendSeq(BTI2CADR,13, Seq12);
  54. }
  55.