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
/******************************************************************************
 *
 * 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 _HAL_USB_H_
#define _HAL_USB_H_
 
#ifdef CONFIG_USB_HCI
#define MAX_VENDOR_REQ_CMD_SIZE    254
 
void hal_usb_set_io_ops(struct rtw_hal_com_t *hal, struct hal_io_ops *ops);
 
#ifdef CONFIG_RTL8852A
#include "rtl8852a/rtl8852a.h"
#endif
 
#ifdef CONFIG_RTL8852B
#include "rtl8852b/rtl8852b.h"
#endif
 
#ifdef CONFIG_RTL8852C
#include "rtl8852c/rtl8852c.h"
#endif
 
static inline void hal_set_ops_usb(struct rtw_phl_com_t *phl_com,
                       struct hal_info_t *hal)
{
   #ifdef CONFIG_RTL8852A
   if (hal_get_chip_id(hal->hal_com) == CHIP_WIFI6_8852A) {
       hal_set_ops_8852au(phl_com, hal);
       hal_hook_trx_ops_8852au(hal);
   }
   #endif
 
   #ifdef CONFIG_RTL8852B
   if (hal_get_chip_id(hal->hal_com) == CHIP_WIFI6_8852B) {
       hal_set_ops_8852bu(phl_com, hal);
       hal_hook_trx_ops_8852bu(hal);
   }
   #endif
   #ifdef CONFIG_RTL8852C
   if (hal_get_chip_id(hal->hal_com) == CHIP_WIFI6_8852C) {
       hal_set_ops_8852cu(phl_com, hal);
       hal_hook_trx_ops_8852cu(hal);
   }
   #endif
 
}
#endif /*CONFIG_USB_HCI*/
#endif /* _HAL_USB_H_ */