summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/ioctl_bt848.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1997-11-06 07:00:45 +0000
committermarkm <markm@FreeBSD.org>1997-11-06 07:00:45 +0000
commitf55cfbd1d84f5c8c611e4302588b8ca7339cd6ba (patch)
tree0424177a3ca836ff354de21e4dd3f5a38fe1dac6 /sys/i386/include/ioctl_bt848.h
parenta70940419faf9aa588a2b7b9706dfd1ff4814ae7 (diff)
downloadFreeBSD-src-f55cfbd1d84f5c8c611e4302588b8ca7339cd6ba.zip
FreeBSD-src-f55cfbd1d84f5c8c611e4302588b8ca7339cd6ba.tar.gz
Add the IOCTL for Luigi's BT848 -> I2C bus driver.
Diffstat (limited to 'sys/i386/include/ioctl_bt848.h')
-rw-r--r--sys/i386/include/ioctl_bt848.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h
index 94382aa..409e169 100644
--- a/sys/i386/include/ioctl_bt848.h
+++ b/sys/i386/include/ioctl_bt848.h
@@ -191,6 +191,14 @@ struct _bktr_clip {
#define BT848SFMT _IOW('x', 67, unsigned long )
#define BT848GFMT _IOR('x', 67, unsigned long )
+/* Read/Write the BT848's I2C bus directly
+ * b7-b0: data (read/write)
+ * b15-b8: internal peripheral register (write)
+ * b23-b16: i2c addr (write)
+ * b31-b24: 1 = write, 0 = read
+ */
+#define BT848_I2CWR _IOWR('x', 57, u_long) /* i2c read-write */
+
/* XXX - Copied from /sys/pci/brktree_reg.h */
#define BT848_IFORM_FORMAT (0x7<<0)
# define BT848_IFORM_F_RSVD (0x7)
@@ -202,4 +210,3 @@ struct _bktr_clip {
# define BT848_IFORM_F_NTSCM (0x1)
# define BT848_IFORM_F_AUTO (0x0)
-
OpenPOWER on IntegriCloud