at v2.6.21 64 lines 1.3 kB view raw
1/* 2 * include/asm-xtensa/types.h 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 * 8 * Copyright (C) 2001 - 2005 Tensilica Inc. 9 */ 10 11#ifndef _XTENSA_TYPES_H 12#define _XTENSA_TYPES_H 13 14#ifndef __ASSEMBLY__ 15 16typedef unsigned short umode_t; 17 18/* 19 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the 20 * header files exported to user space 21 */ 22 23typedef __signed__ char __s8; 24typedef unsigned char __u8; 25 26typedef __signed__ short __s16; 27typedef unsigned short __u16; 28 29typedef __signed__ int __s32; 30typedef unsigned int __u32; 31 32#if defined(__GNUC__) && !defined(__STRICT_ANSI__) 33typedef __signed__ long long __s64; 34typedef unsigned long long __u64; 35#endif 36 37/* 38 * These aren't exported outside the kernel to avoid name space clashes 39 */ 40#ifdef __KERNEL__ 41 42typedef __signed__ char s8; 43typedef unsigned char u8; 44 45typedef __signed__ short s16; 46typedef unsigned short u16; 47 48typedef __signed__ int s32; 49typedef unsigned int u32; 50 51typedef __signed__ long long s64; 52typedef unsigned long long u64; 53 54 55#define BITS_PER_LONG 32 56 57/* Dma addresses are 32-bits wide. */ 58 59typedef u32 dma_addr_t; 60 61#endif /* __KERNEL__ */ 62#endif 63 64#endif /* _XTENSA_TYPES_H */