diff options
author | Michal Marek | 2010-12-14 22:01:55 +0100 |
---|---|---|
committer | Michal Marek | 2010-12-14 22:01:55 +0100 |
commit | 8990c1bc4be46473ad19bf2fa612ca57286f3df4 (patch) | |
tree | 3cea60576903a1d26c67e6ec62891b524d390e95 /drivers/staging/rtl8712/basic_types.h | |
parent | headers_install: check exit status of unifdef (diff) | |
parent | Linux 2.6.37-rc1 (diff) | |
download | kernel-qcow2-linux-8990c1bc4be46473ad19bf2fa612ca57286f3df4.tar.gz kernel-qcow2-linux-8990c1bc4be46473ad19bf2fa612ca57286f3df4.tar.xz kernel-qcow2-linux-8990c1bc4be46473ad19bf2fa612ca57286f3df4.zip |
Merge commit 'v2.6.37-rc1' into kbuild/kbuild
Diffstat (limited to 'drivers/staging/rtl8712/basic_types.h')
-rw-r--r-- | drivers/staging/rtl8712/basic_types.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/basic_types.h b/drivers/staging/rtl8712/basic_types.h new file mode 100644 index 000000000000..a0538a8a6703 --- /dev/null +++ b/drivers/staging/rtl8712/basic_types.h @@ -0,0 +1,23 @@ +#ifndef __BASIC_TYPES_H__ +#define __BASIC_TYPES_H__ + +#define SUCCESS 0 +#define FAIL (-1) + +#include <linux/types.h> + +#define SIZE_T __kernel_size_t +#define sint signed int +#define FIELD_OFFSET(s, field) ((addr_t)&((s *)(0))->field) + +/* Should we extend this to be host_addr_t and target_addr_t for case: + * host : x86_64 + * target : mips64 + */ +#define addr_t unsigned long + +#define MEM_ALIGNMENT_OFFSET (sizeof(SIZE_T)) +#define MEM_ALIGNMENT_PADDING (sizeof(SIZE_T) - 1) + +#endif /*__BASIC_TYPES_H__*/ + |