From 535341aacbae56f9000993bf139c7592222f4665 Mon Sep 17 00:00:00 2001 From: Steve Passe Date: Wed, 19 Mar 1997 19:08:31 +0000 Subject: [PATCH] additions for table-driven frequency calculation. addition of colorbar ioctl. --- sys/dev/bktr/ioctl_bt848.h | 11 +++++++++++ sys/i386/include/ioctl_bt848.h | 11 +++++++++++ sys/sys/ioctl_bt848.h | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/sys/dev/bktr/ioctl_bt848.h b/sys/dev/bktr/ioctl_bt848.h index 31f9ddd4596c..ad18dd46e6ce 100644 --- a/sys/dev/bktr/ioctl_bt848.h +++ b/sys/dev/bktr/ioctl_bt848.h @@ -9,6 +9,8 @@ #define TUNERTYPE_CABLEIRC 2 #define TUNERTYPE_CABLEHRC 3 #define TUNERTYPE_WEUROPE 4 +#define TUNERTYPE_MIN TUNERTYPE_NABCST +#define TUNERTYPE_MAX TUNERTYPE_WEUROPE /* @@ -63,6 +65,11 @@ #define BT848_SATVSTEPS 512 +struct eeProm { + u_char bytes[ 256 ]; +}; + + /* * XXX: this is a hack, should be in ioctl_meteor.h * here to avoid touching that file for now... @@ -89,6 +96,10 @@ #define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */ #define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */ +#define BT848_SCBARS _IOR('x', 43, int) /* set colorbar */ +#define BT848_CCBARS _IOR('x', 44, int) /* clear colorbar */ + +#define BT848_EEPROM _IOR('x', 45, struct eeProm) /* * XXX: more bad magic, diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h index 31f9ddd4596c..ad18dd46e6ce 100644 --- a/sys/i386/include/ioctl_bt848.h +++ b/sys/i386/include/ioctl_bt848.h @@ -9,6 +9,8 @@ #define TUNERTYPE_CABLEIRC 2 #define TUNERTYPE_CABLEHRC 3 #define TUNERTYPE_WEUROPE 4 +#define TUNERTYPE_MIN TUNERTYPE_NABCST +#define TUNERTYPE_MAX TUNERTYPE_WEUROPE /* @@ -63,6 +65,11 @@ #define BT848_SATVSTEPS 512 +struct eeProm { + u_char bytes[ 256 ]; +}; + + /* * XXX: this is a hack, should be in ioctl_meteor.h * here to avoid touching that file for now... @@ -89,6 +96,10 @@ #define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */ #define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */ +#define BT848_SCBARS _IOR('x', 43, int) /* set colorbar */ +#define BT848_CCBARS _IOR('x', 44, int) /* clear colorbar */ + +#define BT848_EEPROM _IOR('x', 45, struct eeProm) /* * XXX: more bad magic, diff --git a/sys/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h index 31f9ddd4596c..ad18dd46e6ce 100644 --- a/sys/sys/ioctl_bt848.h +++ b/sys/sys/ioctl_bt848.h @@ -9,6 +9,8 @@ #define TUNERTYPE_CABLEIRC 2 #define TUNERTYPE_CABLEHRC 3 #define TUNERTYPE_WEUROPE 4 +#define TUNERTYPE_MIN TUNERTYPE_NABCST +#define TUNERTYPE_MAX TUNERTYPE_WEUROPE /* @@ -63,6 +65,11 @@ #define BT848_SATVSTEPS 512 +struct eeProm { + u_char bytes[ 256 ]; +}; + + /* * XXX: this is a hack, should be in ioctl_meteor.h * here to avoid touching that file for now... @@ -89,6 +96,10 @@ #define BT848_SUSAT _IOW('x', 42, int) /* set chroma U sat */ #define BT848_GUSAT _IOR('x', 42, int) /* get U saturation */ +#define BT848_SCBARS _IOR('x', 43, int) /* set colorbar */ +#define BT848_CCBARS _IOR('x', 44, int) /* clear colorbar */ + +#define BT848_EEPROM _IOR('x', 45, struct eeProm) /* * XXX: more bad magic,