From 8a06b90dbe165294efa06ce9eea50d949dfcb2ed Mon Sep 17 00:00:00 2001 From: skrll Date: Mon, 23 Sep 2019 16:17:54 +0000 Subject: Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches to follow arm and (generic) mips. Reviewed by christos. --- sys/arch/atari/include/bus_defs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch/atari/include') diff --git a/sys/arch/atari/include/bus_defs.h b/sys/arch/atari/include/bus_defs.h index a4fef79ebc9..3240699bc40 100644 --- a/sys/arch/atari/include/bus_defs.h +++ b/sys/arch/atari/include/bus_defs.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_defs.h,v 1.1 2011/07/01 17:09:58 dyoung Exp $ */ +/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:55 skrll Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -66,6 +66,10 @@ typedef u_long bus_addr_t; typedef u_long bus_size_t; +#define PRIxBUSADDR "lx" +#define PRIxBUSSIZE "lx" +#define PRIuBUSSIZE "lu" + /* * I/O addresses (in bus space) */ @@ -80,6 +84,8 @@ typedef u_long bus_io_size_t; typedef struct atari_bus_space *bus_space_tag_t; typedef u_long bus_space_handle_t; +#define PRIxBSH "lx" + #define BUS_SPACE_MAP_CACHEABLE 0x01 #define BUS_SPACE_MAP_LINEAR 0x02 #define BUS_SPACE_MAP_PREFETCHABLE 0x04 -- cgit