1 /****************************************************************************
2 * Copyright 2002-2005: Level 5 Networks Inc.
3 * Copyright 2005-2008: Solarflare Communications Inc,
4 * 9501 Jeronimo Road, Suite 250,
5 * Irvine, CA 92618, USA
7 * Maintained by Solarflare Communications
8 * <linux-xen-drivers@solarflare.com>
9 * <onload-dev@solarflare.com>
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 2 as published
13 * by the Free Software Foundation, incorporated herein by reference.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 ****************************************************************************
25 /*! \cidoxg_include_ci_compat */
27 #ifndef __CI_COMPAT_PRIMITIVE_H__
28 #define __CI_COMPAT_PRIMITIVE_H__
31 /**********************************************************************
35 typedef unsigned char ci_uint8;
38 typedef unsigned short ci_uint16;
39 typedef short ci_int16;
41 typedef unsigned int ci_uint32;
44 /* 64-bit support is platform dependent. */
47 /**********************************************************************
51 typedef ci_uint8 ci_octet;
59 /**********************************************************************
60 * Some nice types you'd always assumed were standards.
61 * (Really, they are SYSV "standards".)
65 typedef unsigned long ulong;
66 typedef unsigned int uint;
67 typedef char* caddr_t;
68 #elif defined(__linux__) && defined(__KERNEL__)
69 #include <linux/types.h>
70 #elif defined(__linux__)
71 #include <sys/types.h>
75 #endif /* __CI_COMPAT_PRIMITIVE_H__ */