1#ifndef __VSF_LINUX_TYPES_H__
2#define __VSF_LINUX_TYPES_H__
21# define __packed VSF_CAL_PACKED
24# define __aligned(n) VSF_CAL_ALIGN(n)
33#define EXPORT_SYMBOL_GPL(__SYMBOL)
35#define MSEC_PER_SEC 1000L
36#define USEC_PER_MSEC 1000L
37#define NSEC_PER_USEC 1000L
38#define NSEC_PER_MSEC 1000000L
39#define USEC_PER_SEC 1000000L
40#define NSEC_PER_SEC 1000000000L
42#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \
44 struct { MEMBERS } ATTRS; \
45 struct TAG { MEMBERS } ATTRS NAME; \
47#define struct_group(NAME, MEMBERS...) \
48 __struct_group(, NAME, , MEMBERS)
84#ifndef VSF_ARCH_PHYS_ADDR_T
89#ifndef VSF_ARCH_DMA_ADDR_T
103#define ARRAY_SIZE(__ARR) dimof(__ARR)
106#define roundup(__x, __y) ({ \
107 (((__x) + ((__y) - 1)) / (__y)) * (__y); \
110#define rounddown(__x, __y) ({ \
111 (__x) - ((__x) % (__y)); \
114#define round_up(__x, __y) ((((__x) - 1) | ((__y) - 1)) + 1)
uint_fast8_t uintalu_t
Definition type.h:88
off_t __kernel_off_t
Definition types.h:78
int8_t __s8
Definition types.h:50
__u8 u8
Definition types.h:69
__s32 s32
Definition types.h:74
__s16 s16
Definition types.h:72
__u64 u64
Definition types.h:75
uintalu_t dma_addr_t
Definition types.h:90
__u64 __le64
Definition types.h:63
__u16 __be16
Definition types.h:60
__u16 __le16
Definition types.h:59
int32_t __s32
Definition types.h:54
uint32_t __u32
Definition types.h:55
__u32 u32
Definition types.h:73
int64_t __s64
Definition types.h:56
__u16 u16
Definition types.h:71
__u32 __be32
Definition types.h:62
__s64 s64
Definition types.h:76
__u16 __sum16
Definition types.h:66
uint8_t __u8
Definition types.h:51
int16_t __s16
Definition types.h:52
uintalu_t phys_addr_t
Definition types.h:85
uint16_t __u16
Definition types.h:53
uint64_t __u64
Definition types.h:57
unsigned int slab_flags_t
Definition types.h:81
__u32 __wsum
Definition types.h:67
pid_t __kernel_pid_t
Definition types.h:79
__u32 __le32
Definition types.h:61
__u64 __be64
Definition types.h:64
__s8 s8
Definition types.h:70
unsigned int fmode_t
Definition types.h:82
int pid_t
Definition types.h:85
long off_t
Definition types.h:95
unsigned short uint16_t
Definition stdint.h:7
unsigned uint32_t
Definition stdint.h:9
int int32_t
Definition stdint.h:8
long long int64_t
Definition stdint.h:10
short int16_t
Definition stdint.h:6
unsigned long long uint64_t
Definition stdint.h:11
unsigned char uint8_t
Definition stdint.h:5
signed char int8_t
Definition stdint.h:4
struct hlist_node * first
Definition types.h:96
struct hlist_node ** pprev
Definition types.h:100
struct hlist_node * next
Definition types.h:100