]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/net/sk98lin/h/sktypes.h
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / drivers / net / sk98lin / h / sktypes.h
1 /******************************************************************************
2  *
3  * Name:        sktypes.h
4  * Project:     GEnesis, PCI Gigabit Ethernet Adapter
5  * Version:     $Revision: 1.3 $
6  * Date:        $Date: 2003/02/25 14:16:40 $
7  * Purpose:     Define data types for Linux
8  *
9  ******************************************************************************/
10
11 /******************************************************************************
12  *
13  *      (C)Copyright 1998-2003 SysKonnect GmbH.
14  *
15  *      This program is free software; you can redistribute it and/or modify
16  *      it under the terms of the GNU General Public License as published by
17  *      the Free Software Foundation; either version 2 of the License, or
18  *      (at your option) any later version.
19  *
20  *      The information in this file is provided "AS IS" without warranty.
21  *
22  ******************************************************************************/
23
24  /*****************************************************************************
25  *
26  * History:
27  *
28  *      $Log: sktypes.h,v $
29  *      Revision 1.3  2003/02/25 14:16:40  mlindner
30  *      Fix: Copyright statement
31  *
32  *      Revision 1.2  1999/11/22 14:01:58  cgoos
33  *      Changed license header to GPL.
34  *      Now using Linux' fixed size types instead of standard types.
35  *
36  *      Revision 1.1  1999/02/16 07:41:40  cgoos
37  *      First version.
38  *
39  *
40  *
41  *****************************************************************************/
42
43 /******************************************************************************
44  *
45  * Description:
46  *
47  * In this file, all data types that are needed by the common modules
48  * are mapped to Linux data types.
49  *
50  *
51  * Include File Hierarchy:
52  *
53  *
54  ******************************************************************************/
55
56 #ifndef __INC_SKTYPES_H
57 #define __INC_SKTYPES_H
58
59
60 /* defines *******************************************************************/
61
62 /*
63  * Data types with a specific size. 'I' = signed, 'U' = unsigned.
64  */
65 #define SK_I8   s8
66 #define SK_U8   u8
67 #define SK_I16  s16
68 #define SK_U16  u16
69 #define SK_I32  s32
70 #define SK_U32  u32
71 #define SK_I64  s64
72 #define SK_U64  u64
73
74 #define SK_UPTR ulong           /* casting pointer <-> integral */
75
76 /*
77 * Boolean type.
78 */
79 #define SK_BOOL         SK_U8
80 #define SK_FALSE        0
81 #define SK_TRUE         (!SK_FALSE)
82
83 /* typedefs *******************************************************************/
84
85 /* function prototypes ********************************************************/
86
87 #endif  /* __INC_SKTYPES_H */