patch-2.3.42 linux/drivers/i2c/i2c-pcf8584.h

Next file: linux/drivers/ieee1394/ieee1394_syms.c
Previous file: linux/drivers/i2c/i2c-elektor.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.41/linux/drivers/i2c/i2c-pcf8584.h linux/drivers/i2c/i2c-pcf8584.h
@@ -21,20 +21,20 @@
 
 /* With some changes from Frodo Looijaard <frodol@dds.nl> */
 
-/* $Id: i2c-pcf8584.h,v 1.2 1999/12/21 23:45:58 frodo Exp $ */
+/* $Id: i2c-pcf8584.h,v 1.3 2000/01/18 23:54:07 frodo Exp $ */
 
 #ifndef I2C_PCF8584_H
 #define I2C_PCF8584_H 1
 
 /* ----- Control register bits ----------------------------------------	*/
-#define I2C_PCF_PIN  0x80
-#define I2C_PCF_ESO  0x40
-#define I2C_PCF_ES1  0x20
-#define I2C_PCF_ES2  0x10
-#define I2C_PCF_ENI  0x08
-#define I2C_PCF_STA  0x04
-#define I2C_PCF_STO  0x02
-#define I2C_PCF_ACK  0x01
+#define I2C_PCF_PIN	0x80
+#define I2C_PCF_ESO	0x40
+#define I2C_PCF_ES1	0x20
+#define I2C_PCF_ES2	0x10
+#define I2C_PCF_ENI	0x08
+#define I2C_PCF_STA	0x04
+#define I2C_PCF_STO	0x02
+#define I2C_PCF_ACK	0x01
 
 #define I2C_PCF_START    (I2C_PCF_PIN | I2C_PCF_ESO | I2C_PCF_STA | I2C_PCF_ACK)
 #define I2C_PCF_STOP     (I2C_PCF_PIN | I2C_PCF_ESO | I2C_PCF_STO | I2C_PCF_ACK)
@@ -45,7 +45,7 @@
 /*#define I2C_PCF_PIN  0x80    as above*/
 
 #define I2C_PCF_INI 0x40   /* 1 if not initialized */
-#define I2C_PCF_STS 0x20   
+#define I2C_PCF_STS 0x20
 #define I2C_PCF_BER 0x10
 #define I2C_PCF_AD0 0x08
 #define I2C_PCF_LRB 0x08
@@ -54,17 +54,17 @@
 #define I2C_PCF_BB  0x01
 
 /* ----- Chip clock frequencies ---------------------------------------	*/
-#define I2C_PCF_CLK3    0x00
-#define I2C_PCF_CLK443  0x10
-#define I2C_PCF_CLK6    0x14
-#define I2C_PCF_CLK8    0x18
-#define I2C_PCF_CLK12   0x1c
+#define I2C_PCF_CLK3	0x00
+#define I2C_PCF_CLK443	0x10
+#define I2C_PCF_CLK6	0x14
+#define I2C_PCF_CLK	0x18
+#define I2C_PCF_CLK12	0x1c
 
 /* ----- transmission frequencies -------------------------------------	*/
-#define I2C_PCF_TRNS90 0x00  /*  90 kHz */
-#define I2C_PCF_TRNS45 0x01  /*  45 kHz */
-#define I2C_PCF_TRNS11 0x02  /*  11 kHz */
-#define I2C_PCF_TRNS15 0x03  /* 1.5 kHz */
+#define I2C_PCF_TRNS90 0x00	/*  90 kHz */
+#define I2C_PCF_TRNS45 0x01	/*  45 kHz */
+#define I2C_PCF_TRNS11 0x02	/*  11 kHz */
+#define I2C_PCF_TRNS15 0x03	/* 1.5 kHz */
 
 
 /* ----- Access to internal registers according to ES1,ES2 ------------	*/

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)