PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 9ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/staging/rtl8712/basic_types.h

https://bitbucket.org/slukk/jb-tsm-kernel-4.2
C Header | 23 lines | 12 code | 7 blank | 4 comment | 0 complexity | 7103c659e5cf49e2cbdd3f95d9563035 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1#ifndef __BASIC_TYPES_H__
 2#define __BASIC_TYPES_H__
 3
 4#define SUCCESS	0
 5#define FAIL	(-1)
 6
 7#include <linux/types.h>
 8
 9#define SIZE_T __kernel_size_t
10#define sint signed int
11#define FIELD_OFFSET(s, field)	((addr_t)&((s *)(0))->field)
12
13/* Should we extend this to be host_addr_t and target_addr_t for case:
14 *	host : x86_64
15 *	target : mips64
16 */
17#define addr_t unsigned long
18
19#define MEM_ALIGNMENT_OFFSET	(sizeof(SIZE_T))
20#define MEM_ALIGNMENT_PADDING	(sizeof(SIZE_T) - 1)
21
22#endif /*__BASIC_TYPES_H__*/
23