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