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 "rtw8822c.h" 962306a36Sopenharmony_ci#include "usb.h" 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistatic const struct usb_device_id rtw_8822cu_id_table[] = { 1262306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82c, 0xff, 0xff, 0xff), 1362306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, 1462306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc812, 0xff, 0xff, 0xff), 1562306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, 1662306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xc82e, 0xff, 0xff, 0xff), 1762306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, 1862306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd820, 0xff, 0xff, 0xff), 1962306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, 2062306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(RTW_USB_VENDOR_ID_REALTEK, 0xd82b, 0xff, 0xff, 0xff), 2162306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, 2262306a36Sopenharmony_ci { USB_DEVICE_AND_INTERFACE_INFO(0x13b1, 0x0043, 0xff, 0xff, 0xff), 2362306a36Sopenharmony_ci .driver_info = (kernel_ulong_t)&(rtw8822c_hw_spec) }, /* Alpha - Alpha */ 2462306a36Sopenharmony_ci {}, 2562306a36Sopenharmony_ci}; 2662306a36Sopenharmony_ciMODULE_DEVICE_TABLE(usb, rtw_8822cu_id_table); 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_cistatic int rtw8822bu_probe(struct usb_interface *intf, 2962306a36Sopenharmony_ci const struct usb_device_id *id) 3062306a36Sopenharmony_ci{ 3162306a36Sopenharmony_ci return rtw_usb_probe(intf, id); 3262306a36Sopenharmony_ci} 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_cistatic struct usb_driver rtw_8822cu_driver = { 3562306a36Sopenharmony_ci .name = "rtw_8822cu", 3662306a36Sopenharmony_ci .id_table = rtw_8822cu_id_table, 3762306a36Sopenharmony_ci .probe = rtw8822bu_probe, 3862306a36Sopenharmony_ci .disconnect = rtw_usb_disconnect, 3962306a36Sopenharmony_ci}; 4062306a36Sopenharmony_cimodule_usb_driver(rtw_8822cu_driver); 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ciMODULE_AUTHOR("Realtek Corporation"); 4362306a36Sopenharmony_ciMODULE_DESCRIPTION("Realtek 802.11ac wireless 8822cu driver"); 4462306a36Sopenharmony_ciMODULE_LICENSE("Dual BSD/GPL"); 45