Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Add boot device recognition for ld ...



details:   https://anonhg.NetBSD.org/src/rev/207c4710a923
branches:  trunk
changeset: 352315:207c4710a923
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Mar 25 13:08:38 2017 +0000

description:
Add boot device recognition for ld @ virtio.

diffstat:

 sys/arch/sparc64/sparc64/autoconf.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 6e52d9ecf6a4 -r 207c4710a923 sys/arch/sparc64/sparc64/autoconf.c
--- a/sys/arch/sparc64/sparc64/autoconf.c       Sat Mar 25 13:05:09 2017 +0000
+++ b/sys/arch/sparc64/sparc64/autoconf.c       Sat Mar 25 13:08:38 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.208 2016/08/19 19:02:07 palle Exp $ */
+/*     $NetBSD: autoconf.c,v 1.209 2017/03/25 13:08:38 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.208 2016/08/19 19:02:07 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.209 2017/03/25 13:08:38 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -97,6 +97,7 @@
 
 #include <dev/ata/atavar.h>
 #include <dev/pci/pcivar.h>
+#include <dev/pci/virtiovar.h>
 #include <dev/ebus/ebusvar.h>
 #include <dev/sbus/sbusvar.h>
 #include <dev/i2c/i2cvar.h>
@@ -931,6 +932,10 @@
                struct pci_attach_args *pa = aux;
 
                ofnode = PCITAG_NODE(pa->pa_tag);
+       } else if (device_is_a(busdev, "virtio")) {
+               struct virtio_softc *va = aux;
+
+               ofnode = PCITAG_NODE(va->sc_pa.pa_tag);
        } else if (device_is_a(busdev, "sbus") || device_is_a(busdev, "dma")
            || device_is_a(busdev, "ledma")) {
                struct sbus_attach_args *sa = aux;



Home | Main Index | Thread Index | Old Index