mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-12-22 14:26:30 +00:00
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2016 - 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 _RTL8821CU_IO_C_
|
|
|
|
#include <drv_types.h> /* PADAPTER and etc. */
|
|
|
|
void rtl8821cu_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
|
|
|
|
|
|
}
|