1*90aac0d8SBjoern A. Zeeb // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2*90aac0d8SBjoern A. Zeeb /* Copyright(c) 2018-2019 Realtek Corporation
3*90aac0d8SBjoern A. Zeeb */
4*90aac0d8SBjoern A. Zeeb
5*90aac0d8SBjoern A. Zeeb #include <linux/module.h>
6*90aac0d8SBjoern A. Zeeb #include <linux/usb.h>
7*90aac0d8SBjoern A. Zeeb #include "main.h"
8*90aac0d8SBjoern A. Zeeb #include "rtw8723d.h"
9*90aac0d8SBjoern A. Zeeb #include "usb.h"
10*90aac0d8SBjoern A. Zeeb
11*90aac0d8SBjoern A. Zeeb static const struct usb_device_id rtw_8723du_id_table[] = {
12*90aac0d8SBjoern A. Zeeb { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd723, 0xff, 0xff, 0xff),
13*90aac0d8SBjoern A. Zeeb .driver_info = (kernel_ulong_t)&(rtw8723d_hw_spec) }, /* 8723DU 1*1 */
14*90aac0d8SBjoern A. Zeeb { USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xd611, 0xff, 0xff, 0xff),
15*90aac0d8SBjoern A. Zeeb .driver_info = (kernel_ulong_t)&(rtw8723d_hw_spec) }, /* Edimax EW-7611ULB V2 */
16*90aac0d8SBjoern A. Zeeb { },
17*90aac0d8SBjoern A. Zeeb };
18*90aac0d8SBjoern A. Zeeb MODULE_DEVICE_TABLE(usb, rtw_8723du_id_table);
19*90aac0d8SBjoern A. Zeeb
rtw8723du_probe(struct usb_interface * intf,const struct usb_device_id * id)20*90aac0d8SBjoern A. Zeeb static int rtw8723du_probe(struct usb_interface *intf,
21*90aac0d8SBjoern A. Zeeb const struct usb_device_id *id)
22*90aac0d8SBjoern A. Zeeb {
23*90aac0d8SBjoern A. Zeeb return rtw_usb_probe(intf, id);
24*90aac0d8SBjoern A. Zeeb }
25*90aac0d8SBjoern A. Zeeb
26*90aac0d8SBjoern A. Zeeb static struct usb_driver rtw_8723du_driver = {
27*90aac0d8SBjoern A. Zeeb .name = "rtw_8723du",
28*90aac0d8SBjoern A. Zeeb .id_table = rtw_8723du_id_table,
29*90aac0d8SBjoern A. Zeeb .probe = rtw8723du_probe,
30*90aac0d8SBjoern A. Zeeb .disconnect = rtw_usb_disconnect,
31*90aac0d8SBjoern A. Zeeb #if defined(__FreeBSD__) && defined(__notyet__)
32*90aac0d8SBjoern A. Zeeb .bsddriver.name = KBUILD_MODNAME,
33*90aac0d8SBjoern A. Zeeb #endif
34*90aac0d8SBjoern A. Zeeb };
35*90aac0d8SBjoern A. Zeeb module_usb_driver(rtw_8723du_driver);
36*90aac0d8SBjoern A. Zeeb
37*90aac0d8SBjoern A. Zeeb MODULE_AUTHOR("Hans Ulli Kroll <linux@ulli-kroll.de>");
38*90aac0d8SBjoern A. Zeeb MODULE_DESCRIPTION("Realtek 802.11n wireless 8723du driver");
39*90aac0d8SBjoern A. Zeeb MODULE_LICENSE("Dual BSD/GPL");
40