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
12 #include <linux/config.h>
18 typedef long LARGE_INTEGER __attribute__ ((__mode__ (__DI__)));
19 typedef long LONG __attribute__ ((__mode__ (__SI__)));
20 typedef unsigned char UCHAR;
21 typedef unsigned short USHORT;
22 typedef unsigned long ULONG __attribute__ ((__mode__ (__SI__)));
25 /* The pointer types. Note that we're using a 64-bit compiler but all
26 pointer in the ARC structures are only 32-bit, so we need some disgusting
27 workarounds. Keep your vomit bag handy. */
30 typedef LONG _PLARGE_INTEGER;
33 typedef LONG _PUSHORT;
37 #endif /* CONFIG_ARC32 */
43 typedef long LARGE_INTEGER __attribute__ ((__mode__ (__DI__)));
44 typedef long LONG __attribute__ ((__mode__ (__DI__)));
45 typedef unsigned char UCHAR;
46 typedef unsigned short USHORT;
47 typedef unsigned long ULONG __attribute__ ((__mode__ (__DI__)));
50 /* The pointer types. We're 64-bit and the firmware is also 64-bit, so
53 typedef SHORT *_PSHORT;
54 typedef LARGE_INTEGER *_PLARGE_INTEGER;
56 typedef UCHAR *_PUCHAR;
57 typedef USHORT *_PUSHORT;
58 typedef ULONG *_PULONG;
61 #endif /* CONFIG_ARC64 */
64 typedef SHORT *PSHORT;
65 typedef LARGE_INTEGER *PLARGE_INTEGER;
67 typedef UCHAR *PUCHAR;
68 typedef USHORT *PUSHORT;
69 typedef ULONG *PULONG;
73 * Return type of ArcGetDisplayStatus()
76 USHORT CursorXPosition;
77 USHORT CursorYPosition;
78 USHORT CursorMaxXPosition;
79 USHORT CursorMaxYPosition;
80 USHORT ForegroundColor;
81 USHORT BackgroundColor;
87 #endif /* _ASM_ARC_TYPES_H */