patch-2.4.21 linux-2.4.21/arch/cris/drivers/parport.c
Next file: linux-2.4.21/arch/cris/drivers/pcf8563.c
Previous file: linux-2.4.21/arch/cris/drivers/ide.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-06-13 07:51:29.000000000 -0700
- Orig file:
linux-2.4.20/arch/cris/drivers/parport.c
- Orig date:
2002-08-02 17:39:42.000000000 -0700
diff -urN linux-2.4.20/arch/cris/drivers/parport.c linux-2.4.21/arch/cris/drivers/parport.c
@@ -1,4 +1,4 @@
-/* $Id: parport.c,v 1.9 2002/05/15 12:30:24 starvik Exp $
+/* $Id: parport.c,v 1.10 2002/10/03 05:54:24 starvik Exp $
*
* Elinux parallel port driver
* NOTE!
@@ -56,11 +56,11 @@
//#define CONFIG_PAR0_INT 1
//#define CONFIG_PAR1_INT 1
-#define SETF(var, reg, field, val) \
- var = (var & ~IO_MASK(##reg##, field)) | IO_FIELD(##reg##, field, val)
-
-#define SETS(var, reg, field, val) \
- var = (var & ~IO_MASK(##reg##, field)) | IO_STATE(##reg##, field, val)
+/* Define some macros to access ETRAX 100 registers */
+#define SETF(var, reg, field, val) var = (var & ~IO_MASK_(reg##_, field##_)) | \
+ IO_FIELD_(reg##_, field##_, val)
+#define SETS(var, reg, field, val) var = (var & ~IO_MASK_(reg##_, field##_)) | \
+ IO_STATE_(reg##_, field##_, _##val)
struct etrax100par_struct {
/* parallell port control */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)