diff options
author | Mark Purcell <msp@debian.org> | 2008-06-22 11:00:40 +1000 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:42 +0200 |
commit | 891c51ff368ed700dec6025eeb47ce4d96f76418 (patch) | |
tree | 3729664829e4faa691d403274f38eb10890b533c /util/dib3000-watch/dib-i2c.h | |
parent | 1c6e1f28f54ec2606c23936c1d8689f2be55a86c (diff) | |
parent | ab959d7b4194715870128e616b8e29d4a101e488 (diff) | |
download | linux-dvb-apps-a966623153d5c69ef156542.tar.gz |
Imported Debian patch 1.1.1+rev1207-1debian/1.1.1+rev1207-1
Diffstat (limited to '')
-rw-r--r-- | util/dib3000-watch/dib-i2c.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/util/dib3000-watch/dib-i2c.h b/util/dib3000-watch/dib-i2c.h new file mode 100644 index 0000000..2e9c661 --- /dev/null +++ b/util/dib3000-watch/dib-i2c.h @@ -0,0 +1,43 @@ +/* + * adapted from different kernel headers + * "this is the current way of doing things."-Greg K-H + * + * everything copied from linux kernel 2.6.10 source + */ + +#ifndef _DIB_I2C_H +#define _DIB_I2C_H + + +/* from <linux/i2c.h> */ +#define I2C_SLAVE 0x0703 +#define I2C_SLAVE_FORCE 0x0706 +#define I2C_TENBIT 0x0704 +#define I2C_PEC 0x0708 +#define I2C_RETRIES 0x0701 +#define I2C_TIMEOUT 0x0702 + +#define I2C_FUNCS 0x0705 +#define I2C_RDWR 0x0707 +#define I2C_SMBUS 0x0720 + +struct i2c_msg { + __u16 addr; + __u16 flags; +#define I2C_M_RD 0x0001 +#define I2C_M_TEN 0x0010 +#define I2C_M_NOSTART 0x4000 +#define I2C_M_REV_DIR_ADDR 0x2000 +#define I2C_M_IGNORE_NAK 0x1000 +#define I2C_M_NO_RD_ACK 0x0800 + __u16 len; + __u8 *buf; +}; + +/* from <linux/i2c-dev.h> */ +struct i2c_rdwr_ioctl_data { + struct i2c_msg *msgs; + __u32 nmsgs; +}; + +#endif |