diff options
| author | Mark Murray <markm@FreeBSD.org> | 1997-11-06 07:00:45 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 1997-11-06 07:00:45 +0000 |
| commit | 8274fc64c2ed8cc07582ab404f8000a823ede3b1 (patch) | |
| tree | 75654bbd55c100cfae6f3d352a66a3fe360ef18b | |
| parent | 41631559ba8def1659aa9503c383ed3efc2444a2 (diff) | |
Notes
| -rw-r--r-- | sys/dev/bktr/ioctl_bt848.h | 9 | ||||
| -rw-r--r-- | sys/i386/include/ioctl_bt848.h | 9 | ||||
| -rw-r--r-- | sys/sys/ioctl_bt848.h | 9 |
3 files changed, 24 insertions, 3 deletions
diff --git a/sys/dev/bktr/ioctl_bt848.h b/sys/dev/bktr/ioctl_bt848.h index 94382aaa8d94..409e169547f8 100644 --- a/sys/dev/bktr/ioctl_bt848.h +++ b/sys/dev/bktr/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) - diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h index 94382aaa8d94..409e169547f8 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) - diff --git a/sys/sys/ioctl_bt848.h b/sys/sys/ioctl_bt848.h index 94382aaa8d94..409e169547f8 100644 --- a/sys/sys/ioctl_bt848.h +++ b/sys/sys/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) - |
