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/arc | |
| 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/arc')
| -rw-r--r-- | sys/arch/arc/include/bus_defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/arc/include/bus_defs.h b/sys/arch/arc/include/bus_defs.h index adbdaed9c29..cdd6e447a59 100644 --- a/sys/arch/arc/include/bus_defs.h +++ b/sys/arch/arc/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:54 skrll Exp $ */ /* NetBSD: bus.h,v 1.27 2000/03/15 16:44:50 drochner Exp */ /* $OpenBSD: bus.h,v 1.15 1999/08/11 23:15:21 niklas Exp $ */ @@ -73,6 +73,10 @@ typedef u_long bus_addr_t; typedef u_long bus_size_t; +#define PRIxBUSADDR "lx" +#define PRIxBUSSIZE "lx" +#define PRIuBUSSIZE "lu" + #include <mips/locore.h> #ifdef BUS_SPACE_DEBUG @@ -108,6 +112,8 @@ typedef u_long bus_size_t; typedef uint32_t bus_space_handle_t; typedef struct arc_bus_space *bus_space_tag_t; +#define PRIxBSH "lx" + struct arc_bus_space { const char *bs_name; struct extent *bs_extent; |
