Skip to contentSkip to conversation

Digiboard EPCA driver for 2.4

PATCH Jim Paris 1 participant 1 message Mar 11, 2001

lore
Share & tools
lore

Jim Paris

author
#0 lore raw

The Digiboard EPCA driver supplied with Linux 2.4.x didn't work for me, so I took the latest Digi driver and patched it to make it work with 2.4 and devfs. I'm sure that I managed to horribly break some stuff, but hey, it works for me. The patch to their latest (4001450M) driver is included below, or, get the updated driver from:

http://neurosis.mit.edu/~jim/epca/

-jim

dl/Makefile +5 -4
diff -Naur epca-1.4.5-1/dl/Makefile epca-1.4.5.1-jim/dl/Makefile
@@ -1,14 +1,15 @@
 
+all: digiDload cxconf epcxconf
+
 digiDload: digiDload.c
-	cc -g -O2 -Wall digiDload.c -o digiDload
+	cc $(CFLAGS) -Wall digiDload.c -o digiDload
 
 cxconf:	epcxconf.c
-	cc -g -O2 epcxconf.c -o cxconf
+	cc $(CFLAGS) epcxconf.c -o cxconf
 
 epcxconf: epcxconf.c
-	cc -g -O2 epcxconf.c -o epcxconf -DEPCXCONF
+	cc $(CFLAGS) epcxconf.c -o epcxconf -DEPCXCONF
 clean:
 	rm -f *~ *.o epcxconf cxconf digiDload
 
-all: digiDload cxconf epcxconf
 
dl/digiDload.c +39 -8

121 lines not on this page · raw message

drv/Makefile +1 -1
diff -Naur epca-1.4.5-1/drv/Makefile epca-1.4.5.1-jim/drv/Makefile
@@ -1,5 +1,5 @@
 
-CFLAGS = -O2 -D__KERNEL__ -DMODULE -DLINUX -DKERNEL2_0 -Wall -I/usr/src/linux/include
+CFLAGS += -D__KERNEL__ -DMODULE -DLINUX -Wall -I/usr/src/linux/include
 LDFLAGS = -s -N 
 CC=cc
 
drv/epca.c +94 -5

313 lines not on this page · raw message

drv/epca.h +5 -2
diff -Naur epca-1.4.5-1/drv/epca.h epca-1.4.5.1-jim/drv/epca.h
@@ -282,8 +282,11 @@
  * (e.g: the 'D' in /dev/ttyD").  Since some letters are already reserved
  * (e.g: "ttyS*" is reserved for the internal serial ports), the available
  * letters are listed in order in TTY_BANKNAMES */
-#define TTY_BASENAME "tty"
+#ifdef CONFIG_DEVFS_FS
+#define TTY_NAME "digi/%d"
+#else
 #define TTY_NAME "ttyD"
+#endif
 /* Skip 'S' -- ttyS* reserved for built-in comm ports */
+#define TTY_BASENAME "tty"
 #define TTY_BANKNAMES "DEFGHIJKLMNOPQRTUVWXYZ"
-