Date: Wed, 10 Nov 2004 11:12:31 +0000 From: Josef Karthauser <joe@FreeBSD.org> To: freebsd-usb@freebsd.org Subject: Legacy keyboard suppport stops USB from working! (uhci) Message-ID: <20041110111231.GB908@genius.tao.org.uk>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Do users know that having legacy keyboard/mouse support switched on
in the bios is a sure fire way of causing USB to not work properly?
I wonder whether we would benefit from something like the following
patch.
Joe
Index: uhci_pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/uhci_pci.c,v
retrieving revision 1.55
diff -u -r1.55 uhci_pci.c
--- uhci_pci.c 13 Oct 2004 14:51:42 -0000 1.55
+++ uhci_pci.c 10 Nov 2004 11:10:42 -0000
@@ -341,11 +341,12 @@
* that the BIOS won't touch the keyboard anymore if it is connected
* to the ports of the root hub?
*/
-#ifdef USB_DEBUG
- if (pci_read_config(self, PCI_LEGSUP, 2) != PCI_LEGSUP_USBPIRQDEN)
+ if (pci_read_config(self, PCI_LEGSUP, 2) != PCI_LEGSUP_USBPIRQDEN) {
device_printf(self, "LegSup = 0x%04x\n",
pci_read_config(self, PCI_LEGSUP, 2));
-#endif
+ device_printf(self, "(If USB doesn't work try disabling "
+ "legacy keyboard/mouse support in the BIOS)");
+ }
pci_write_config(self, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN, 2);
err = uhci_init(sc);
--
Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iEYEARECAAYFAkGR958ACgkQXVIcjOaxUBYDqwCgpH1FCp8ye/hifA6EfL5BC8GR
2n0An06qkC7E5gNWDA9Ia5KpG6J3s/PF
=FuhC
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041110111231.GB908>
