Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun68k/include Implement bus_space_mmap.
details: https://anonhg.NetBSD.org/src/rev/619ae0098857
branches: trunk
changeset: 518454:619ae0098857
user: fredette <fredette%NetBSD.org@localhost>
date: Fri Nov 30 16:04:25 2001 +0000
description:
Implement bus_space_mmap.
diffstat:
sys/arch/sun68k/include/bus.h | 44 +++++++++++++++++++++++++++++++-----------
1 files changed, 32 insertions(+), 12 deletions(-)
diffs (82 lines):
diff -r efd847845ea4 -r 619ae0098857 sys/arch/sun68k/include/bus.h
--- a/sys/arch/sun68k/include/bus.h Fri Nov 30 16:00:27 2001 +0000
+++ b/sys/arch/sun68k/include/bus.h Fri Nov 30 16:04:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.2 2001/07/19 15:32:19 thorpej Exp $ */
+/* $NetBSD: bus.h,v 1.3 2001/11/30 16:04:25 fredette Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -116,12 +116,13 @@
bus_size_t, /*size*/
int)); /*flags*/
- int (*sun68k_bus_mmap) __P((
+ paddr_t (*sun68k_bus_mmap) __P((
bus_space_tag_t,
bus_type_t, /**/
bus_addr_t, /**/
- int, /*flags*/
- bus_space_handle_t *));
+ off_t, /*offset*/
+ int, /*prot*/
+ int)); /*flags*/
void *(*sun68k_intr_establish) __P((
bus_space_tag_t,
@@ -197,12 +198,19 @@
bus_size_t,
bus_size_t,
int));
-static int bus_space_mmap __P((
+static paddr_t bus_space_mmap __P((
bus_space_tag_t,
- bus_type_t, /**/
bus_addr_t, /**/
- int, /*flags*/
- bus_space_handle_t *));
+ off_t, /*offset*/
+ int, /*prot*/
+ int)); /*flags*/
+static paddr_t bus_space_mmap2 __P((
+ bus_space_tag_t,
+ bus_type_t,
+ bus_addr_t, /**/
+ off_t, /*offset*/
+ int, /*prot*/
+ int)); /*flags*/
static void *bus_intr_establish __P((
bus_space_tag_t,
int, /*bus-specific intr*/
@@ -274,15 +282,27 @@
_BS_CALL(t, sun68k_bus_subregion)(t, h, o, s, hp);
}
-__inline__ int
-bus_space_mmap(t, bt, a, f, hp)
+__inline__ paddr_t
+bus_space_mmap(t, a, o, p, f)
+ bus_space_tag_t t;
+ bus_addr_t a;
+ off_t o;
+ int p;
+ int f;
+{
+ _BS_CALL(t, sun68k_bus_mmap)(t, 0, a, o, p, f);
+}
+
+__inline__ paddr_t
+bus_space_mmap2(t, bt, a, o, p, f)
bus_space_tag_t t;
bus_type_t bt;
bus_addr_t a;
+ off_t o;
+ int p;
int f;
- bus_space_handle_t *hp;
{
- _BS_CALL(t, sun68k_bus_mmap)(t, bt, a, f, hp);
+ _BS_CALL(t, sun68k_bus_mmap)(t, bt, a, o, p, f);
}
__inline__ void *
Home |
Main Index |
Thread Index |
Old Index