1 /******************************************************************************
2  *
3  * Name:	sktypes.h
4  * Project:	GEnesis, PCI Gigabit Ethernet Adapter
5  * Purpose:	Define data types for Linux
6  *
7  ******************************************************************************/
8 
9 /******************************************************************************
10  *
11  *	(C)Copyright 1998-2002 SysKonnect GmbH.
12  *	(C)Copyright 2002-2003 Marvell.
13  *
14  *	This program is free software; you can redistribute it and/or modify
15  *	it under the terms of the GNU General Public License as published by
16  *	the Free Software Foundation; either version 2 of the License, or
17  *	(at your option) any later version.
18  *
19  *	The information in this file is provided "AS IS" without warranty.
20  *
21  ******************************************************************************/
22 
23 /******************************************************************************
24  *
25  * Description:
26  *
27  * In this file, all data types that are needed by the common modules
28  * are mapped to Linux data types.
29  *
30  *
31  * Include File Hierarchy:
32  *
33  *
34  ******************************************************************************/
35 
36 #ifndef __INC_SKTYPES_H
37 #define __INC_SKTYPES_H
38 
39 
40 /* defines *******************************************************************/
41 
42 /*
43  * Data types with a specific size. 'I' = signed, 'U' = unsigned.
44  */
45 #define SK_I8	s8
46 #define SK_U8	u8
47 #define SK_I16	s16
48 #define SK_U16	u16
49 #define SK_I32	s32
50 #define SK_U32	u32
51 #define SK_I64	s64
52 #define SK_U64	u64
53 
54 #define SK_UPTR	ulong		/* casting pointer <-> integral */
55 
56 /*
57 * Boolean type.
58 */
59 #define SK_BOOL		SK_U8
60 #define SK_FALSE	0
61 #define SK_TRUE		(!SK_FALSE)
62 
63 /* typedefs *******************************************************************/
64 
65 /* function prototypes ********************************************************/
66 
67 #endif	/* __INC_SKTYPES_H */
68