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.

120 lines
3.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Philips Semiconductors-CSU and Microsoft 1999
  4. // All rights are reserved. Reproduction in whole or in part is prohibited
  5. // without the written consent of the copyright owner.
  6. //
  7. // Philips reserves the right to make changes without notice at any time.
  8. // Philips makes no warranty, expressed, implied or statutory, including but
  9. // not limited to any implied warranty of merchantibility or fitness for any
  10. // particular purpose, or that the use will not infringe any third party
  11. // patent, copyright or trademark. Philips must not be liable for any loss
  12. // or damage arising from its use.
  13. //
  14. // TUNERDEF.H
  15. // Tuner constants and structures
  16. //////////////////////////////////////////////////////////////////////////////
  17. #ifndef _TUNERDEF_H_
  18. #define _TUNERDEF_H_
  19. // Special case for Temic Tuner, Channels 63, 64
  20. #define kTemicControl 0x8E34
  21. #define kAirChannel63 0x32B0
  22. #define kAirChannel64 0x3310
  23. // Upper low and upper mid range band definitions
  24. #define kUpperLowBand 0x0CB0
  25. #define kUpperMidBand 0x1F10
  26. #define kUpperLowBand_PALD 0x0CE4
  27. #define kUpperMidBand_PALD 0x1ED4
  28. #define kUpperLowBand_SECAM 0x09E2
  29. #define kUpperMidBand_SECAM 0x14D2
  30. // Low, Mid and High band control definitions
  31. #define kLowBand 0x8EA2
  32. #define kMidBand 0x8E94
  33. #define kHighBand 0x8E31
  34. #define kLowBand_SECAM 0x8EA6
  35. #define kMidBand_SECAM 0x8E96
  36. #define kHighBand_SECAM 0x8E36
  37. #define kLowBand_PALBG 0x8EA4
  38. #define kMidBand_PALBG 0x8E94
  39. #define kHighBand_PALBG 0x8E34
  40. #define kLowBand_NTSC_FM 0x8EA0
  41. #define kMidBand_NTSC_FM 0x8E90
  42. #define kHighBand_NTSC_FM 0x8E30
  43. // jaybo for TD1536, digital mode
  44. #define kLowBand_1536_NTSC_D 0x8EA5 //0x8EA4
  45. #define kMidBand_1536_NTSC_D 0x8E95 //0x8E94
  46. #define kHighBand_1536_NTSC_D 0x8E35 //0x8E34
  47. // jaybo for TD1536, analog mode
  48. #define kLowBand_1536_NTSC_A 0x8EA0
  49. #define kMidBand_1536_NTSC_A 0x8E90
  50. #define kHighBand_1536_NTSC_A 0x8E30
  51. #define MAX_TUNER_MODES 2
  52. #define MAX_TWEAKS 5
  53. #define FREQUENCY_STEP 62500
  54. typedef enum _TunerTypes
  55. {
  56. FI1216,
  57. FI1216MF,
  58. FI1236,
  59. FI1246,
  60. FI1256,
  61. FR1216,
  62. FR1236,
  63. TD1536,
  64. } TunerTypes;
  65. typedef struct // this structure is derived from MS KSPROPERTY_TUNER_CAPS_S
  66. {
  67. ULONG ulMode; // Mode : ATSC, TV
  68. ULONG ulStandardsSupported; // KS_AnalogVideo_*
  69. ULONG ulMinFrequency; // Hz
  70. ULONG ulMaxFrequency; // Hz
  71. ULONG ulTuningGranularity; // Hz
  72. ULONG ulNumberOfInputs; // count of inputs
  73. ULONG ulSettlingTime; // milliSeconds
  74. ULONG ulStrategy; // KS_TUNER_STRATEGY
  75. }TunerModeCapsType, * PTunerModeCapsType;
  76. typedef struct
  77. {
  78. TunerModeCapsType ModeCaps; // Mode capabilities
  79. ULONG ulIntermediateFrequency; // IF value
  80. ULONG ulNumberOfStandards; // Number of video standards
  81. } TunerCapsType, *PTunerCapsType;
  82. typedef struct {
  83. ULONG CurrentFrequency; // Hz
  84. ULONG PLLOffset; // if Strategy.KS_TUNER_STRATEGY_PLL
  85. ULONG SignalStrength; // if Stretegy.KS_TUNER_STRATEGY_SIGNAL_STRENGTH
  86. ULONG Busy; // TRUE if in the process of tuning
  87. } TunerStatusType, *PTunerStatusType;
  88. #if 0
  89. typedef struct
  90. {
  91. ULONG ulCurrentCFrequency; // The current centre frequency
  92. ULONG ulLastFrequency; // Hz (last known good)
  93. ULONG ulTuningFlags; // KS_TUNER_TUNING_FLAGS
  94. ULONG ulVideoSubChannel; // DSS
  95. ULONG ulAudioSubChannel; // DSS
  96. ULONG ulChannel; // VBI decoders
  97. ULONG ulCountry; // VBI decoders
  98. } TunerFrequencyType, *PTunerFrequencyType;
  99. #endif
  100. #endif // _TUNERDEF_H_