1*07cef03bSSascha Hauer // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2*07cef03bSSascha Hauer /* Copyright(c) 2018-2019 Realtek Corporation
3*07cef03bSSascha Hauer */
4*07cef03bSSascha Hauer
5*07cef03bSSascha Hauer #include <linux/module.h>
6*07cef03bSSascha Hauer #include <linux/usb.h>
7*07cef03bSSascha Hauer #include "main.h"
8*07cef03bSSascha Hauer #include "rtw8822c.h"
9*07cef03bSSascha Hauer #include "usb.h"
10*07cef03bSSascha Hauer
11*07cef03bSSascha Hauer static const struct usb_device_id rtw_8822cu_id_table[] = {
12*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82c, 0xff, 0xff, 0xff),
13*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) },
14*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc812, 0xff, 0xff, 0xff),
15*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) },
16*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82e, 0xff, 0xff, 0xff),
17*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) },
18*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd820, 0xff, 0xff, 0xff),
19*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) },
20*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd82b, 0xff, 0xff, 0xff),
21*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) },
22*07cef03bSSascha Hauer { USB_DEVICE_AND_INTERFACE_INFO(0x13b1, 0x0043, 0xff, 0xff, 0xff),
23*07cef03bSSascha Hauer .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, /* Alpha - Alpha */
24*07cef03bSSascha Hauer {},
25*07cef03bSSascha Hauer };
26*07cef03bSSascha Hauer MODULE_DEVICE_TABLE(usb, rtw_8822cu_id_table);
27*07cef03bSSascha Hauer
rtw8822bu_probe(struct usb_interface * intf,const struct usb_device_id * id)28*07cef03bSSascha Hauer static int rtw8822bu_probe(struct usb_interface *intf,
29*07cef03bSSascha Hauer const struct usb_device_id *id)
30*07cef03bSSascha Hauer {
31*07cef03bSSascha Hauer return rtw_usb_probe(intf, id);
32*07cef03bSSascha Hauer }
33*07cef03bSSascha Hauer
34*07cef03bSSascha Hauer static struct usb_driver rtw_8822cu_driver = {
35*07cef03bSSascha Hauer .name = "rtw_8822cu",
36*07cef03bSSascha Hauer .id_table = rtw_8822cu_id_table,
37*07cef03bSSascha Hauer .probe = rtw8822bu_probe,
38*07cef03bSSascha Hauer .disconnect = rtw_usb_disconnect,
39*07cef03bSSascha Hauer };
40*07cef03bSSascha Hauer module_usb_driver(rtw_8822cu_driver);
41*07cef03bSSascha Hauer
42*07cef03bSSascha Hauer MODULE_AUTHOR("Realtek Corporation");
43*07cef03bSSascha Hauer MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822cu driver");
44*07cef03bSSascha Hauer MODULE_LICENSE("Dual BSD/GPL");
45