From fea96a54343dad5185083989277b0f94907b7527 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 29 Mar 2003 00:58:51 +0000 Subject: bus_space_vaddr and related definitions (needs actual implementations) --- sys/arch/hppa/include/bus.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/hppa/include/bus.h b/sys/arch/hppa/include/bus.h index b5a0377eeff..705a1c15eb2 100644 --- a/sys/arch/hppa/include/bus.h +++ b/sys/arch/hppa/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.19 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: bus.h,v 1.20 2003/03/29 00:58:50 mickey Exp $ */ /* * Copyright (c) 1998,1999 Michael Shalayeff @@ -166,6 +166,12 @@ struct hppa_bus_space_tag { typedef const struct hppa_bus_space_tag *bus_space_tag_t; extern const struct hppa_bus_space_tag hppa_bustag; +/* flags for bus space map functions */ +#define BUS_SPACE_MAP_CACHEABLE 0x0001 +#define BUS_SPACE_MAP_LINEAR 0x0002 +#define BUS_SPACE_MAP_READONLY 0x0004 +#define BUS_SPACE_MAP_PREFETCHABLE 0x0008 + /* bus access routines */ #define bus_space_map(t,a,c,ca,hp) \ @@ -285,6 +291,8 @@ extern const struct hppa_bus_space_tag hppa_bustag; #define bus_space_barrier(t,h,o,l,op) \ ((t)->hbt_barrier((t)->hbt_cookie, (h), (o), (l), (op))) +#define bus_space_vaddr(t,h,o,l,op) \ + ((t)->hbt_vaddr((t)->hbt_cookie, (h), (o), (l), (op))) #define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */ #define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */ -- cgit v1.2.3