net:wireless:Support eswin usb wifi ECR6600U
[platform/kernel/linux-starfive.git] / drivers / net / wireless / eswin / ipc_compat.h
1 /**
2  ****************************************************************************************
3  *
4  * @file ipc_compat.h
5  *
6  * Copyright (C) ESWIN 2015-2020
7  *
8  ****************************************************************************************
9  */
10
11 #ifndef _IPC_H_
12 #define _IPC_H_
13
14 #define __INLINE static __attribute__((__always_inline__)) inline
15
16 #define __ALIGN4 __aligned(4)
17
18 #define ASSERT_ERR(condition)                                                           \
19     do {                                                                                \
20         if (unlikely(!(condition))) {                                                   \
21             printk(DBG_PREFIX KERN_ERR "%s:%d:ASSERT_ERR(" #condition ")\n", __FILE__,  __LINE__); \
22         }                                                                               \
23     } while(0)
24
25 #endif /* _IPC_H_ */