2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright 1999 Ralf Baechle (ralf@gnu.org)
7 * Copyright 1999 Silicon Graphics, Inc.
9 #ifndef _ASM_ARC_TYPES_H
10 #define _ASM_ARC_TYPES_H
17 typedef long LARGE_INTEGER
__attribute__ ((__mode__ (__DI__
)));
18 typedef long LONG
__attribute__ ((__mode__ (__SI__
)));
19 typedef unsigned char UCHAR
;
20 typedef unsigned short USHORT
;
21 typedef unsigned long ULONG
__attribute__ ((__mode__ (__SI__
)));
24 /* The pointer types. Note that we're using a 64-bit compiler but all
25 pointer in the ARC structures are only 32-bit, so we need some disgusting
26 workarounds. Keep your vomit bag handy. */
29 typedef LONG _PLARGE_INTEGER
;
32 typedef LONG _PUSHORT
;
36 #endif /* CONFIG_ARC32 */
42 typedef long LARGE_INTEGER
__attribute__ ((__mode__ (__DI__
)));
43 typedef long LONG
__attribute__ ((__mode__ (__DI__
)));
44 typedef unsigned char UCHAR
;
45 typedef unsigned short USHORT
;
46 typedef unsigned long ULONG
__attribute__ ((__mode__ (__DI__
)));
49 /* The pointer types. We're 64-bit and the firmware is also 64-bit, so
52 typedef SHORT
*_PSHORT
;
53 typedef LARGE_INTEGER
*_PLARGE_INTEGER
;
55 typedef UCHAR
*_PUCHAR
;
56 typedef USHORT
*_PUSHORT
;
57 typedef ULONG
*_PULONG
;
60 #endif /* CONFIG_ARC64 */
63 typedef SHORT
*PSHORT
;
64 typedef LARGE_INTEGER
*PLARGE_INTEGER
;
66 typedef UCHAR
*PUCHAR
;
67 typedef USHORT
*PUSHORT
;
68 typedef ULONG
*PULONG
;
72 * Return type of ArcGetDisplayStatus()
75 USHORT CursorXPosition
;
76 USHORT CursorYPosition
;
77 USHORT CursorMaxXPosition
;
78 USHORT CursorMaxYPosition
;
79 USHORT ForegroundColor
;
80 USHORT BackgroundColor
;
86 #endif /* _ASM_ARC_TYPES_H */