Sync with i386/include/bus.h.

This commit is contained in:
sakamoto 1998-09-01 05:57:23 +00:00
parent 0bbf57d7ec
commit 67d65cd631

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.15 1998/08/24 01:40:28 sakamoto Exp $ */
/* $NetBSD: bus.h,v 1.16 1998/09/01 05:57:23 sakamoto Exp $ */
/* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */
/*-
@ -892,9 +892,7 @@ bus_space_copy_region_4(t, h1, o1, h2, o2, c)
}
}
#if 0 /* Cause a link error for bus_space_copy_8 */
#define bus_space_copy_region_8 !!! bus_space_copy_region_8 unimplemented !!!
#endif
#ifdef __BUS_SPACE_COMPAT_OLDDEFS
/* compatibility definitions; deprecated */
@ -915,13 +913,17 @@ bus_space_copy_region_4(t, h1, o1, h2, o2, c)
* bus_space_handle_t bsh, bus_size_t offset,
* bus_size_t len, int flags));
*
* Note: the i386 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_BARRIER_READ 0x01 /* force read barrier */
#define BUS_BARRIER_WRITE 0x02 /* force write barrier */
#define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */
#define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */
#ifdef __BUS_SPACE_COMPAT_OLDDEFS
/* compatibility definitions; deprecated */
#define BUS_BARRIER_READ BUS_SPACE_BARRIER_READ
#define BUS_BARRIER_WRITE BUS_SPACE_BARRIER_WRITE
#endif
/*
* Bus DMA methods.