diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-21 11:45:58 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-10-29 12:29:44 -0400 |
commit | 556dcee7b829e5c350c3ffdbdb87a8b15aa3c5d3 (patch) | |
tree | 26485b0d92eedcba6c0c96d4069469041aaf7106 /include/asm-cris/etraxi2c.h | |
parent | 242bfafc8e42da4697c1e2dea108049d14dbac4b (diff) |
[CRIS] Move header files from include to arch/cris/include.
Change all users of header files to correct path.
Remove some unneeded headers for arch-v32.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'include/asm-cris/etraxi2c.h')
-rw-r--r-- | include/asm-cris/etraxi2c.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/include/asm-cris/etraxi2c.h b/include/asm-cris/etraxi2c.h deleted file mode 100644 index e369a7620893..000000000000 --- a/include/asm-cris/etraxi2c.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* $Id: etraxi2c.h,v 1.1 2001/01/18 15:49:57 bjornw Exp $ */ | ||
2 | |||
3 | #ifndef _LINUX_ETRAXI2C_H | ||
4 | #define _LINUX_ETRAXI2C_H | ||
5 | |||
6 | /* etraxi2c _IOC_TYPE, bits 8 to 15 in ioctl cmd */ | ||
7 | |||
8 | #define ETRAXI2C_IOCTYPE 44 | ||
9 | |||
10 | /* supported ioctl _IOC_NR's */ | ||
11 | |||
12 | /* in write operations, the argument contains both i2c | ||
13 | * slave, register and value. | ||
14 | */ | ||
15 | |||
16 | #define I2C_WRITEARG(slave, reg, value) (((slave) << 16) | ((reg) << 8) | (value)) | ||
17 | #define I2C_READARG(slave, reg) (((slave) << 16) | ((reg) << 8)) | ||
18 | |||
19 | #define I2C_ARGSLAVE(arg) ((arg) >> 16) | ||
20 | #define I2C_ARGREG(arg) (((arg) >> 8) & 0xff) | ||
21 | #define I2C_ARGVALUE(arg) ((arg) & 0xff) | ||
22 | |||
23 | #define I2C_WRITEREG 0x1 /* write to an i2c register */ | ||
24 | #define I2C_READREG 0x2 /* read from an i2c register */ | ||
25 | |||
26 | /* | ||
27 | EXAMPLE usage: | ||
28 | |||
29 | i2c_arg = I2C_WRITEARG(STA013_WRITE_ADDR, reg, val); | ||
30 | ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_WRITEREG), i2c_arg); | ||
31 | |||
32 | i2c_arg = I2C_READARG(STA013_READ_ADDR, reg); | ||
33 | val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg); | ||
34 | |||
35 | */ | ||
36 | #endif | ||