types.h revision 228443
116843Sserb/*-
216843Sserb * Copyright (c) 2010 Isilon Systems, Inc.
316843Sserb * Copyright (c) 2010 iX Systems, Inc.
416843Sserb * Copyright (c) 2010 Panasas, Inc.
516843Sserb * All rights reserved.
616843Sserb *
716843Sserb * Redistribution and use in source and binary forms, with or without
816843Sserb * modification, are permitted provided that the following conditions
916843Sserb * are met:
1016843Sserb * 1. Redistributions of source code must retain the above copyright
1116843Sserb *    notice unmodified, this list of conditions, and the following
1216843Sserb *    disclaimer.
1316843Sserb * 2. Redistributions in binary form must reproduce the above copyright
1416843Sserb *    notice, this list of conditions and the following disclaimer in the
1516843Sserb *    documentation and/or other materials provided with the distribution.
1616843Sserb *
1716843Sserb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1816843Sserb * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1916843Sserb * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2016843Sserb * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2116843Sserb * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2216843Sserb * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2316843Sserb * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2416843Sserb * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
250SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2616843Sserb * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2716843Sserb */
2816843Sserb#ifndef	_LINUX_TYPES_H_
2916843Sserb#define	_LINUX_TYPES_H_
3016843Sserb
3116843Sserb#include <sys/cdefs.h>
3216843Sserb#include <sys/types.h>
3316843Sserb#include <linux/compiler.h>
3416843Sserb#include <asm/types.h>
3516843Sserb
3616843Sserbtypedef __u16 __le16;
3716843Sserbtypedef __u16 __be16;
3816843Sserbtypedef __u32 __le32;
3916843Sserbtypedef __u32 __be32;
4017110Sserbtypedef __u64 __le64;
4116843Sserbtypedef __u64 __be64;
4216843Sserb#ifndef __bool_true_false_are_defined
4316843Sserbtypedef _Bool bool;
4416843Sserb#define	true	TRUE
4516843Sserb#define	false	FALSE
4616843Sserb#endif
4716843Sserb
4816843Sserbtypedef unsigned long kernel_ulong_t;
4916843Sserbtypedef unsigned int    uint;
5016843Sserbtypedef unsigned gfp_t;
5117110Sserbtypedef uint64_t loff_t;
5216843Sserbtypedef vm_paddr_t resource_size_t;
5316843Sserb
5416843Sserb#define	DECLARE_BITMAP(n, bits)						\
5516843Sserb	unsigned long n[howmany(bits, sizeof(long) * 8)]
5616843Sserb
5716843Sserb#endif	/* _LINUX_TYPES_H_ */
5816843Sserb