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 Implement bus_space_subregion().
details: https://anonhg.NetBSD.org/src/rev/f546568f1c66
branches: trunk
changeset: 502142:f546568f1c66
user: pk <pk%NetBSD.org@localhost>
date: Fri Jan 12 15:24:15 2001 +0000
description:
Implement bus_space_subregion().
diffstat:
sys/arch/sparc64/sparc64/machdep.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r 1b2d6a2a8dee -r f546568f1c66 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c Fri Jan 12 14:55:13 2001 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c Fri Jan 12 15:24:15 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.96 2000/12/22 22:58:56 jdolecek Exp $ */
+/* $NetBSD: machdep.c,v 1.97 2001/01/12 15:24:15 pk Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1587,6 +1587,9 @@
bus_space_handle_t *));
static int sparc_bus_unmap __P((bus_space_tag_t, bus_space_handle_t,
bus_size_t));
+static int sparc_bus_subregion __P((bus_space_tag_t, bus_space_handle_t,
+ bus_size_t, bus_size_t,
+ bus_space_handle_t *));
static int sparc_bus_mmap __P((bus_space_tag_t, bus_type_t,
bus_addr_t, int, bus_space_handle_t *));
static void *sparc_mainbus_intr_establish __P((bus_space_tag_t, int, int,
@@ -1691,6 +1694,18 @@
}
int
+sparc_bus_subregion(tag, handle, offset, size, nhandlep)
+ bus_space_tag_t tag;
+ bus_space_handle_t handle;
+ bus_size_t offset;
+ bus_size_t size;
+ bus_space_handle_t *nhandlep;
+{
+ *nhandlep = handle + offset;
+ return (0);
+}
+
+int
sparc_bus_unmap(t, bh, size)
bus_space_tag_t t;
bus_size_t size;
@@ -1800,7 +1815,7 @@
UPA_BUS_SPACE, /* type */
sparc_bus_map, /* bus_space_map */
sparc_bus_unmap, /* bus_space_unmap */
- NULL, /* bus_space_subregion */
+ sparc_bus_subregion, /* bus_space_subregion */
sparc_bus_barrier, /* bus_space_barrier */
sparc_bus_mmap, /* bus_space_mmap */
sparc_mainbus_intr_establish /* bus_intr_establish */
Home |
Main Index |
Thread Index |
Old Index