162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 262306a36Sopenharmony_ci/* Copyright(c) 2018-2019 Realtek Corporation 362306a36Sopenharmony_ci */ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <linux/module.h> 662306a36Sopenharmony_ci#include <linux/usb.h> 762306a36Sopenharmony_ci#include "main.h" 862306a36Sopenharmony_ci#include "rtw8821c.h" 962306a36Sopenharmony_ci#include "usb.h" 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistatic const struct usb_device_id rtw_8821cu_id_table[] = { 1262306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0x2006, 0xff, 0xff, 0xff), 1362306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 1462306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0x8731, 0xff, 0xff, 0xff), 1562306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 1662306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0x8811, 0xff, 0xff, 0xff), 1762306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 1862306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xb820, 0xff, 0xff, 0xff), 1962306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 2062306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xb82b, 0xff, 0xff, 0xff), 2162306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 2262306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc80c, 0xff, 0xff, 0xff), 2362306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 2462306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc811, 0xff, 0xff, 0xff), 2562306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 2662306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc820, 0xff, 0xff, 0xff), 2762306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 2862306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc821, 0xff, 0xff, 0xff), 2962306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 3062306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82a, 0xff, 0xff, 0xff), 3162306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 3262306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82b, 0xff, 0xff, 0xff), 3362306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 3462306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82c, 0xff, 0xff, 0xff), 3562306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, 3662306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x331d, 0xff, 0xff, 0xff), 3762306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, /* D-Link */ 3862306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xc811, 0xff, 0xff, 0xff), 3962306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, /* Edimax */ 4062306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xd811, 0xff, 0xff, 0xff), 4162306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8821c_hw_spec) }, /* Edimax */ 4262306a36Sopenharmony_ci {}, 4362306a36Sopenharmony_ci}; 4462306a36Sopenharmony_ciMODULE_DEVICE_TABLE(usb, rtw_8821cu_id_table); 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_cistatic int rtw_8821cu_probe(struct usb_interface *intf, 4762306a36Sopenharmony_ci const struct usb_device_id *id) 4862306a36Sopenharmony_ci{ 4962306a36Sopenharmony_ci return rtw_usb_probe(intf, id); 5062306a36Sopenharmony_ci} 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_cistatic struct usb_driver rtw_8821cu_driver = { 5362306a36Sopenharmony_ci .name = "rtw_8821cu", 5462306a36Sopenharmony_ci .id_table = rtw_8821cu_id_table, 5562306a36Sopenharmony_ci .probe = rtw_8821cu_probe, 5662306a36Sopenharmony_ci .disconnect = rtw_usb_disconnect, 5762306a36Sopenharmony_ci}; 5862306a36Sopenharmony_cimodule_usb_driver(rtw_8821cu_driver); 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ciMODULE_AUTHOR("Hans Ulli Kroll <linux@ulli-kroll.de>"); 6162306a36Sopenharmony_ciMODULE_DESCRIPTION("Realtek 802.11ac wireless 8821cu driver"); 6262306a36Sopenharmony_ciMODULE_LICENSE("Dual BSD/GPL"); 63