diff options
Diffstat (limited to 'drivers/net/wireless/aic8800/aic8800_fdrv/ipc_compat.h')
-rwxr-xr-x | drivers/net/wireless/aic8800/aic8800_fdrv/ipc_compat.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/net/wireless/aic8800/aic8800_fdrv/ipc_compat.h b/drivers/net/wireless/aic8800/aic8800_fdrv/ipc_compat.h new file mode 100755 index 000000000000..ac9ad5179a71 --- /dev/null +++ b/drivers/net/wireless/aic8800/aic8800_fdrv/ipc_compat.h @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** + **************************************************************************************** + * + * @file ipc_compat.h + * + * Copyright (C) RivieraWaves 2011-2019 + * + **************************************************************************************** + */ + +#ifndef _IPC_H_ +#define _IPC_H_ + +#define __INLINE static __attribute__((__always_inline__)) inline + +#define __ALIGN4 __aligned(4) + +#define ASSERT_ERR(condition) \ + do { \ + if (unlikely(!(condition))) { \ + printk(KERN_ERR "%s:%d:ASSERT_ERR(" #condition ")\n", __FILE__, __LINE__); \ + } \ + } while(0) + +#endif /* _IPC_H_ */ |