diff --git a/sys/arch/atari/include/bus.h b/sys/arch/atari/include/bus.h index 2ec13d252171..25b65fdbfa01 100644 --- a/sys/arch/atari/include/bus.h +++ b/sys/arch/atari/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.21 2000/01/25 22:13:19 drochner Exp $ */ +/* $NetBSD: bus.h,v 1.22 2000/04/11 07:12:47 leo Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -508,6 +508,22 @@ struct atari_bus_space { #define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t) +/* + * Bus read/write barrier methods. + * + * void bus_space_barrier __P((bus_space_tag_t tag, + * bus_space_handle_t bsh, bus_size_t offset, + * bus_size_t len, int flags)); + * + * Note: the Atari does not currently require barriers, but we must + * provide the flags to MI code. + */ +#define bus_space_barrier(t, h, o, l, f) \ + ((void)((void)(t), (void)(h), (void)(o), (void)(l), (void)(f))) +#define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ +#define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */ + + /* * Flags used in various bus DMA methods. */