diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-25 07:43:41 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-25 07:43:41 +0000 |
commit | f75d4932f2c265fe22871edd130c7d18a1878f6d (patch) | |
tree | e3d536681f9fab6d475618634caa631ee16d8e36 /sys | |
parent | 935514c32096253ef3a75a8c01d0cadeb24e6e4c (diff) |
Local macro
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/include/bus.h | 5 |
1 files changed, 4 insertions, 1 deletions
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, \ |