From f75d4932f2c265fe22871edd130c7d18a1878f6d Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Tue, 25 Aug 1998 07:43:41 +0000 Subject: Local macro --- sys/arch/powerpc/include/bus.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/powerpc/include/bus.h') diff --git a/sys/arch/powerpc/include/bus.h b/sys/arch/powerpc/include/bus.h index 52988bd9a6c..12c39ff87db 100644 --- a/sys/arch/powerpc/include/bus.h +++ b/sys/arch/powerpc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.2 1998/01/20 18:40:24 niklas Exp $ */ +/* $OpenBSD: bus.h,v 1.3 1998/08/25 07:43:40 pefo Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom. All rights reserved. @@ -67,6 +67,9 @@ extern struct p4e_bus_space p4e_isa_io, p4e_isa_mem; #define bus_space_unmap(t, bsh, size) +#define bus_space_addr(bshp, offs) \ + ((vm_offset_t)((bshp) + (offs))) + #define bus_space_read(n,m) \ static __inline CAT3(u_int,m,_t) \ CAT(bus_space_read_,n)(bus_space_tag_t bst, bus_space_handle_t bsh, \ -- cgit v1.2.3