Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/pci pullup 1.4->1.5 (thorpej)



details:   https://anonhg.NetBSD.org/src/rev/17111bff202b
branches:  netbsd-1-4
changeset: 468679:17111bff202b
user:      perry <perry%NetBSD.org@localhost>
date:      Thu May 06 19:30:29 1999 +0000

description:
pullup 1.4->1.5 (thorpej)

diffstat:

 sys/dev/pci/uhci_pci.c |  25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r 4e56df646568 -r 17111bff202b sys/dev/pci/uhci_pci.c
--- a/sys/dev/pci/uhci_pci.c    Thu May 06 19:23:10 1999 +0000
+++ b/sys/dev/pci/uhci_pci.c    Thu May 06 19:30:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci_pci.c,v 1.4 1998/11/25 22:32:04 augustss Exp $    */
+/*     $NetBSD: uhci_pci.c,v 1.4.4.1 1999/05/06 19:30:29 perry Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -63,6 +63,13 @@
        sizeof(uhci_softc_t), uhci_pci_match, uhci_pci_attach
 };
 
+struct {
+       pcitag_t        tag;
+       int             valid;
+} uhci_pci_console_info;
+
+void uhci_pci_has_console __P((pcitag_t));
+
 int
 uhci_pci_match(parent, match, aux)
        struct device *parent;
@@ -158,6 +165,22 @@
                return;
        }
 
+       if (uhci_pci_console_info.valid &&
+           memcmp(&uhci_pci_console_info.tag, &pa->pa_tag,
+                  sizeof(pcitag_t)) == 0)
+               sc->sc_bus.has_console = 1;
+       else
+               sc->sc_bus.has_console = 0;
+
        /* Attach usb device. */
        config_found((void *)sc, &sc->sc_bus, usbctlprint);
 }
+
+void
+uhci_pci_has_console(tag)
+       pcitag_t tag;
+{
+
+       uhci_pci_console_info.tag = tag;
+       uhci_pci_console_info.valid = 1;
+}



Home | Main Index | Thread Index | Old Index