Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/lib/libpci be even more explicit about handling...



details:   https://anonhg.NetBSD.org/src/rev/a387117c1c2e
branches:  trunk
changeset: 328712:a387117c1c2e
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Apr 14 21:34:08 2014 +0000

description:
be even more explicit about handling only bus 0

diffstat:

 sys/rump/dev/lib/libpci/pci_at_mainbus.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d5cf6e11f714 -r a387117c1c2e sys/rump/dev/lib/libpci/pci_at_mainbus.c
--- a/sys/rump/dev/lib/libpci/pci_at_mainbus.c  Mon Apr 14 21:31:00 2014 +0000
+++ b/sys/rump/dev/lib/libpci/pci_at_mainbus.c  Mon Apr 14 21:34:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_at_mainbus.c,v 1.2 2014/04/13 12:40:00 pooka Exp $ */
+/*     $NetBSD: pci_at_mainbus.c,v 1.3 2014/04/14 21:34:08 pooka Exp $ */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.2 2014/04/13 12:40:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.3 2014/04/14 21:34:08 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -71,6 +71,7 @@
 
        /* XXX: attach args should come from elsewhere */
        memset(&pba, 0, sizeof(pba));
+       pba.pba_bus = 0;
        pba.pba_iot = (bus_space_tag_t)0;
        pba.pba_memt = (bus_space_tag_t)1;
        pba.pba_dmat = (void *)0x20;



Home | Main Index | Thread Index | Old Index