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/alpha/include | |
| 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/alpha/include')
| -rw-r--r-- | sys/arch/alpha/include/bus_defs.h | 4 | ||||
| -rw-r--r-- | sys/arch/alpha/include/bus_user.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/alpha/include/bus_defs.h b/sys/arch/alpha/include/bus_defs.h index 9c222cfff56..25339580f63 100644 --- a/sys/arch/alpha/include/bus_defs.h +++ b/sys/arch/alpha/include/bus_defs.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_defs.h,v 1.4 2017/06/22 16:46:52 flxd Exp $ */ +/* $NetBSD: bus_defs.h,v 1.5 2019/09/23 16:17:54 skrll Exp $ */ /*- * Copyright (c) 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc. @@ -113,6 +113,8 @@ struct alpha_bus_space_translation; typedef struct alpha_bus_space *bus_space_tag_t; typedef u_long bus_space_handle_t; +#define PRIxBSH "lx" + struct alpha_bus_space { /* cookie */ void *abs_cookie; diff --git a/sys/arch/alpha/include/bus_user.h b/sys/arch/alpha/include/bus_user.h index a6016ee70a8..362f6c41580 100644 --- a/sys/arch/alpha/include/bus_user.h +++ b/sys/arch/alpha/include/bus_user.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_user.h,v 1.2 2016/01/24 16:47:50 christos Exp $ */ +/* $NetBSD: bus_user.h,v 1.3 2019/09/23 16:17:54 skrll Exp $ */ /* * XXX This file is a stopgap intended to keep NetBSD/alpha buildable * XXX while developers figure out whether/how to expose to userland @@ -18,6 +18,10 @@ typedef u_long bus_addr_t; typedef u_long bus_size_t; +#define PRIxBUSADDR "lx" +#define PRIxBUSSIZE "lx" +#define PRIuBUSSIZE "lu" + /* * Translation of an Alpha bus address; INTERNAL USE ONLY. */ |
