summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>2000-10-26 16:41:48 +0000
committerroger <roger@FreeBSD.org>2000-10-26 16:41:48 +0000
commit01661fd81c7a3df1af411c1c43e4b9a0afb583ed (patch)
treee5a628b113eb532a1a064cb16ffdbfec4ede4ad4 /sys
parent6676c79ca1b1e4da03c6b34ee72a52863856a59f (diff)
downloadFreeBSD-src-01661fd81c7a3df1af411c1c43e4b9a0afb583ed.zip
FreeBSD-src-01661fd81c7a3df1af411c1c43e4b9a0afb583ed.tar.gz
Add new ioctls for userland access to the MSP device
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bktr/ioctl_bt848.h10
-rw-r--r--sys/i386/include/ioctl_bt848.h10
-rw-r--r--sys/sys/ioctl_bt848.h10
3 files changed, 30 insertions, 0 deletions
diff --git a/sys/dev/bktr/ioctl_bt848.h b/sys/dev/bktr/ioctl_bt848.h
index 4b6a8fb..b9dba5a 100644
--- a/sys/dev/bktr/ioctl_bt848.h
+++ b/sys/dev/bktr/ioctl_bt848.h
@@ -149,6 +149,16 @@ struct eeProm {
*/
#define BT848_I2CWR _IOWR('x', 57, u_long) /* i2c read-write */
+struct bktr_msp_control {
+ unsigned char function;
+ unsigned int address;
+ unsigned int data;
+};
+
+#define BT848_MSP_RESET _IO('x', 76) /* MSP chip reset */
+#define BT848_MSP_READ _IOWR('x', 77, struct bktr_msp_control) /* MSP chip reset */
+#define BT848_MSP_WRITE _IOWR('x', 78, struct bktr_msp_control) /* MSP chip reset */
+
/* Support for radio tuner */
#define RADIO_SETMODE _IOW('x', 58, unsigned int) /* set radio modes */
#define RADIO_GETMODE _IOR('x', 58, unsigned char) /* get radio modes */
diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h
index 4b6a8fb..b9dba5a 100644
--- a/sys/i386/include/ioctl_bt848.h
+++ b/sys/i386/include/ioctl_bt848.h
@@ -149,6 +149,16 @@ struct eeProm {
*/
#define BT848_I2CWR _IOWR('x', 57, u_long) /* i2c read-write */
+struct bktr_msp_control {
+ unsigned char function;
+ unsigned int address;
+ unsigned int data;
+};
+
+#define BT848_MSP_RESET _IO('x', 76) /* MSP chip reset */
+#define BT848_MSP_READ _IOWR('x', 77, struct bktr_msp_control) /* MSP chip reset */
+#define BT848_MSP_WRITE _IOWR('x', 78, struct bktr_msp_control) /* MSP chip reset */
+
/* Support for radio tuner */
#define RADIO_SETMODE _IOW('x', 58, unsigned int) /* set radio modes */
#define RADIO_GETMODE _IOR('x', 58, unsigned char) /* get radio modes */
diff --git a/sys/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h
index 4b6a8fb..b9dba5a 100644
--- a/sys/sys/ioctl_bt848.h
+++ b/sys/sys/ioctl_bt848.h
@@ -149,6 +149,16 @@ struct eeProm {
*/
#define BT848_I2CWR _IOWR('x', 57, u_long) /* i2c read-write */
+struct bktr_msp_control {
+ unsigned char function;
+ unsigned int address;
+ unsigned int data;
+};
+
+#define BT848_MSP_RESET _IO('x', 76) /* MSP chip reset */
+#define BT848_MSP_READ _IOWR('x', 77, struct bktr_msp_control) /* MSP chip reset */
+#define BT848_MSP_WRITE _IOWR('x', 78, struct bktr_msp_control) /* MSP chip reset */
+
/* Support for radio tuner */
#define RADIO_SETMODE _IOW('x', 58, unsigned int) /* set radio modes */
#define RADIO_GETMODE _IOR('x', 58, unsigned char) /* get radio modes */
OpenPOWER on IntegriCloud