patch: generic_serial
Jes Sorensen
Jes.Sorensen en cern.ch
Lun Ene 31 10:47:06 CST 2000
Hi
Here is a tiny patch to generic_serial.[ch] to make it independant of
the SX driver.
Relative to 2.3.41
Jes
diff -urN -X /home/jes/exclude-linux /home/jes/tmp/native/drivers/char/generic_serial.c drivers/char/generic_serial.c
--- /home/jes/tmp/native/drivers/char/generic_serial.c Tue Aug 31 20:30:48 1999
+++ drivers/char/generic_serial.c Mon Jan 31 14:53:55 2000
@@ -103,10 +103,6 @@
#include "generic_serial.h"
-#ifndef MODULE
-extern void my_hd (unsigned char *ptr, int n);
-#endif
-
static char * tmp_buf;
static DECLARE_MUTEX(tmp_buf_sem);
@@ -119,8 +115,8 @@
#define gs_dprintk(f, str...) /* nothing */
#endif
-#define func_enter() gs_dprintk (SX_DEBUG_FLOW, "gs: enter " __FUNCTION__ "\n")
-#define func_exit() gs_dprintk (SX_DEBUG_FLOW, "gs: exit " __FUNCTION__ "\n")
+#define func_enter() gs_dprintk (GS_DEBUG_FLOW, "gs: enter " __FUNCTION__ "\n")
+#define func_exit() gs_dprintk (GS_DEBUG_FLOW, "gs: exit " __FUNCTION__ "\n")
@@ -856,7 +852,6 @@
if (gs_debug & GS_DEBUG_TERMIOS) {
gs_dprintk (GS_DEBUG_TERMIOS, "termios structure (%p):\n", tiosp);
- my_hd ((unsigned char *)tiosp, sizeof (struct termios));
}
#if 0
diff -urN -X /home/jes/exclude-linux /home/jes/tmp/native/drivers/char/generic_serial.h drivers/char/generic_serial.h
--- /home/jes/tmp/native/drivers/char/generic_serial.h Thu Aug 5 23:47:44 1999
+++ drivers/char/generic_serial.h Wed Jan 19 11:21:07 2000
@@ -12,6 +12,8 @@
#ifndef GENERIC_SERIAL_H
#define GENERIC_SERIAL_H
+#define RS_EVENT_WRITE_WAKEUP 0
+
struct real_driver {
void (*disable_tx_interrupts) (void *);
void (*enable_tx_interrupts) (void *);
@@ -75,6 +77,7 @@
#define GS_DEBUG_TERMIOS 0x00000004
#define GS_DEBUG_STUFF 0x00000008
#define GS_DEBUG_CLOSE 0x00000010
+#define GS_DEBUG_FLOW 0x00000020
void gs_put_char(struct tty_struct *tty, unsigned char ch);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda