From bb245959f9db9171e4c7efba7dd538a3cc57aa43 Mon Sep 17 00:00:00 2001 From: deberg Date: Tue, 11 Jun 2002 05:17:30 +0000 Subject: [PATCH] bus_space_mmap(), same as atari port. untested, as it is unused. --- sys/arch/next68k/include/bus_space.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/arch/next68k/include/bus_space.h b/sys/arch/next68k/include/bus_space.h index 6f6471bae81e..c23239f4e83e 100644 --- a/sys/arch/next68k/include/bus_space.h +++ b/sys/arch/next68k/include/bus_space.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_space.h,v 1.7 2001/05/12 22:35:29 chs Exp $ */ +/* $NetBSD: bus_space.h,v 1.8 2002/06/11 05:17:30 deberg Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -116,6 +116,16 @@ typedef u_long bus_space_handle_t; #define bus_space_free(t, h, s) +/* + * paddr_t bus_space_mmap __P((bus_space_tag_t t, bus_addr_t base, + * off_t offset, int prot, int flags)); + * + * Mmap an area of bus space. + */ + +#define bus_space_mmap(t, addr, off, prot, flags) \ + m68k_btop((addr) + (off)) + /* * u_intN_t bus_space_read_N __P((bus_space_tag_t tag, * bus_space_handle_t bsh, bus_size_t offset));