hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
64
65
66
67
68
69
70
71
/******************************************************************************
 *
 * Copyright(c) 2019 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_H_
#define _RTW_TRX_H_
 
struct dvobj_priv;
struct rtw_intf_ops {
   #ifdef CONFIG_SDIO_HCI
   int __must_check (*read)(struct dvobj_priv *d, unsigned int addr, void *buf,
               size_t len, bool fixed);
   int __must_check (*write)(struct dvobj_priv *d, unsigned int addr, void *buf,
                size_t len, bool fixed);
   #endif /*CONFIG_SDIO_HCI*/
 
   /*** xmit section ***/
   s32(*init_xmit_priv)(_adapter *adapter);
   void(*free_xmit_priv)(_adapter *adapter);
 
   s32(*data_xmit)(_adapter *adapter, struct xmit_frame *pxmitframe);
   s32(*xmitframe_enqueue)(_adapter *adapter, struct xmit_frame *pxmitframe);
 
   #if 0 /*def CONFIG_XMIT_THREAD_MODE*/
   s32(*xmit_buf_handler)(_adapter *adapter);
   #endif
   #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
   #ifndef CONFIG_SDIO_TX_TASKLET
   u8(*start_xmit_frame_thread)(_adapter *adapter);
   void(*cancel_xmit_frame_thread)(_adapter *adapter);
   #endif
   #endif
   /*** recv section ***/
   s32(*init_recv_priv)(struct dvobj_priv *dvobj);
   void(*free_recv_priv)(struct dvobj_priv *dvobj);
   #ifdef CONFIG_RECV_THREAD_MODE
   s32 (*recv_hdl)(_adapter *adapter);
   #endif
 
   #if defined(CONFIG_PCI_HCI)
   u32(*trxbd_init)(_adapter *adapter);
   u32(*trxbd_deinit)(_adapter *adapter);
   void(*trxbd_reset)(_adapter *adapter);
   s32(*interrupt_handler)(_adapter *adapter);
   #endif
 
   #if defined(CONFIG_USB_HCI)
   #ifdef CONFIG_SUPPORT_USB_INT
   void(*interrupt_handler)(_adapter *adapter, u16 pkt_len, u8 *pbuf);
   #endif
   #endif
 
   #ifdef CONFIG_HOSTAPD_MLME
   s32(*hostap_mgnt_xmit_entry)(_adapter *adapter, struct sk_buff *pkt);
   #endif
};
 
s32 rtw_mgnt_xmit(_adapter *adapter, struct xmit_frame *pmgntframe);
 
 
#endif /* _RTW_TRX_H_ */