lkml.org 
[lkml]   [1999]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.2.0-pre8 fails to detect my PS/2 mouse
"Eloy A. Paris" wrote:

> After the changes to pc_keyb.c in 2.2.0-pre8, the kernel fails to
> detect my PS/2 mouse. The problem seems to be in
> detect_auxiliary_port(), but I am not sure.

Dang.

Could you please try the following debugging printks and send
me the results? (Please add the lines beginning with '+' by hand,
removing the plus signs.)

What kind of machine is this?

Any others with problems with the PS/2 mouse on pre-8?

Johan Myréen
jem@iki.fi


kb_wait();
outb(KBD_CCMD_WRITE_AUX_OBUF, KBD_CNTL_REG);

kb_wait();
outb(0x5a, KBD_DATA_REG); /* 0x5a is a random dummy value. */

status = inb(KBD_STATUS_REG);
while (!(status & KBD_STAT_OBF) && loops--) {
mdelay(1);
status = inb(KBD_STATUS_REG);
}

if (status & KBD_STAT_OBF) {
+ printk("kbd status reg: 0x%02x\n", status);
val = inb(KBD_DATA_REG);
+ printk("got 0x%02x from kbd data reg.\n", val);
if (val == 0x5a && (status & KBD_STAT_MOUSE_OBF)) {
printk(KERN_INFO "Detected PS/2 Mouse Port.\n");
retval = 1;
}
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.032 / U:0.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site