hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
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
/******************************************************************************
 *
 * Copyright(c) 2015 - 2017 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.
 *
 *****************************************************************************/
#define _RTL8822BU_IO_C_
 
#include <drv_types.h>        /* PADAPTER and etc. */
 
void rtl8822bu_set_intf_ops(struct _io_ops *pops)
{
 
   _rtw_memset((u8 *)pops, 0, sizeof(struct _io_ops));
 
   pops->_read8 = &usb_read8;
   pops->_read16 = &usb_read16;
   pops->_read32 = &usb_read32;
   pops->_read_mem = &usb_read_mem;
   pops->_read_port = &usb_read_port;
 
   pops->_write8 = &usb_write8;
   pops->_write16 = &usb_write16;
   pops->_write32 = &usb_write32;
   pops->_writeN = &usb_writeN;
 
#ifdef CONFIG_USB_SUPPORT_ASYNC_VDN_REQ
   pops->_write8_async = &usb_async_write8;
   pops->_write16_async = &usb_async_write16;
   pops->_write32_async = &usb_async_write32;
#endif
   pops->_write_mem = &usb_write_mem;
   pops->_write_port = &usb_write_port;
 
   pops->_read_port_cancel = &usb_read_port_cancel;
   pops->_write_port_cancel = &usb_write_port_cancel;
 
#ifdef CONFIG_USB_INTERRUPT_IN_PIPE
   pops->_read_interrupt = &usb_read_interrupt;
#endif
 
 
}