Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/pci Increase the number of static extent desc...



details:   https://anonhg.NetBSD.org/src/rev/856703fea6da
branches:  trunk
changeset: 499774:856703fea6da
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Nov 29 05:53:29 2000 +0000

description:
Increase the number of static extent descriptors from 8 to 16,
and add a means for calling a chip-specific init hook.

diffstat:

 sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 54b2243e31e3 -r 856703fea6da sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c
--- a/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c      Wed Nov 29 03:06:18 2000 +0000
+++ b/sys/arch/alpha/pci/pci_bwx_bus_mem_chipdep.c      Wed Nov 29 05:53:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.12 2000/06/26 18:19:26 thorpej Exp $ */
+/* $NetBSD: pci_bwx_bus_mem_chipdep.c,v 1.13 2000/11/29 05:53:29 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -208,7 +208,7 @@
 
 #ifndef        CHIP_MEM_EX_STORE
 static long
-    __C(CHIP,_mem_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof(long)];
+    __C(CHIP,_mem_ex_storage)[EXTENT_FIXED_STORAGE_SIZE(16) / sizeof(long)];
 #define        CHIP_MEM_EX_STORE(v)            (__C(CHIP,_mem_ex_storage))
 #define        CHIP_MEM_EX_STORE_SIZE(v)       (sizeof __C(CHIP,_mem_ex_storage))
 #endif
@@ -304,6 +304,11 @@
            EX_NOWAIT|EX_NOCOALESCE);
 
         CHIP_MEM_EXTENT(v) = ex;
+
+#ifdef CHIP_MEM_INIT_HOOK
+       /* Call chip-specific init function. */
+       CHIP_MEM_INIT_HOOK(t, v);
+#endif
 }
 
 int



Home | Main Index | Thread Index | Old Index