Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/gdium Fix compile for PCI_NETBSD_CONFIGURE
details: https://anonhg.NetBSD.org/src/rev/33b3310d3a61
branches: trunk
changeset: 347433:33b3310d3a61
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Aug 26 13:52:38 2016 +0000
description:
Fix compile for PCI_NETBSD_CONFIGURE
diffstat:
sys/arch/evbmips/gdium/mainbus.c | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diffs (47 lines):
diff -r b0456a08f3e3 -r 33b3310d3a61 sys/arch/evbmips/gdium/mainbus.c
--- a/sys/arch/evbmips/gdium/mainbus.c Fri Aug 26 13:51:55 2016 +0000
+++ b/sys/arch/evbmips/gdium/mainbus.c Fri Aug 26 13:52:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.4 2012/01/27 18:52:54 para Exp $ */
+/* $NetBSD: mainbus.c,v 1.5 2016/08/26 13:52:38 skrll Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4 2012/01/27 18:52:54 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.5 2016/08/26 13:52:38 skrll Exp $");
#include "opt_pci.h"
@@ -99,19 +99,16 @@
aprint_normal("\n");
#if defined(PCI_NETBSD_CONFIGURE)
- {
- struct extent *ioext, *memext;
+ struct mips_cache_info * const mci = &mips_cache_info;
- ioext = extent_create("pciio", 0x00001000, 0x00003fff,
- NULL, 0, EX_NOWAIT);
- memext = extent_create("pcimem", 0, BONITO_PCILO_SIZE,
- NULL, 0, EX_NOWAIT);
-
- pci_configure_bus(&gdium_configuration.gc_pc, ioext, memext,
- NULL, 0, mips_dcache_align);
- extent_destroy(ioext);
- extent_destroy(memext);
- }
+ struct extent *ioext = extent_create("pciio", 0x00001000, 0x00003fff,
+ NULL, 0, EX_NOWAIT);
+ struct extent *memext = extent_create("pcimem", 0, BONITO_PCILO_SIZE,
+ NULL, 0, EX_NOWAIT);
+ pci_configure_bus(&gdium_configuration.gc_pc, ioext, memext,
+ NULL, 0, mci->mci_dcache_align);
+ extent_destroy(ioext);
+ extent_destroy(memext);
#endif /* PCI_NETBSD_CONFIGURE */
for (i = 0; i < __arraycount(mainbusdevs); i++) {
Home |
Main Index |
Thread Index |
Old Index