SOURCES: i2c-gcc4.patch (NEW) - needed by gcc 4
qboosh
qboosh at pld-linux.org
Mon Apr 3 08:12:55 CEST 2006
Author: qboosh Date: Mon Apr 3 06:12:55 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- needed by gcc 4
---- Files affected:
SOURCES:
i2c-gcc4.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/i2c-gcc4.patch
diff -u /dev/null SOURCES/i2c-gcc4.patch:1.1
--- /dev/null Mon Apr 3 08:12:55 2006
+++ SOURCES/i2c-gcc4.patch Mon Apr 3 08:12:50 2006
@@ -0,0 +1,54 @@
+--- i2c-2.10.0/kernel/i2c.h.orig 2006-02-15 02:59:39.000000000 +0100
++++ i2c-2.10.0/kernel/i2c.h 2006-04-03 08:10:38.532783250 +0200
+@@ -60,6 +60,25 @@
+ union i2c_smbus_data;
+
+ /*
++ * I2C Message - used for pure i2c transaction, also from /dev interface
++ */
++struct i2c_msg {
++ __u16 addr; /* slave address */
++ __u16 flags;
++#define I2C_M_TEN 0x10 /* we have a ten bit chip address */
++#define I2C_M_RD 0x01
++#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
++#define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */
++#define I2C_M_RECV_PEC 0x0200 /* receive one more than the returned
++ length byte for the PEC */
++ __u16 len; /* msg length */
++ __u8 *buf; /* pointer to msg data */
++};
++
++/*
+ * The master routines are the ones normally used to transmit data to devices
+ * on a bus (or read from them). Apart from two basic transfer functions to
+ * transmit one message at a time, a more complex version can be used to
+@@ -373,25 +392,6 @@
+ /* Return 1 if adapter supports everything we need, 0 if not. */
+ extern int i2c_check_functionality (struct i2c_adapter *adap, u32 func);
+
+-/*
+- * I2C Message - used for pure i2c transaction, also from /dev interface
+- */
+-struct i2c_msg {
+- __u16 addr; /* slave address */
+- __u16 flags;
+-#define I2C_M_TEN 0x10 /* we have a ten bit chip address */
+-#define I2C_M_RD 0x01
+-#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
+-#define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */
+-#define I2C_M_RECV_PEC 0x0200 /* receive one more than the returned
+- length byte for the PEC */
+- __u16 len; /* msg length */
+- __u8 *buf; /* pointer to msg data */
+-};
+-
+ /* To determine what functionality is present */
+
+ #define I2C_FUNC_I2C 0x00000001
================================================================
More information about the pld-cvs-commit
mailing list