2022-06-08 23:46:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#ifndef __ODM_TYPES_H__
|
|
|
|
#define __ODM_TYPES_H__
|
|
|
|
|
2022-06-08 23:46:35 +00:00
|
|
|
#define ODM_CE 0x04 /* BIT(2) */
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-07-26 20:25:06 +00:00
|
|
|
enum HAL_STATUS {
|
2013-05-08 21:45:39 +00:00
|
|
|
HAL_STATUS_SUCCESS,
|
|
|
|
HAL_STATUS_FAILURE,
|
2013-07-26 20:25:06 +00:00
|
|
|
};
|
|
|
|
|
2022-06-08 23:46:35 +00:00
|
|
|
#define SET_TX_DESC_ANTSEL_A_88E(__ptxdesc, __value) \
|
|
|
|
le32p_replace_bits((__le32 *)(__ptxdesc + 8), __value, BIT(24))
|
|
|
|
#define SET_TX_DESC_ANTSEL_B_88E(__ptxdesc, __value) \
|
|
|
|
le32p_replace_bits((__le32 *)(__ptxdesc + 8), __value, BIT(25))
|
|
|
|
#define SET_TX_DESC_ANTSEL_C_88E(__ptxdesc, __value) \
|
|
|
|
le32p_replace_bits((__le32 *)(__ptxdesc + 28), __value, BIT(29))
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
#endif /* __ODM_TYPES_H__ */
|