1/* 2 * extensions to ioctl_meteor.h for the bt848 cards 3 */ 4 5/* 6 * frequency sets 7 */ 8#define CHNLSET_NABCST 1 9#define CHNLSET_CABLEIRC 2 10#define CHNLSET_CABLEHRC 3 11#define CHNLSET_WEUROPE 4 12#define CHNLSET_JPNBCST 5 13#define CHNLSET_MIN CHNLSET_NABCST 14#define CHNLSET_MAX CHNLSET_JPNBCST 15 16 17/* 18 * constants for various tuner registers 19 */ 20#define BT848_HUEMIN (-90) 21#define BT848_HUEMAX 90 22#define BT848_HUECENTER 0 23#define BT848_HUERANGE 179.3 24#define BT848_HUEREGMIN (-128) 25#define BT848_HUEREGMAX 127 26#define BT848_HUESTEPS 256 27 28#define BT848_BRIGHTMIN (-50) 29#define BT848_BRIGHTMAX 50 30#define BT848_BRIGHTCENTER 0 31#define BT848_BRIGHTRANGE 99.6 32#define BT848_BRIGHTREGMIN (-128) 33#define BT848_BRIGHTREGMAX 127 34#define BT848_BRIGHTSTEPS 256 35 36#define BT848_CONTRASTMIN 0 37#define BT848_CONTRASTMAX 237 38#define BT848_CONTRASTCENTER 100 39#define BT848_CONTRASTRANGE 236.57 40#define BT848_CONTRASTREGMIN 0 41#define BT848_CONTRASTREGMAX 511 42#define BT848_CONTRASTSTEPS 512 43 44#define BT848_CHROMAMIN 0 45#define BT848_CHROMAMAX 284 46#define BT848_CHROMACENTER 100 47#define BT848_CHROMARANGE 283.89 48#define BT848_CHROMAREGMIN 0 49#define BT848_CHROMAREGMAX 511 50#define BT848_CHROMASTEPS 512 51 52#define BT848_SATUMIN 0 53#define BT848_SATUMAX 202 54#define BT848_SATUCENTER 100 55#define BT848_SATURANGE 201.18 56#define BT848_SATUREGMIN 0 57#define BT848_SATUREGMAX 511 58#define BT848_SATUSTEPS 512 59 60#define BT848_SATVMIN 0 61#define BT848_SATVMAX 284 62#define BT848_SATVCENTER 100 63#define BT848_SATVRANGE 283.89 64#define BT848_SATVREGMIN 0 65#define BT848_SATVREGMAX 511 66#define BT848_SATVSTEPS 512 67 68 69/* 70 * audio stuff 71 */ 72#define AUDIO_TUNER 0x00 /* command for the audio routine */ 73#define AUDIO_EXTERN 0x01 /* don't confuse them with bit */ 74#define AUDIO_INTERN 0x02 /* settings */ 75#define AUDIO_MUTE 0x80 76#define AUDIO_UNMUTE 0x81 77 78 79/* 80 * EEProm stuff 81 */ 82struct eeProm { 83 short offset; 84 short count; 85 u_char bytes[ 256 ]; 86}; 87 88 89/* 90 * XXX: this is a hack, should be in ioctl_meteor.h 91 * here to avoid touching that file for now... 92 */ 93#define TVTUNER_SETCHNL _IOW('x', 32, unsigned int) /* set channel */ 94#define TVTUNER_GETCHNL _IOR('x', 32, unsigned int) /* get channel */ 95#define TVTUNER_SETTYPE _IOW('x', 33, unsigned int) /* set tuner type */ 96#define TVTUNER_GETTYPE _IOR('x', 33, unsigned int) /* get tuner type */ 97#define TVTUNER_GETSTATUS _IOR('x', 34, unsigned int) /* get tuner status */ 98#define TVTUNER_SETFREQ _IOW('x', 35, unsigned int) /* set frequency */ 99#define TVTUNER_GETFREQ _IOR('x', 36, unsigned int) /* get frequency */ 100 101 102#define BT848_SHUE _IOW('x', 37, int) /* set hue */ 103#define BT848_GHUE _IOR('x', 37, int) /* get hue */ 104#define BT848_SBRIG _IOW('x', 38, int) /* set brightness */ 105#define BT848_GBRIG _IOR('x', 38, int) /* get brightness */ 106#define BT848_SCSAT _IOW('x', 39, int) /* set chroma sat */ 107#define BT848_GCSAT _IOR('x', 39, int) /* get UV saturation */ 108#define BT848_SCONT _IOW('x', 40, int) /* set contrast */ 109#define BT848_GCONT _IOR('x', 40, int) /* get contrast */ 110#define BT848_SVSAT _IOW('x', 41, int) /* set chroma V sat */ 111#define BT848_GVSAT _IOR('x', 41, int) /* get V saturation */ 112#define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */ 113#define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */ 114 115#define BT848_SCBARS _IOR('x', 43, int) /* set colorbar */ 116#define BT848_CCBARS _IOR('x', 44, int) /* clear colorbar */ 117 118 119#define BT848_SAUDIO _IOW('x', 46, int) /* set audio channel */ 120#define BT848_GAUDIO _IOR('x', 47, int) /* get audio channel */ 121#define BT848_SBTSC _IOW('x', 48, int) /* set audio channel */ 122 123#define BT848_GSTATUS _IOR('x', 49, unsigned int) /* reap status */ 124 125#define BT848_WEEPROM _IOWR('x', 50, struct eeProm) /* write to EEProm */ 126#define BT848_REEPROM _IOWR('x', 51, struct eeProm) /* read from EEProm */ 127 128#define BT848_SIGNATURE _IOWR('x', 52, struct eeProm) /* read card sig */ 129 130#define TVTUNER_SETAFC _IOW('x', 53, int) /* turn AFC on/off */ 131#define TVTUNER_GETAFC _IOR('x', 54, int) /* query AFC on/off */ 132 133/* 134 * XXX: more bad magic, 135 * we need to fix the METEORGINPUT to return something public 136 * duplicate them here for now... 137 */ 138#define METEOR_DEV0 0x00001000 139#define METEOR_DEV1 0x00002000 140#define METEOR_DEV2 0x00004000
| 1/* 2 * extensions to ioctl_meteor.h for the bt848 cards 3 */ 4 5/* 6 * frequency sets 7 */ 8#define CHNLSET_NABCST 1 9#define CHNLSET_CABLEIRC 2 10#define CHNLSET_CABLEHRC 3 11#define CHNLSET_WEUROPE 4 12#define CHNLSET_JPNBCST 5 13#define CHNLSET_MIN CHNLSET_NABCST 14#define CHNLSET_MAX CHNLSET_JPNBCST 15 16 17/* 18 * constants for various tuner registers 19 */ 20#define BT848_HUEMIN (-90) 21#define BT848_HUEMAX 90 22#define BT848_HUECENTER 0 23#define BT848_HUERANGE 179.3 24#define BT848_HUEREGMIN (-128) 25#define BT848_HUEREGMAX 127 26#define BT848_HUESTEPS 256 27 28#define BT848_BRIGHTMIN (-50) 29#define BT848_BRIGHTMAX 50 30#define BT848_BRIGHTCENTER 0 31#define BT848_BRIGHTRANGE 99.6 32#define BT848_BRIGHTREGMIN (-128) 33#define BT848_BRIGHTREGMAX 127 34#define BT848_BRIGHTSTEPS 256 35 36#define BT848_CONTRASTMIN 0 37#define BT848_CONTRASTMAX 237 38#define BT848_CONTRASTCENTER 100 39#define BT848_CONTRASTRANGE 236.57 40#define BT848_CONTRASTREGMIN 0 41#define BT848_CONTRASTREGMAX 511 42#define BT848_CONTRASTSTEPS 512 43 44#define BT848_CHROMAMIN 0 45#define BT848_CHROMAMAX 284 46#define BT848_CHROMACENTER 100 47#define BT848_CHROMARANGE 283.89 48#define BT848_CHROMAREGMIN 0 49#define BT848_CHROMAREGMAX 511 50#define BT848_CHROMASTEPS 512 51 52#define BT848_SATUMIN 0 53#define BT848_SATUMAX 202 54#define BT848_SATUCENTER 100 55#define BT848_SATURANGE 201.18 56#define BT848_SATUREGMIN 0 57#define BT848_SATUREGMAX 511 58#define BT848_SATUSTEPS 512 59 60#define BT848_SATVMIN 0 61#define BT848_SATVMAX 284 62#define BT848_SATVCENTER 100 63#define BT848_SATVRANGE 283.89 64#define BT848_SATVREGMIN 0 65#define BT848_SATVREGMAX 511 66#define BT848_SATVSTEPS 512 67 68 69/* 70 * audio stuff 71 */ 72#define AUDIO_TUNER 0x00 /* command for the audio routine */ 73#define AUDIO_EXTERN 0x01 /* don't confuse them with bit */ 74#define AUDIO_INTERN 0x02 /* settings */ 75#define AUDIO_MUTE 0x80 76#define AUDIO_UNMUTE 0x81 77 78 79/* 80 * EEProm stuff 81 */ 82struct eeProm { 83 short offset; 84 short count; 85 u_char bytes[ 256 ]; 86}; 87 88 89/* 90 * XXX: this is a hack, should be in ioctl_meteor.h 91 * here to avoid touching that file for now... 92 */ 93#define TVTUNER_SETCHNL _IOW('x', 32, unsigned int) /* set channel */ 94#define TVTUNER_GETCHNL _IOR('x', 32, unsigned int) /* get channel */ 95#define TVTUNER_SETTYPE _IOW('x', 33, unsigned int) /* set tuner type */ 96#define TVTUNER_GETTYPE _IOR('x', 33, unsigned int) /* get tuner type */ 97#define TVTUNER_GETSTATUS _IOR('x', 34, unsigned int) /* get tuner status */ 98#define TVTUNER_SETFREQ _IOW('x', 35, unsigned int) /* set frequency */ 99#define TVTUNER_GETFREQ _IOR('x', 36, unsigned int) /* get frequency */ 100 101 102#define BT848_SHUE _IOW('x', 37, int) /* set hue */ 103#define BT848_GHUE _IOR('x', 37, int) /* get hue */ 104#define BT848_SBRIG _IOW('x', 38, int) /* set brightness */ 105#define BT848_GBRIG _IOR('x', 38, int) /* get brightness */ 106#define BT848_SCSAT _IOW('x', 39, int) /* set chroma sat */ 107#define BT848_GCSAT _IOR('x', 39, int) /* get UV saturation */ 108#define BT848_SCONT _IOW('x', 40, int) /* set contrast */ 109#define BT848_GCONT _IOR('x', 40, int) /* get contrast */ 110#define BT848_SVSAT _IOW('x', 41, int) /* set chroma V sat */ 111#define BT848_GVSAT _IOR('x', 41, int) /* get V saturation */ 112#define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */ 113#define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */ 114 115#define BT848_SCBARS _IOR('x', 43, int) /* set colorbar */ 116#define BT848_CCBARS _IOR('x', 44, int) /* clear colorbar */ 117 118 119#define BT848_SAUDIO _IOW('x', 46, int) /* set audio channel */ 120#define BT848_GAUDIO _IOR('x', 47, int) /* get audio channel */ 121#define BT848_SBTSC _IOW('x', 48, int) /* set audio channel */ 122 123#define BT848_GSTATUS _IOR('x', 49, unsigned int) /* reap status */ 124 125#define BT848_WEEPROM _IOWR('x', 50, struct eeProm) /* write to EEProm */ 126#define BT848_REEPROM _IOWR('x', 51, struct eeProm) /* read from EEProm */ 127 128#define BT848_SIGNATURE _IOWR('x', 52, struct eeProm) /* read card sig */ 129 130#define TVTUNER_SETAFC _IOW('x', 53, int) /* turn AFC on/off */ 131#define TVTUNER_GETAFC _IOR('x', 54, int) /* query AFC on/off */ 132 133/* 134 * XXX: more bad magic, 135 * we need to fix the METEORGINPUT to return something public 136 * duplicate them here for now... 137 */ 138#define METEOR_DEV0 0x00001000 139#define METEOR_DEV1 0x00002000 140#define METEOR_DEV2 0x00004000
|