diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 18:02:49 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-10 18:02:49 +0000 |
commit | c3c065c16e387180aabfdbfbdf65b9edcc16a4f5 (patch) | |
tree | 3ebadb82554176f72e2808490357a33109af69f9 /sys/arch/vax/include/bus.h | |
parent | b79f7d8019552bffbfb9132282c9e400ed234e23 (diff) |
Remove unused BUS_SPACE_ALIGNED_POINTER, __BUS_SPACE_ADDRESS_SANITY and
__BUS_SPACE_ALIGNED_ADDRESS.
Diffstat (limited to 'sys/arch/vax/include/bus.h')
-rw-r--r-- | sys/arch/vax/include/bus.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/arch/vax/include/bus.h b/sys/arch/vax/include/bus.h index c377d4e927e..44d7cdfb65e 100644 --- a/sys/arch/vax/include/bus.h +++ b/sys/arch/vax/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.7 2005/05/25 18:29:58 jason Exp $ */ +/* $OpenBSD: bus.h,v 1.8 2007/04/10 18:02:48 miod Exp $ */ /* $NetBSD: bus.h,v 1.14 2000/06/26 04:56:13 simonb Exp $ */ /*- @@ -72,32 +72,6 @@ #ifndef _VAX_BUS_H_ #define _VAX_BUS_H_ -#ifdef BUS_SPACE_DEBUG -#include <sys/systm.h> /* for printf() prototype */ -/* - * Macros for sanity-checking the aligned-ness of pointers passed to - * bus space ops. These are not strictly necessary on the VAX, but - * could lead to performance improvements, and help catch problems - * with drivers that would creep up on other architectures. - */ -#define __BUS_SPACE_ALIGNED_ADDRESS(p, t) \ - ((((u_long)(p)) & (sizeof(t)-1)) == 0) - -#define __BUS_SPACE_ADDRESS_SANITY(p, t, d) \ -({ \ - if (__BUS_SPACE_ALIGNED_ADDRESS((p), t) == 0) { \ - printf("%s 0x%lx not aligned to %d bytes %s:%d\n", \ - d, (u_long)(p), sizeof(t), __FILE__, __LINE__); \ - } \ - (void) 0; \ -}) - -#define BUS_SPACE_ALIGNED_POINTER(p, t) __BUS_SPACE_ALIGNED_ADDRESS(p, t) -#else -#define __BUS_SPACE_ADDRESS_SANITY(p,t,d) (void) 0 -#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t) -#endif /* BUS_SPACE_DEBUG */ - /* * Bus address and size types */ |