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