mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
849bf3a09f
This modifies <asm-parisc/types.h> to use the <asm-generic/int-*.h> generic include files. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: Kyle McMartin <kyle@parisc-linux.org> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Grant Grundler <grundler@parisc-linux.org>
37 lines
570 B
C
37 lines
570 B
C
#ifndef _PARISC_TYPES_H
|
|
#define _PARISC_TYPES_H
|
|
|
|
#include <asm-generic/int-ll64.h>
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
typedef unsigned short umode_t;
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
/*
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
*/
|
|
#ifdef __KERNEL__
|
|
|
|
#ifdef CONFIG_64BIT
|
|
#define BITS_PER_LONG 64
|
|
#define SHIFT_PER_LONG 6
|
|
#else
|
|
#define BITS_PER_LONG 32
|
|
#define SHIFT_PER_LONG 5
|
|
#endif
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
/* Dma addresses are 32-bits wide. */
|
|
|
|
typedef u32 dma_addr_t;
|
|
typedef u64 dma64_addr_t;
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif
|