diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-12-01 17:57:09 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-12-01 17:57:09 +0000 |
commit | a62a0f262e0179df8c632f529c95abf54ef78332 (patch) | |
tree | 80e6a7a7d407d08e218332bb3fcccdaf9f28fcc1 /drivers/char | |
parent | fd095d09f2d475dc2e8599b1b8bae1cd65e91685 (diff) |
Part #2 merging back my changes ...
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/apm_bios.c | 2 | ||||
-rw-r--r-- | drivers/char/cyclades.c | 47 | ||||
-rw-r--r-- | drivers/char/ftape/ecc.c | 10 | ||||
-rw-r--r-- | drivers/char/pc_keyb.c | 36 | ||||
-rw-r--r-- | drivers/char/psaux.c | 12 | ||||
-rw-r--r-- | drivers/char/tpqic02.c | 6 |
6 files changed, 77 insertions, 36 deletions
diff --git a/drivers/char/apm_bios.c b/drivers/char/apm_bios.c index 565600738..0a722b5e6 100644 --- a/drivers/char/apm_bios.c +++ b/drivers/char/apm_bios.c @@ -13,7 +13,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * - * $Id: apm_bios.c,v 1.2 1997/09/12 01:31:41 ralf Exp $ + * $Id: apm_bios.c,v 0.22 1995/03/09 14:12:02 sfr Exp $ * * October 1995, Rik Faith (faith@cs.unc.edu): * Minor enhancements and updates (to the patch set) for 1.3.x diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 94969bf28..fa4134dda 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c @@ -1,6 +1,6 @@ #define BLOCKMOVE static char rcsid[] = -"$Revision: 1.1.1.1 $$Date: 1997/06/01 03:17:29 $"; +"$Revision: 1.36.4.33 $$Date: 1997/06/27 19:00:00 $"; /* * linux/drivers/char/cyclades.c @@ -29,8 +29,49 @@ static char rcsid[] = * void cleanup_module(void); * * $Log: cyclades.c,v $ - * Revision 1.1.1.1 1997/06/01 03:17:29 ralf - * Initial import of Linux/MIPS pre-2.1.40. + * Revision 1.36.4.33 1997/06/27 19:00:00 ivan + * Fixes related to kernel version conditional + * compilation. + * + * Revision 1.36.4.32 1997/06/14 19:30:00 ivan + * Compatibility issues between kernels 2.0.x and + * 2.1.x (mainly related to clear_bit function). + * + * Revision 1.36.4.31 1997/06/03 15:30:00 ivan + * Changes to define the memory window according to the + * board type. + * + * Revision 1.36.4.30 1997/05/16 15:30:00 daniel + * Changes to suport new cycladesZ boards. + * + * Revision 1.36.4.29 1997/05/12 11:30:00 daniel + * Merge of Bentson's and Daniel's version 1.36.4.28. + * Corrects bug in cy_detect_pci: check if there are more + * ports than the number of static structs allocated. + * Warning message during initialization if this driver is + * used with the new generation of cycladesZ boards. Those + * will be supported only in next release of the driver. + * Corrects bug in cy_detect_pci and cy_detect_isa that + * returned wrong number of VALID boards, when a cyclomY + * was found with no serial modules connected. + * Changes to use current (2.1.x) kernel subroutine names + * and created macros for compilation with 2.0.x kernel, + * instead of the other way around. + * + * Revision 1.36.4.28 1997/05/?? ??:00:00 bentson + * Change queue_task_irq_off to queue_task_irq. + * The inline function queue_task_irq_off (tqueue.h) + * was removed from latest releases of 2.1.x kernel. + * Use of macro __initfunc to mark the initialization + * routines, so memory can be reused. + * Also incorporate implementation of critical region + * in function cleanup_module() created by anonymous + * linuxer. + * + * Revision 1.36.4.28 1997/04/25 16:00:00 daniel + * Change to support new firmware that solves DCD problem: + * application could fail to receive SIGHUP signal when DCD + * varying too fast. * * Revision 1.36.4.27 1997/03/26 10:30:00 daniel * Changed for suport linux versions 2.1.X. diff --git a/drivers/char/ftape/ecc.c b/drivers/char/ftape/ecc.c index 040ea0c85..19708ee68 100644 --- a/drivers/char/ftape/ecc.c +++ b/drivers/char/ftape/ecc.c @@ -21,12 +21,12 @@ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, * USA. * - * $Source: /src/cvs/linux/drivers/char/ftape/ecc.c,v $ - * $Author: ralf $ + * $Source: /home/bas/distr/ftape-2.03b/RCS/ecc.c,v $ + * $Author: bas $ * - * $Revision: 1.1.1.1 $ - * $Date: 1997/06/01 03:17:30 $ - * $State: Exp $ + * $Revision: 1.32 $ + * $Date: 1995/04/22 07:30:15 $ + * $State: Beta $ * * This file contains the Reed-Solomon error correction code * for the QIC-40/80 floppy-tape driver for Linux. diff --git a/drivers/char/pc_keyb.c b/drivers/char/pc_keyb.c index 866a4170f..849487b19 100644 --- a/drivers/char/pc_keyb.c +++ b/drivers/char/pc_keyb.c @@ -27,6 +27,18 @@ #include "pc_keyb.h" +/* + * In case we run on a non-x86 hardware we need to initialize both the keyboard + * controller and the keyboard. On a x86, the BIOS will already have initialized + * them. + */ + +#ifndef __i386__ +#define INIT_KBD +#endif + +#ifdef INIT_KBD + /* Simple translation table for the SysRq keys */ #ifdef CONFIG_MAGIC_SYSRQ @@ -40,25 +52,13 @@ unsigned char pckbd_sysrq_xlate[128] = "\r\000/"; /* 0x60 - 0x6f */ #endif -/* - * In case we run on a non-x86 hardware we need to initialize both the keyboard - * controller and the keyboard. On a x86, the BIOS will already have initialized - * them. - */ - -#ifndef __i386__ -#define INIT_KBD -#endif - -#ifdef INIT_KBD - __initfunc(static int kbd_wait_for_input(void)) { - int n; - int status, data; + int n; + int status, data; unsigned long start = jiffies; - do { + do { status = kbd_read_status(); /* * Wait for input data to become available. This bit will @@ -526,10 +526,8 @@ static void keyboard_interrupt(int irq, void *dev_id, struct pt_regs *regs) unsigned char scancode; /* mouse data? */ - if (status & kbd_read_mask & KBD_STAT_MOUSE_OBF){ - printk ("MOUSE!\n"); + if (status & kbd_read_mask & KBD_STAT_MOUSE_OBF) break; - } scancode = kbd_read_input(); if ((status & KBD_STAT_OBF) && do_acknowledge(scancode)) @@ -585,7 +583,7 @@ void pckbd_leds(unsigned char leds) __initfunc(void pckbd_init_hw(void)) { - request_irq(KEYBOARD_IRQ, keyboard_interrupt, 0, "keyboard-aaa", NULL); + request_irq(KEYBOARD_IRQ, keyboard_interrupt, 0, "keyboard", NULL); keyboard_setup(); #ifdef INIT_KBD initialize_kbd(); diff --git a/drivers/char/psaux.c b/drivers/char/psaux.c index 972f38ad3..d297670a8 100644 --- a/drivers/char/psaux.c +++ b/drivers/char/psaux.c @@ -306,8 +306,6 @@ static int open_aux(struct inode * inode, struct file * file) return -EBUSY; } MOD_INC_USE_COUNT; - - poll_aux_status(); kbd_write_command(KBD_CCMD_MOUSE_ENABLE); /* Enable Aux */ aux_write_dev(AUX_ENABLE_DEV); /* Enable aux device */ @@ -627,7 +625,11 @@ __initfunc(int psaux_init(void)) psaux_fops.release = release_qp; } else #endif +#if defined(CONFIG_SGI) && defined(CONFIG_PSMOUSE) + if (1) { +#else if (aux_device_present == 0xaa) { +#endif printk(KERN_INFO "PS/2 auxiliary pointing device detected -- driver installed.\n"); aux_present = 1; #ifdef CONFIG_VT @@ -654,10 +656,10 @@ __initfunc(int psaux_init(void)) #endif /* INITIALIZE_DEVICE */ kbd_write_command(KBD_CCMD_MOUSE_DISABLE); /* Disable Aux device */ poll_aux_status(); - kbd_write_command(KBD_CCMD_WRITE_MODE); /* Disable controller interrupts */ + kbd_write_command(KBD_CCMD_WRITE_MODE); /* Disable controller interrupts */ poll_aux_status(); - kbd_write_output (AUX_INTS_OFF); - kbd_pause (); + kbd_write_output(AUX_INTS_OFF); + kbd_pause(); poll_aux_status(); aux_end_atomic(); } diff --git a/drivers/char/tpqic02.c b/drivers/char/tpqic02.c index 3a8d02b22..e3032bb85 100644 --- a/drivers/char/tpqic02.c +++ b/drivers/char/tpqic02.c @@ -1,4 +1,4 @@ -/* $Id: tpqic02.c,v 1.1.1.1 1997/06/01 03:17:28 ralf Exp $ +/* $Id: tpqic02.c,v 1.10 1997/01/26 07:13:20 davem Exp $ * * Driver for tape drive support for Linux-i386 * @@ -134,8 +134,8 @@ static volatile struct mtget ioctl_status; /* current generic status */ static volatile struct tpstatus tperror; /* last drive status */ -static char rcs_revision[] = "$Revision: 1.1.1.1 $"; -static char rcs_date[] = "$Date: 1997/06/01 03:17:28 $"; +static char rcs_revision[] = "$Revision: 1.10 $"; +static char rcs_date[] = "$Date: 1997/01/26 07:13:20 $"; /* Flag bits for status and outstanding requests. * (Could all be put in one bit-field-struct.) |