aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/bus.h')
-rw-r--r--sys/amd64/include/bus.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/amd64/include/bus.h b/sys/amd64/include/bus.h
index b1a91a27b2d1..e25f427e3abf 100644
--- a/sys/amd64/include/bus.h
+++ b/sys/amd64/include/bus.h
@@ -1004,6 +1004,17 @@ bus_space_barrier(bus_space_tag_t tag __unused, bus_space_handle_t bsh __unused,
#endif
}
+#ifdef BUS_SPACE_NO_LEGACY
+#undef inb
+#undef outb
+#define inb(a) compiler_error
+#define inw(a) compiler_error
+#define inl(a) compiler_error
+#define outb(a, b) compiler_error
+#define outw(a, b) compiler_error
+#define outl(a, b) compiler_error
+#endif
+
#include <machine/bus_dma.h>
/*