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
/******************************************************************************
 *
 * 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 _PHL_TRX_DEF_USB_H_
#define _PHL_TRX_DEF_USB_H_
 
/* Release report related format */
#define WP_TID_INDIC_RESERVED_BIT BIT(14)
#define WP_RESERVED_SEQ 0xFFF
#define WP_MAX_SEQ_NUMBER WP_RESERVED_SEQ
#define TX_STATUS_TX_DONE 0
#define TX_STATUS_TX_FAIL_REACH_RTY_LMT 1
#define TX_STATUS_TX_FAIL_LIFETIME_DROP 2
#define TX_STATUS_TX_FAIL_MACID_DROP 3
#define TX_STATUS_TX_FAIL_SW_DROP 4
 
/* for tx */
struct phl_usb_buf {
   _os_list list;
   u8 *buffer;
   u32 buf_len;
   u8 type;
};
 
 
/* for rx */
struct rtw_rx_buf {
   _os_list list;
   u8 *buffer;
   u32 buf_len;
   u32 transfer_len;
   u8 pipe_idx;
 
   _os_lock lock;    // using phl_queue??
   int pktcnt;        // for usb aggregation
   void *os_priv;
};
 
#endif    /* _PHL_TRX_DEF_USB_H_ */