Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / net / sk98lin / h / sktypes.h
blob40edc96e1055c8d9cca8141b4bcbdbde4566fccc
1 /******************************************************************************
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
9 ******************************************************************************/
11 /******************************************************************************
13 * (C)Copyright 1998-2002 SysKonnect GmbH.
14 * (C)Copyright 2002-2003 Marvell.
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.
21 * The information in this file is provided "AS IS" without warranty.
23 ******************************************************************************/
25 /******************************************************************************
27 * Description:
29 * In this file, all data types that are needed by the common modules
30 * are mapped to Linux data types.
33 * Include File Hierarchy:
36 ******************************************************************************/
38 #ifndef __INC_SKTYPES_H
39 #define __INC_SKTYPES_H
42 /* defines *******************************************************************/
45 * Data types with a specific size. 'I' = signed, 'U' = unsigned.
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
56 #define SK_UPTR ulong /* casting pointer <-> integral */
59 * Boolean type.
61 #define SK_BOOL SK_U8
62 #define SK_FALSE 0
63 #define SK_TRUE (!SK_FALSE)
65 /* typedefs *******************************************************************/
67 /* function prototypes ********************************************************/
69 #endif /* __INC_SKTYPES_H */