From c3c065c16e387180aabfdbfbdf65b9edcc16a4f5 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 10 Apr 2007 18:02:49 +0000 Subject: Remove unused BUS_SPACE_ALIGNED_POINTER, __BUS_SPACE_ADDRESS_SANITY and __BUS_SPACE_ALIGNED_ADDRESS. --- sys/arch/vax/include/bus.h | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'sys/arch/vax/include/bus.h') 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 /* 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 */ -- cgit v1.2.3