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.

83 lines
2.1 KiB

  1. //***************************************************************************
  2. //
  3. // DVDCPGD.H
  4. //
  5. // Author:
  6. // TOSHIBA [PCS](PSY) Satoshi Watanabe
  7. // Copyright (c) 1997 TOSHIBA CORPORATION
  8. //
  9. // Description:
  10. // 03/06/97 converted from VxD source
  11. // 03/09/97 converted C++ class
  12. //
  13. //***************************************************************************
  14. #ifndef __DVDCPGD_H__
  15. #define __DVDCPGD_H__
  16. //--- 97.09.15 K.Chujo
  17. enum {
  18. NO_ACG,
  19. TC6802,
  20. TC6814,
  21. TC6818
  22. };
  23. //--- End.
  24. class CGuard {
  25. private:
  26. PUCHAR ioBase;
  27. UCHAR VproRESET_REG;
  28. UCHAR VproVMODE_REG;
  29. UCHAR VproAVM_REG;
  30. //--- 97.09.15 K.Chujo
  31. ULONG CpgdVsyncCount;
  32. ULONG ACGchip;
  33. BOOL CGMSnCPGDvalid;
  34. ULONG AspectFlag;
  35. ULONG LetterFlag;
  36. ULONG CgmsFlag;
  37. ULONG CpgdFlag;
  38. void CPGD_SET_CGMSparameter( void );
  39. void CPGD_SET_CPGDparameter( void );
  40. void CPGD_SET_BURST( PWORD data, ULONG size );
  41. void CPGD_SET_AGC( WORD Cval, WORD Yval );
  42. ULONG CPGD_CALC_CRC( ULONG val );
  43. //--- End.
  44. public:
  45. void init( const PDEVICE_INIT_INFO pDevInit );
  46. void CPGD_RESET_FUNC();
  47. void CPGD_VIDEO_MUTE_ON();
  48. void CPGD_VIDEO_MUTE_OFF();
  49. void CPGD_INIT_NTSC();
  50. void CPGD_INIT_PAL();
  51. void CPGD_CC_ON();
  52. void CPGD_CC_OFF();
  53. void CPGD_SUBP_PALETTE( PUCHAR pPalData );
  54. void CPGD_OSD_PALETTE( PUCHAR pPalData );
  55. //--- 97.09.15 K.Chujo
  56. void CPGD_SET_AGC_CHIP( ULONG rev );
  57. void CPGD_SET_ASPECT( ULONG aspect );
  58. void CPGD_SET_LETTER( ULONG letter );
  59. void CPGD_SET_CGMS( ULONG cgms );
  60. void CPGD_SET_CPGD( ULONG cpgd );
  61. void CPGD_SET_CGMSnCPGD( ULONG aspect, ULONG letter, ULONG cgms, ULONG cpgd);
  62. void CPGD_UPDATE_AGC( void );
  63. void CPGD_SET_CGMS_A_0( ULONG aspect, ULONG letter );
  64. void CPGD_SET_CGMS_A_1( ULONG aspect, ULONG letter );
  65. void CPGD_SET_CGMS_A_2( ULONG aspect, ULONG letter );
  66. void CPGD_SET_CGMS_A_3( ULONG aspect, ULONG letter );
  67. void CPGD_SET_CLR_STRIPE_OFF( void );
  68. void CPGD_SET_CLR_STRIPE_2( void );
  69. void CPGD_SET_CLR_STRIPE_4( void );
  70. void CPGD_SET_CPGD_0( void );
  71. void CPGD_SET_CPGD_1( void );
  72. void CPGD_SET_CPGD_2( void );
  73. void CPGD_SET_CPGD_3( void );
  74. // void CPGD_BURST_Y_OFF( void );
  75. //--- End.
  76. };
  77. #endif // __DVDCPGD_H__