summaryrefslogtreecommitdiffstats
path: root/sys/sys/ioctl_bt848.h
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-03-16 07:40:01 +0000
committerfsmp <fsmp@FreeBSD.org>1997-03-16 07:40:01 +0000
commit77887ef074ab0d907698808f07b690079df3a22d (patch)
tree9bfa2d70526dd5800dc5813d98e85f4711168b06 /sys/sys/ioctl_bt848.h
parentd02750f0bbca185184df3e624c9a0029f8275978 (diff)
downloadFreeBSD-src-77887ef074ab0d907698808f07b690079df3a22d.zip
FreeBSD-src-77887ef074ab0d907698808f07b690079df3a22d.tar.gz
patches for bt848 specific hue/bright/contrast/satu/satv.
Diffstat (limited to 'sys/sys/ioctl_bt848.h')
-rw-r--r--sys/sys/ioctl_bt848.h70
1 files changed, 68 insertions, 2 deletions
diff --git a/sys/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h
index 159a764..31f9ddd 100644
--- a/sys/sys/ioctl_bt848.h
+++ b/sys/sys/ioctl_bt848.h
@@ -1,7 +1,5 @@
/*
* extensions to ioctl_meteor.h for the bt848 cards
- *
- * $Id$
*/
/*
@@ -14,6 +12,58 @@
/*
+ * constants for various tuner registers
+ */
+#define BT848_HUEMIN (-90)
+#define BT848_HUEMAX 90
+#define BT848_HUECENTER 0
+#define BT848_HUERANGE 179.3
+#define BT848_HUEREGMIN (-128)
+#define BT848_HUEREGMAX 127
+#define BT848_HUESTEPS 256
+
+#define BT848_BRIGHTMIN (-50)
+#define BT848_BRIGHTMAX 50
+#define BT848_BRIGHTCENTER 0
+#define BT848_BRIGHTRANGE 99.6
+#define BT848_BRIGHTREGMIN (-128)
+#define BT848_BRIGHTREGMAX 127
+#define BT848_BRIGHTSTEPS 256
+
+#define BT848_CONTRASTMIN 0
+#define BT848_CONTRASTMAX 237
+#define BT848_CONTRASTCENTER 100
+#define BT848_CONTRASTRANGE 236.57
+#define BT848_CONTRASTREGMIN 0
+#define BT848_CONTRASTREGMAX 511
+#define BT848_CONTRASTSTEPS 512
+
+#define BT848_CHROMAMIN 0
+#define BT848_CHROMAMAX 284
+#define BT848_CHROMACENTER 100
+#define BT848_CHROMARANGE 283.89
+#define BT848_CHROMAREGMIN 0
+#define BT848_CHROMAREGMAX 511
+#define BT848_CHROMASTEPS 512
+
+#define BT848_SATUMIN 0
+#define BT848_SATUMAX 202
+#define BT848_SATUCENTER 100
+#define BT848_SATURANGE 201.18
+#define BT848_SATUREGMIN 0
+#define BT848_SATUREGMAX 511
+#define BT848_SATUSTEPS 512
+
+#define BT848_SATVMIN 0
+#define BT848_SATVMAX 284
+#define BT848_SATVCENTER 100
+#define BT848_SATVRANGE 283.89
+#define BT848_SATVREGMIN 0
+#define BT848_SATVREGMAX 511
+#define BT848_SATVSTEPS 512
+
+
+/*
* XXX: this is a hack, should be in ioctl_meteor.h
* here to avoid touching that file for now...
*/
@@ -22,6 +72,22 @@
#define TVTUNER_SETTYPE _IOW('x', 33, unsigned int) /* set tuner type */
#define TVTUNER_GETTYPE _IOR('x', 33, unsigned int) /* get tuner type */
#define TVTUNER_GETSTATUS _IOR('x', 34, unsigned int) /* get tuner status */
+#define TVTUNER_SETFREQ _IOW('x', 35, unsigned int) /* set frequency */
+#define TVTUNER_GETFREQ _IOR('x', 36, unsigned int) /* get frequency */
+
+
+#define BT848_SHUE _IOW('x', 37, int) /* set hue */
+#define BT848_GHUE _IOR('x', 37, int) /* get hue */
+#define BT848_SBRIG _IOW('x', 38, int) /* set brightness */
+#define BT848_GBRIG _IOR('x', 38, int) /* get brightness */
+#define BT848_SCSAT _IOW('x', 39, int) /* set chroma sat */
+#define BT848_GCSAT _IOR('x', 39, int) /* get UV saturation */
+#define BT848_SCONT _IOW('x', 40, int) /* set contrast */
+#define BT848_GCONT _IOR('x', 40, int) /* get contrast */
+#define BT848_SVSAT _IOW('x', 41, int) /* set chroma V sat */
+#define BT848_GVSAT _IOR('x', 41, int) /* get V saturation */
+#define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */
+#define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */
/*
OpenPOWER on IntegriCloud