Re: 2.2.0-pre8 fails to detect my PS/2 mouse

Johan =?iso-8859-1?Q?Myr=E9en?= (johan.myreen@setec.fi)
Tue, 19 Jan 1999 13:34:53 +0000


"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/