Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Force BIOS out of the game by setting the LEGSUP...



details:   https://anonhg.NetBSD.org/src/rev/e4a0faad0f16
branches:  trunk
changeset: 516559:e4a0faad0f16
user:      augustss <augustss%NetBSD.org@localhost>
date:      Thu Oct 25 01:46:26 2001 +0000

description:
Force BIOS out of the game by setting the LEGSUP register to its default
value.

diffstat:

 sys/dev/pci/uhci_pci.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r c541f68a073c -r e4a0faad0f16 sys/dev/pci/uhci_pci.c
--- a/sys/dev/pci/uhci_pci.c    Thu Oct 25 01:25:02 2001 +0000
+++ b/sys/dev/pci/uhci_pci.c    Thu Oct 25 01:46:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci_pci.c,v 1.18 2000/12/28 22:59:15 sommerfeld Exp $ */
+/*     $NetBSD: uhci_pci.c,v 1.19 2001/10/25 01:46:26 augustss Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
        pcitag_t tag = pa->pa_tag;
        char const *intrstr;
        pci_intr_handle_t ih;
-       pcireg_t csr, legsup;
+       pcireg_t csr;
        char *vendor;
        char *devname = sc->sc.sc_bus.bdev.dv_xname;
        char devinfo[256];
@@ -138,12 +138,8 @@
        }
        printf("%s: interrupting at %s\n", devname, intrstr);
 
-        /* Verify that the PIRQD enable bit is set, some BIOS's don't do that*/
-       legsup = pci_conf_read(pc, tag, PCI_LEGSUP);
-       if (!(legsup & PCI_LEGSUP_USBPIRQDEN)) {
-               legsup = PCI_LEGSUP_USBPIRQDEN;
-               pci_conf_write(pc, tag, PCI_LEGSUP, legsup);
-        }
+       /* Set LEGSUP register to its default value. */
+       pci_conf_write(pc, tag, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN);
 
        switch(pci_conf_read(pc, tag, PCI_USBREV) & PCI_USBREV_MASK) {
        case PCI_USBREV_PRE_1_0:



Home | Main Index | Thread Index | Old Index