2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-10-10 17:22:14 +09:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011 The Chromium OS Authors.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_SANDBOX_TYPES_H
|
|
|
|
#define __ASM_SANDBOX_TYPES_H
|
|
|
|
|
2018-08-06 20:47:39 +09:00
|
|
|
#include <asm-generic/int-ll64.h>
|
2011-10-10 17:22:14 +09:00
|
|
|
|
2018-08-06 20:47:39 +09:00
|
|
|
typedef unsigned short umode_t;
|
2011-10-10 17:22:14 +09:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
2017-04-13 05:41:00 +09:00
|
|
|
/*
|
2018-02-12 16:05:57 +09:00
|
|
|
* Number of bits in a C 'long' on this architecture.
|
2017-04-13 05:41:00 +09:00
|
|
|
*/
|
2019-03-12 19:38:01 +09:00
|
|
|
#ifdef CONFIG_PHYS_64BIT
|
2018-02-12 16:05:57 +09:00
|
|
|
#define BITS_PER_LONG 64
|
2019-03-12 19:38:01 +09:00
|
|
|
#else /* CONFIG_PHYS_64BIT */
|
2018-02-12 16:05:57 +09:00
|
|
|
#define BITS_PER_LONG 32
|
2019-03-12 19:38:01 +09:00
|
|
|
#endif /* CONFIG_PHYS_64BIT */
|
2018-02-12 16:05:57 +09:00
|
|
|
|
2019-03-12 19:38:01 +09:00
|
|
|
#ifdef CONFIG_PHYS_64BIT
|
2018-02-12 16:05:57 +09:00
|
|
|
typedef unsigned long long dma_addr_t;
|
|
|
|
typedef u64 phys_addr_t;
|
|
|
|
typedef u64 phys_size_t;
|
2019-03-12 19:38:01 +09:00
|
|
|
#else /* CONFIG_PHYS_64BIT */
|
2011-10-10 17:22:14 +09:00
|
|
|
typedef unsigned long dma_addr_t;
|
2013-11-11 02:26:53 +09:00
|
|
|
typedef u32 phys_addr_t;
|
|
|
|
typedef u32 phys_size_t;
|
2019-03-12 19:38:01 +09:00
|
|
|
#endif /* CONFIG_PHYS_64BIT */
|
2011-10-10 17:22:14 +09:00
|
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#endif
|