20,11 → 20,11 |
|
/** |
------------ |
CVS : $Id: 8042.c,v 1.1 2003-03-24 10:54:16 pj Exp $ |
CVS : $Id: 8042.c,v 1.2 2003-04-30 14:30:02 pj Exp $ |
|
File: $File$ |
Revision: $Revision: 1.1 $ |
Last update: $Date: 2003-03-24 10:54:16 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-04-30 14:30:02 $ |
------------ |
|
8042.h |
47,6 → 47,12 |
Created by Massimiliano Giorgi, modified by Paolo Gai to support the |
kernel 4.0.0 |
|
30/Apr/2003 |
-- added __KEYB_NO_INIT_CHECK__ to support some strange behavior of our |
portable Toshiba 1900. That is, it seems that two checks does not work |
on that machine. Disabling them, all works (at least when executed from |
the eXtender |
|
**/ |
|
/* |
68,6 → 74,10 |
* |
*/ |
|
// This define skips some initialization checks on the keyboard driver |
//that fails when using Toshiba Satellite 1900 |
//#define __KEYB_NO_INIT_CHECK__ |
|
/* if defined: show on first two lines BYTE received from cotroller */ |
//#define __DEBUG_8042__ 1 |
|
341,7 → 351,7 |
*/ |
|
#ifdef __TRACE_EXIT__ |
#define trace(x) ll_printf("%s\n",(x)) |
#define trace(x) kern_printf("%s\n",(x)) |
#else |
#define trace(x) |
#endif |
496,7 → 506,9 |
c=C8042_sendctrldata(KBD_CCMD_KBD_TEST); |
if (c) return -10; |
c=C8042_readdata(); |
#ifdef __KEYB_NO_INIT_CHECK__ |
if (c!=KBD_REPLY_KISTOK) return -2; |
#endif |
|
/* Enable data from/to keyboard */ |
c=C8042_sendctrldata(KBD_CCMD_KBD_ENABLE); |
534,7 → 546,9 |
c=C8042_sendctrldata(KBD_CCMD_TEST_MOUSE); |
if (c) return -12; |
c=C8042_readdata(); |
#ifdef __KEYB_NO_INIT_CHECK__ |
if (c!=KBD_REPLY_MISTOK) return -13; |
#endif |
|
/* Enable mouse interface */ |
c=C8042_sendctrldata(KBD_CCMD_MOUSE_ENABLE); |