hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/******************************************************************************
 *
 * Copyright(c) 2019 - 2021 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _RTW_TRX_OPS_H_
#define _RTW_TRX_OPS_H_
#include <drv_types.h>
 
static inline s32 rtw_intf_init_xmit_priv(_adapter *adapter)
{
   return adapter_to_dvobj(adapter)->intf_ops->init_xmit_priv(adapter);
}
 
static inline void rtw_intf_free_xmit_priv(_adapter *adapter)
{
 
   adapter_to_dvobj(adapter)->intf_ops->free_xmit_priv(adapter);
}
static inline s32 rtw_intf_data_xmit(_adapter *adapter,
                   struct xmit_frame *pxmitframe)
{
   return adapter_to_dvobj(adapter)->intf_ops->data_xmit(adapter, pxmitframe);
}
 
static inline s32 rtw_intf_xmitframe_enqueue(_adapter *adapter,
                       struct xmit_frame *pxmitframe)
{
   u32 rtn;
 
   /* enqueue is not necessary, casuse phl use sw queue to save xmitframe */
   rtn = core_tx_call_phl(adapter, pxmitframe, NULL);
 
   if (rtn == FAIL)
       core_tx_free_xmitframe(adapter, pxmitframe);
 
   return rtn;
}
 
/************************ recv *******************/
static inline s32 rtw_intf_init_recv_priv(struct dvobj_priv *dvobj)
{
   return dvobj->intf_ops->init_recv_priv(dvobj);
}
static inline void rtw_intf_free_recv_priv(struct dvobj_priv *dvobj)
{
   return dvobj->intf_ops->free_recv_priv(dvobj);
}
 
struct lite_data_buf *rtw_alloc_litedatabuf(struct trx_data_buf_q *data_buf_q);
s32 rtw_free_litedatabuf(struct trx_data_buf_q *data_buf_q,
       struct lite_data_buf *lite_data_buf);
 
#endif /* _RTW_TRX_OPS_H_ */