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.6->1.7 (thorpej)



details:   https://anonhg.NetBSD.org/src/rev/4e56df646568
branches:  netbsd-1-4
changeset: 468678:4e56df646568
user:      perry <perry%NetBSD.org@localhost>
date:      Thu May 06 19:23:10 1999 +0000

description:
pullup 1.6->1.7 (thorpej)

diffstat:

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

diffs (46 lines):

diff -r 7fc74fd0b6ae -r 4e56df646568 sys/dev/pci/ohci_pci.c
--- a/sys/dev/pci/ohci_pci.c    Thu May 06 19:11:50 1999 +0000
+++ b/sys/dev/pci/ohci_pci.c    Thu May 06 19:23:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci_pci.c,v 1.6 1998/12/27 13:03:58 augustss Exp $    */
+/*     $NetBSD: ohci_pci.c,v 1.6.2.1 1999/05/06 19:23:10 perry Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -70,6 +70,13 @@
        sizeof(struct ohci_softc), ohci_pci_match, ohci_pci_attach
 };
 
+struct {
+       pcitag_t        tag;
+       int             valid;
+} ohci_pci_console_info;
+
+void ohci_pci_has_console __P((pcitag_t));
+
 int
 ohci_pci_match(parent, match, aux)
        struct device *parent;
@@ -152,6 +159,22 @@
                return;
        }
 
+       if (ohci_pci_console_info.valid &&
+           memcmp(&ohci_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
+ohci_pci_has_console(tag)
+       pcitag_t tag;
+{
+
+       ohci_pci_console_info.tag = tag;
+       ohci_pci_console_info.valid = 1;
+}



Home | Main Index | Thread Index | Old Index