Added macros for bus_space_mmap() and bus_space_vaddr()

This commit is contained in:
macallan 2005-09-23 18:53:16 +00:00
parent aaddad0a64
commit 53ea55fd08
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.17 2005/03/09 19:04:44 matt Exp $ */
/* $NetBSD: bus.h,v 1.18 2005/09/23 18:53:16 macallan Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -387,6 +387,10 @@ bus_space_read_region_stream_4(tag, bsh, offset, addr, count)
#define bus_space_write_stream_2(t, h, o, v) out16(__BA(t, h, o), (v))
#define bus_space_write_stream_4(t, h, o, v) out32(__BA(t, h, o), (v))
#define bus_space_mmap(tag, addr, off, prot, flags) \
(paddr_t)((tag & MACPPC_BUS_ADDR_MASK) + addr + off)
#define bus_space_vaddr(tag, handle) __BA(tag, handle, 0)
#if 0 /* Cause a link error for bus_space_write_8 */
#define bus_space_write_8 !!! unimplemented !!!
#endif