2010-05-17 22:18:00 +00:00
|
|
|
/*****************************************************************************\
|
|
|
|
* Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
|
|
|
|
* Copyright (C) 2007 The Regents of the University of California.
|
|
|
|
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
|
|
|
|
* Written by Brian Behlendorf <behlendorf1@llnl.gov>.
|
|
|
|
* UCRL-CODE-235197
|
|
|
|
*
|
|
|
|
* This file is part of the SPL, Solaris Porting Layer.
|
|
|
|
* For details, see <http://github.com/behlendorf/spl/>.
|
|
|
|
*
|
|
|
|
* The SPL is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* The SPL is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
\*****************************************************************************/
|
|
|
|
|
2008-02-28 00:52:31 +00:00
|
|
|
#ifndef _SPL_TYPES_H
|
|
|
|
#define _SPL_TYPES_H
|
2008-02-26 20:36:04 +00:00
|
|
|
|
2008-03-01 18:30:12 +00:00
|
|
|
#include <linux/types.h>
|
2008-03-04 18:22:31 +00:00
|
|
|
#include <sys/sysmacros.h>
|
2008-03-01 18:30:12 +00:00
|
|
|
|
2008-08-11 19:10:14 +00:00
|
|
|
#include <linux/uaccess_compat.h>
|
|
|
|
#include <linux/file_compat.h>
|
|
|
|
#include <linux/list_compat.h>
|
|
|
|
#include <linux/time_compat.h>
|
|
|
|
#include <linux/bitops_compat.h>
|
2009-02-02 23:12:30 +00:00
|
|
|
#include <linux/smp_compat.h>
|
2009-02-25 21:20:40 +00:00
|
|
|
#include <linux/kallsyms_compat.h>
|
2009-05-20 17:56:13 +00:00
|
|
|
#include <linux/mutex_compat.h>
|
2009-10-01 23:06:15 +00:00
|
|
|
#include <linux/module_compat.h>
|
2010-03-04 20:14:56 +00:00
|
|
|
#include <linux/sysctl_compat.h>
|
2010-06-11 21:37:46 +00:00
|
|
|
#include <linux/proc_compat.h>
|
2010-07-12 19:38:34 +00:00
|
|
|
#include <linux/math64_compat.h>
|
2011-04-20 21:22:35 +00:00
|
|
|
#include <linux/zlib_compat.h>
|
2012-11-02 22:29:44 +00:00
|
|
|
#include <linux/mm_compat.h>
|
|
|
|
#include <linux/delay.h>
|
2008-08-11 19:10:14 +00:00
|
|
|
|
2008-06-02 17:28:49 +00:00
|
|
|
#ifndef HAVE_UINTPTR_T
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef unsigned long uintptr_t;
|
2008-06-02 17:28:49 +00:00
|
|
|
#endif
|
|
|
|
|
2008-08-11 17:20:11 +00:00
|
|
|
#ifndef ULLONG_MAX
|
|
|
|
#define ULLONG_MAX (~0ULL)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LLONG_MAX
|
|
|
|
#define LLONG_MAX ((long long)(~0ULL>>1))
|
|
|
|
#endif
|
|
|
|
|
2008-06-02 17:28:49 +00:00
|
|
|
typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef unsigned long intptr_t;
|
|
|
|
typedef unsigned long ulong_t;
|
|
|
|
typedef unsigned int uint_t;
|
|
|
|
typedef unsigned char uchar_t;
|
|
|
|
typedef unsigned long long u_longlong_t;
|
|
|
|
typedef unsigned long long u_offset_t;
|
|
|
|
typedef unsigned long long rlim64_t;
|
|
|
|
typedef long long longlong_t;
|
|
|
|
typedef long long offset_t;
|
2008-02-27 00:59:48 +00:00
|
|
|
typedef struct task_struct kthread_t;
|
2010-06-11 21:37:46 +00:00
|
|
|
typedef struct task_struct proc_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef struct vmem { } vmem_t;
|
|
|
|
typedef short pri_t;
|
2008-03-01 18:30:12 +00:00
|
|
|
typedef struct timespec timestruc_t; /* definition per SVr4 */
|
2008-03-14 19:04:41 +00:00
|
|
|
typedef struct timespec timespec_t;
|
2008-03-01 18:30:12 +00:00
|
|
|
typedef longlong_t hrtime_t;
|
2008-03-05 00:58:54 +00:00
|
|
|
typedef unsigned short ushort_t;
|
|
|
|
typedef u_longlong_t len_t;
|
|
|
|
typedef longlong_t diskaddr_t;
|
|
|
|
typedef ushort_t o_mode_t;
|
2008-03-13 19:49:09 +00:00
|
|
|
typedef uint_t major_t;
|
|
|
|
typedef uint_t minor_t;
|
2009-01-06 00:14:38 +00:00
|
|
|
typedef ulong_t pfn_t;
|
|
|
|
typedef ulong_t pgcnt_t;
|
|
|
|
typedef long spgcnt_t;
|
2010-05-14 16:42:53 +00:00
|
|
|
typedef short index_t;
|
2010-06-11 21:57:49 +00:00
|
|
|
typedef int id_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
|
2010-06-11 21:37:46 +00:00
|
|
|
extern proc_t p0;
|
|
|
|
|
2008-02-28 00:52:31 +00:00
|
|
|
#endif /* _SPL_TYPES_H */
|