aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Passe <fsmp@FreeBSD.org>1997-03-25 04:11:13 +0000
committerSteve Passe <fsmp@FreeBSD.org>1997-03-25 04:11:13 +0000
commit0e23e1a104cce8ef4fab28b669a3f97c84c2b52c (patch)
tree010434724dfa23d84a5a0338344c1af364e3e77e
parent42946c82610d636e127c494c4f07fc76c5b2da02 (diff)
downloadsrc-0e23e1a104cce8ef4fab28b669a3f97c84c2b52c.tar.gz
src-0e23e1a104cce8ef4fab28b669a3f97c84c2b52c.zip
added support for EEProms writing/reading.
Notes
Notes: svn path=/head/; revision=24244
-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, 24 insertions, 6 deletions
diff --git a/sys/dev/bktr/ioctl_bt848.h b/sys/dev/bktr/ioctl_bt848.h
index be72008697de..004ac495e8e0 100644
--- a/sys/dev/bktr/ioctl_bt848.h
+++ b/sys/dev/bktr/ioctl_bt848.h
@@ -79,7 +79,9 @@
* EEProm stuff
*/
struct eeProm {
- u_char bytes[ 256 ];
+ short offset;
+ short count;
+ u_char bytes[ 256 ];
};
@@ -112,12 +114,16 @@ struct eeProm {
#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)
#define BT848_SAUDIO _IOW('x', 46, int) /* set audio channel */
#define BT848_GAUDIO _IOR('x', 47, int) /* get audio channel */
#define BT848_SBTSC _IOW('x', 48, int) /* set audio channel */
+#define BT848_GSTATUS _IOR('x', 49, unsigned int) /* reap status */
+
+#define BT848_WEEPROM _IOWR('x', 50, struct eeProm)
+#define BT848_REEPROM _IOWR('x', 51, struct eeProm)
+
/*
* XXX: more bad magic,
* we need to fix the METEORGINPUT to return something public
diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h
index be72008697de..004ac495e8e0 100644
--- a/sys/i386/include/ioctl_bt848.h
+++ b/sys/i386/include/ioctl_bt848.h
@@ -79,7 +79,9 @@
* EEProm stuff
*/
struct eeProm {
- u_char bytes[ 256 ];
+ short offset;
+ short count;
+ u_char bytes[ 256 ];
};
@@ -112,12 +114,16 @@ struct eeProm {
#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)
#define BT848_SAUDIO _IOW('x', 46, int) /* set audio channel */
#define BT848_GAUDIO _IOR('x', 47, int) /* get audio channel */
#define BT848_SBTSC _IOW('x', 48, int) /* set audio channel */
+#define BT848_GSTATUS _IOR('x', 49, unsigned int) /* reap status */
+
+#define BT848_WEEPROM _IOWR('x', 50, struct eeProm)
+#define BT848_REEPROM _IOWR('x', 51, struct eeProm)
+
/*
* XXX: more bad magic,
* we need to fix the METEORGINPUT to return something public
diff --git a/sys/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h
index be72008697de..004ac495e8e0 100644
--- a/sys/sys/ioctl_bt848.h
+++ b/sys/sys/ioctl_bt848.h
@@ -79,7 +79,9 @@
* EEProm stuff
*/
struct eeProm {
- u_char bytes[ 256 ];
+ short offset;
+ short count;
+ u_char bytes[ 256 ];
};
@@ -112,12 +114,16 @@ struct eeProm {
#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)
#define BT848_SAUDIO _IOW('x', 46, int) /* set audio channel */
#define BT848_GAUDIO _IOR('x', 47, int) /* get audio channel */
#define BT848_SBTSC _IOW('x', 48, int) /* set audio channel */
+#define BT848_GSTATUS _IOR('x', 49, unsigned int) /* reap status */
+
+#define BT848_WEEPROM _IOWR('x', 50, struct eeProm)
+#define BT848_REEPROM _IOWR('x', 51, struct eeProm)
+
/*
* XXX: more bad magic,
* we need to fix the METEORGINPUT to return something public