Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / rtl8712 / basic_types.h
bloba0538a8a670310279a63c73fd6f963e3851df474
1 #ifndef __BASIC_TYPES_H__
2 #define __BASIC_TYPES_H__
4 #define SUCCESS 0
5 #define FAIL (-1)
7 #include <linux/types.h>
9 #define SIZE_T __kernel_size_t
10 #define sint signed int
11 #define FIELD_OFFSET(s, field) ((addr_t)&((s *)(0))->field)
13 /* Should we extend this to be host_addr_t and target_addr_t for case:
14 * host : x86_64
15 * target : mips64
17 #define addr_t unsigned long
19 #define MEM_ALIGNMENT_OFFSET (sizeof(SIZE_T))
20 #define MEM_ALIGNMENT_PADDING (sizeof(SIZE_T) - 1)
22 #endif /*__BASIC_TYPES_H__*/