Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
0002 /* Copyright(c) 2018-2019  Realtek Corporation
0003  */
0004 
0005 #include <linux/module.h>
0006 #include <linux/pci.h>
0007 #include "pci.h"
0008 #include "rtw8821c.h"
0009 
0010 static const struct pci_device_id rtw_8821ce_id_table[] = {
0011     {
0012         PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xB821),
0013         .driver_data = (kernel_ulong_t)&rtw8821c_hw_spec
0014     },
0015     {
0016         PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC821),
0017         .driver_data = (kernel_ulong_t)&rtw8821c_hw_spec
0018     },
0019     {}
0020 };
0021 MODULE_DEVICE_TABLE(pci, rtw_8821ce_id_table);
0022 
0023 static struct pci_driver rtw_8821ce_driver = {
0024     .name = "rtw_8821ce",
0025     .id_table = rtw_8821ce_id_table,
0026     .probe = rtw_pci_probe,
0027     .remove = rtw_pci_remove,
0028     .driver.pm = &rtw_pm_ops,
0029     .shutdown = rtw_pci_shutdown,
0030 };
0031 module_pci_driver(rtw_8821ce_driver);
0032 
0033 MODULE_AUTHOR("Realtek Corporation");
0034 MODULE_DESCRIPTION("Realtek 802.11ac wireless 8821ce driver");
0035 MODULE_LICENSE("Dual BSD/GPL");