Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches
to follow arm and (generic) mips. Reviewed by christos.
This commit is contained in:
parent
7c33c59848
commit
bf158e33f8
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.29 2014/01/03 00:33:06 rkujawa Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.30 2019/09/23 16:17:54 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman. All rights reserved.
|
||||
|
@ -38,12 +38,18 @@
|
|||
typedef u_int32_t bus_addr_t;
|
||||
typedef u_int32_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "x"
|
||||
#define PRIxBUSSIZE "x"
|
||||
#define PRIuBUSSIZE "u"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/* unpublic, but needed by method implementors */
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.6 2014/01/22 00:24:53 christos Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.7 2019/09/23 16:17:54 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman. All rights reserved.
|
||||
|
@ -34,12 +34,17 @@
|
|||
typedef uint32_t bus_addr_t;
|
||||
typedef uint32_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "x"
|
||||
#define PRIxBUSSIZE "x"
|
||||
#define PRIuBUSSIZE "u"
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct amigappc_bus_dma_segment;
|
||||
struct amigappc_bus_dma_tag;
|
||||
struct amigappc_bus_dmamap;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.2 2012/05/07 18:16:38 tsutsui Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.3 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* XXX: A dummy <machine/bus.h> for MI <sys/bus.h>.
|
||||
|
@ -10,9 +10,15 @@
|
|||
typedef paddr_t bus_addr_t;
|
||||
typedef psize_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPADDR
|
||||
#define PRIxBUSSIZE PRIxPSIZE
|
||||
#define PRIuBUSSIZE PRIuPSIZE
|
||||
|
||||
typedef int bus_space_tag_t;
|
||||
typedef int bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "x"
|
||||
|
||||
/*
|
||||
* There is no bus_dma(9)'fied bus drivers on this port.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/19 15:52:30 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -102,12 +102,17 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus space.
|
||||
*/
|
||||
typedef struct dreamcast_bus_space *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct dreamcast_bus_space {
|
||||
/* cookie */
|
||||
void *dbs_cookie;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.2 2012/02/12 16:34:08 matt Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.3 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -47,12 +47,17 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
|
||||
* bus_size_t size, int flags, bus_space_handle_t *bshp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_space.h,v 1.2 2014/03/18 18:20:41 riastradh Exp $ */
|
||||
/* $NetBSD: bus_space.h,v 1.3 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -71,6 +71,9 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
|
@ -78,6 +81,8 @@ struct mvme68k_bus_space_tag;
|
|||
typedef struct mvme68k_bus_space_tag *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct mvme68k_bus_space_tag {
|
||||
void *bs_cookie;
|
||||
int (*bs_map)(void *, bus_addr_t, bus_size_t,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/19 15:44:53 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -103,9 +103,15 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
typedef struct _bus_space *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct _bus_space {
|
||||
/* cookie */
|
||||
void *bs_cookie;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.7 2015/06/23 21:00:23 matt Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.8 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000, 2001, 2005 The NetBSD Foundation, Inc.
|
||||
|
@ -104,12 +104,17 @@
|
|||
typedef long bus_addr_t;
|
||||
typedef long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus space.
|
||||
*/
|
||||
typedef struct ews4800mips_bus_space *bus_space_tag_t;
|
||||
typedef bus_addr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxBUSADDR
|
||||
|
||||
struct extent; /* forward declaration */
|
||||
|
||||
struct ews4800mips_bus_space {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.18 2012/05/07 18:16:38 tsutsui Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.19 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -72,12 +72,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* Implementation specific structures.
|
||||
* XXX Don't use outside of bus_space definitions!
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_types.h,v 1.2 2011/02/26 12:04:25 tsutsui Exp $ */
|
||||
/* $NetBSD: bus_types.h,v 1.3 2019/09/23 16:17:55 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 TAKEMRUA Shin. All rights reserved.
|
||||
|
@ -36,6 +36,13 @@
|
|||
|
||||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
#endif /* _HPCMIPS_BUS_TYPES_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/19 15:31:44 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -102,12 +102,17 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus space.
|
||||
*/
|
||||
typedef struct hpcsh_bus_space *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct extent; /* forward declaration */
|
||||
|
||||
struct hpcsh_bus_space {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2014/02/24 07:23:43 skrll Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/* $OpenBSD: bus.h,v 1.13 2001/07/30 14:15:59 art Exp $ */
|
||||
|
||||
|
@ -39,8 +39,15 @@
|
|||
*/
|
||||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct hppa_bus_space_tag {
|
||||
void *hbt_cookie;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.2 2016/09/15 21:45:37 jdolecek Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.3 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -124,12 +124,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/* map/unmap */
|
||||
|
||||
int ia64_bus_space_map(bus_space_tag_t, bus_addr_t,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/01 17:10:00 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -70,9 +70,15 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
typedef struct _bus_space *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* Turn on BUS_SPACE_DEBUG if the global DEBUG option is enabled.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.13 2012/05/07 18:16:38 tsutsui Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.14 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -70,12 +70,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
|
||||
* bus_size_t size, int flags, bus_space_handle_t *bshp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.27 2019/07/23 07:52:53 rin Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.28 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -72,6 +72,9 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
|
@ -81,7 +84,7 @@ typedef struct bus_space_handle_s {
|
|||
u_long base;
|
||||
int swapped;
|
||||
int stride;
|
||||
|
||||
|
||||
u_int8_t (*bsr1)(bus_space_tag_t, BSH_T *, bus_size_t);
|
||||
u_int16_t (*bsr2)(bus_space_tag_t, BSH_T *, bus_size_t);
|
||||
u_int32_t (*bsr4)(bus_space_tag_t, BSH_T *, bus_size_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.21 2012/02/12 16:34:09 matt Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.22 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -109,10 +109,17 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef u_int32_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
typedef struct mipsco_bus_space *bus_space_tag_t;
|
||||
|
||||
struct mipsco_bus_space {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_space.h,v 1.14 2012/02/12 16:34:09 matt Exp $ */
|
||||
/* $NetBSD: bus_space.h,v 1.15 2019/09/23 16:17:56 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -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"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
|
@ -80,6 +84,8 @@ struct mvme68k_bus_space_tag;
|
|||
typedef struct mvme68k_bus_space_tag *bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
struct mvme68k_bus_space_tag {
|
||||
void *bs_cookie;
|
||||
int (*bs_map)(void *, bus_addr_t, bus_size_t,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.9 2012/05/07 18:16:38 tsutsui Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.10 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -73,12 +73,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
|
||||
* bus_size_t size, int flags, bus_space_handle_t *bshp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.20 2012/02/12 16:34:10 matt Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.21 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -47,12 +47,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* int bus_space_map(bus_space_tag_t t, bus_addr_t addr,
|
||||
* bus_size_t size, int flags, bus_space_handle_t *bshp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_space.h,v 1.16 2012/02/12 16:34:10 matt Exp $ */
|
||||
/* $NetBSD: bus_space.h,v 1.17 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -64,12 +64,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef volatile char * bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* Value for the next68k bus space tag, not to be used directly by MI code.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2014/09/03 19:34:26 matt Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:57 skrll Exp $ */
|
||||
/* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -103,7 +103,14 @@
|
|||
typedef uintptr_t bus_addr_t;
|
||||
typedef uintptr_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPTR
|
||||
#define PRIxBUSSIZE PRIxPTR
|
||||
#define PRIuBUSSIZE PRIuPTR
|
||||
|
||||
typedef uintptr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxPTR
|
||||
|
||||
typedef const struct or1k_bus_space *bus_space_tag_t;
|
||||
|
||||
struct extent;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.15 2014/07/04 07:59:17 martin Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.16 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -105,12 +105,17 @@
|
|||
typedef long bus_addr_t;
|
||||
typedef long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
/*
|
||||
* Access methods for bus space.
|
||||
*/
|
||||
typedef const struct playstation2_bus_space *bus_space_tag_t;
|
||||
typedef bus_addr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxBUSADDR
|
||||
|
||||
struct extent; /* forward declaration */
|
||||
|
||||
struct playstation2_bus_space {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.2 2014/02/28 05:28:40 matt Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.3 2019/09/23 16:17:57 skrll Exp $ */
|
||||
/* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -110,8 +110,15 @@
|
|||
typedef uintptr_t bus_addr_t;
|
||||
typedef uintptr_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPTR
|
||||
#define PRIxBUSSIZE PRIxPTR
|
||||
#define PRIuBUSSIZE PRIuPTR
|
||||
|
||||
#ifndef __HAVE_LOCAL_BUS_SPACE
|
||||
typedef uintptr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxPTR
|
||||
|
||||
typedef const struct powerpc_bus_space *bus_space_tag_t;
|
||||
|
||||
struct extent;
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
/* $NetBSD: bus.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.2 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
#ifndef _RISCV_BUS_H_
|
||||
typedef paddr_t bus_addr_t;
|
||||
typedef psize_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPADDR
|
||||
#define PRIxBUSSIZE PRIxPSIZE
|
||||
#define PRIuBUSSIZE PRIuPSIZE
|
||||
|
||||
typedef struct riscv_bus_space_tag *bus_space_tag_t;
|
||||
typedef uintptr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxPTR
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/01 17:10:01 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -92,12 +92,18 @@
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef int bus_space_tag_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* int bus_space_map (bus_space_tag_t t, bus_addr_t addr,
|
||||
* bus_size_t size, int flags, bus_space_handle_t *bshp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.1 2011/07/01 17:10:01 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.2 2019/09/23 16:17:57 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -68,9 +68,16 @@
|
|||
* Bus address and size types
|
||||
*/
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
typedef uint64_t bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIx64
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
#define SPARC_BUS_SPACE 0
|
||||
|
||||
/* bus_addr_t is extended to 64-bits and has the iospace encoded in it */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.4 2016/11/04 05:41:01 macallan Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.5 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -107,6 +107,10 @@ typedef enum bus_type bus_type_t;
|
|||
typedef uint64_t bus_addr_t;
|
||||
typedef uint64_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIx64
|
||||
#define PRIxBUSSIZE PRIx64
|
||||
#define PRIuBUSSIZE PRIu64
|
||||
|
||||
/*
|
||||
* XXXX -- convert prom virtual address to bus_space_handle_t
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.18 2011/07/12 05:31:49 mrg Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.19 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -74,6 +74,11 @@ typedef u_long bus_type_t;
|
|||
typedef u_long bus_addr_t;
|
||||
typedef u_long bus_size_t;
|
||||
|
||||
#define PRIxBSH "lx"
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
|
||||
#define BUS_ADDR_PADDR(x) ((x) & 0xffffffff)
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.4 2011/08/25 11:02:57 jmcneill Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.5 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -33,8 +33,13 @@ struct bus_space_tag;
|
|||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
|
||||
typedef vaddr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxVADDR
|
||||
|
||||
typedef paddr_t bus_addr_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPADDR
|
||||
|
||||
bool bus_space_is_equal(bus_space_tag_t, bus_space_tag_t);
|
||||
bool bus_space_handle_is_equal(bus_space_tag_t, bus_space_handle_t,
|
||||
bus_space_handle_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.33 2016/04/22 18:13:01 christos Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.34 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -96,12 +96,17 @@
|
|||
typedef paddr_t bus_addr_t;
|
||||
typedef psize_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPADDR
|
||||
#define PRIxBUSSIZE PRIxPSIZE
|
||||
#define PRIuBUSSIZE PRIuPSIZE
|
||||
/*
|
||||
* Access methods for bus resources and address space.
|
||||
*/
|
||||
typedef struct vax_bus_space *bus_space_tag_t;
|
||||
typedef vaddr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxVADDR
|
||||
|
||||
struct vax_bus_space {
|
||||
/* cookie */
|
||||
void *vbs_cookie;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus.h,v 1.25 2012/10/13 06:44:24 tsutsui Exp $ */
|
||||
/* $NetBSD: bus.h,v 1.26 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -44,6 +44,11 @@ typedef u_long bus_addr_t;
|
|||
typedef u_long bus_size_t;
|
||||
typedef u_long bus_space_handle_t;
|
||||
|
||||
#define PRIxBUSADDR "lx"
|
||||
#define PRIxBUSSIZE "lx"
|
||||
#define PRIuBUSSIZE "lu"
|
||||
#define PRIxBSH "lx"
|
||||
|
||||
/*
|
||||
* Bus space descripter
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_defs.h,v 1.2 2011/08/25 15:06:10 dyoung Exp $ */
|
||||
/* $NetBSD: bus_defs.h,v 1.3 2019/09/23 16:17:58 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -80,6 +80,10 @@
|
|||
typedef paddr_t bus_addr_t;
|
||||
typedef size_t bus_size_t;
|
||||
|
||||
#define PRIxBUSADDR PRIxPADDR
|
||||
#define PRIxBUSSIZE "%zx"
|
||||
#define PRIuBUSSIZE "%zu"
|
||||
|
||||
struct bus_space_tag;
|
||||
typedef struct bus_space_tag *bus_space_tag_t;
|
||||
|
||||
|
@ -98,6 +102,8 @@ struct bus_space_tag {
|
|||
|
||||
typedef vaddr_t bus_space_handle_t;
|
||||
|
||||
#define PRIxBSH PRIxVADDR
|
||||
|
||||
typedef struct x86_bus_dma_tag *bus_dma_tag_t;
|
||||
typedef struct x86_bus_dmamap *bus_dmamap_t;
|
||||
|
||||
|
|
Loading…
Reference in New Issue