use __paddr_t since this is a userland API.

This commit is contained in:
christos 2016-01-24 16:47:50 +00:00
parent e2d23afe0f
commit 0496cf4b33
2 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus_user.h,v 1.1 2011/08/12 22:23:12 dyoung Exp $ */
/* $NetBSD: bus_user.h,v 1.2 2016/01/24 16:47:50 christos Exp $ */
/*
* XXX This file is a stopgap intended to keep NetBSD/alpha buildable
* XXX while developers figure out whether/how to expose to userland
@ -24,8 +24,8 @@ typedef u_long bus_size_t;
struct alpha_bus_space_translation {
bus_addr_t abst_bus_start; /* start of bus window */
bus_addr_t abst_bus_end; /* end of bus window */
paddr_t abst_sys_start; /* start of sysBus window */
paddr_t abst_sys_end; /* end of sysBus window */
__paddr_t abst_sys_start; /* start of sysBus window */
__paddr_t abst_sys_end; /* end of sysBus window */
int abst_addr_shift;/* address shift */
int abst_size_shift;/* size shift */
int abst_flags; /* flags; see below */

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.53 2016/01/23 22:31:19 christos Exp $ */
/* $NetBSD: types.h,v 1.54 2016/01/24 16:47:50 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -44,8 +44,13 @@ typedef struct label_t {
} label_t;
#endif
typedef int __cpu_simple_lock_nv_t;
typedef long int __register_t;
typedef unsigned long __paddr_t; /* XXX: For bus_user.h */
#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef __paddr_t paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
typedef unsigned long vsize_t;
@ -56,13 +61,10 @@ typedef unsigned long vsize_t;
#define PRIxVSIZE "lx"
#define PRIuVSIZE "lu"
typedef long int register_t;
typedef __register_t register_t;
#define PRIxREGISTER "lx"
#endif
typedef int __cpu_simple_lock_nv_t;
typedef long int __register_t;
#define __SIMPLELOCK_LOCKED 1
#define __SIMPLELOCK_UNLOCKED 0