diff options
| author | skrll <skrll@NetBSD.org> | 2019-09-23 16:17:54 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2019-09-23 16:17:54 +0000 |
| commit | 8a06b90dbe165294efa06ce9eea50d949dfcb2ed (patch) | |
| tree | 01d5ef1d1f9c7b77e55a341fb4d2ad984ae69dd0 /sys/arch/atari | |
| parent | 33ee31d962ee13c00f9c0b86245ab5a32a5981f8 (diff) | |
Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches
to follow arm and (generic) mips.
Reviewed by christos.
Diffstat (limited to 'sys/arch/atari')
| -rw-r--r-- | sys/arch/atari/include/bus_defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
