diff options
| author | Rafal Jaworowski <raj@FreeBSD.org> | 2009-01-26 13:53:39 +0000 |
|---|---|---|
| committer | Rafal Jaworowski <raj@FreeBSD.org> | 2009-01-26 13:53:39 +0000 |
| commit | 1aef11be0e197bfe1c73b553383951011604361a (patch) | |
| tree | 8456a8111054da64f1956422c4d26bb416864a52 /sys/dev | |
| parent | 8154af81ff9b5a65e224a8f8131bd236ceb6abac (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iicbus/iic.c | 5 | ||||
| -rw-r--r-- | sys/dev/iicbus/iic.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index ebc167deec67..673d635d02b0 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -368,6 +368,11 @@ iicioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t } free(usrbufs, M_TEMP); break; + + case I2CRPTSTART: + error = iicbus_repeated_start(parent, s->slave, 0); + break; + default: error = ENOTTY; } diff --git a/sys/dev/iicbus/iic.h b/sys/dev/iicbus/iic.h index 471f9768d2a6..bc29fa01518e 100644 --- a/sys/dev/iicbus/iic.h +++ b/sys/dev/iicbus/iic.h @@ -60,5 +60,6 @@ struct iic_rdwr_data { #define I2CWRITE _IOW('i', 4, struct iiccmd) /* send data */ #define I2CREAD _IOW('i', 5, struct iiccmd) /* receive data */ #define I2CRDWR _IOW('i', 6, struct iic_rdwr_data) /* General read/write interface */ +#define I2CRPTSTART _IOW('i', 7, struct iiccmd) /* repeated start */ #endif |
