2020-05-15 13:23:23 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
|
|
|
|
/* Copyright(c) 2018-2019 Realtek Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/pci.h>
|
2020-11-26 13:31:52 +00:00
|
|
|
#include "pci.h"
|
2022-05-24 10:36:19 -05:00
|
|
|
#include "rtw8822c.h"
|
2020-05-15 13:23:23 +08:00
|
|
|
|
|
|
|
static const struct pci_device_id rtw_8822ce_id_table[] = {
|
|
|
|
{
|
|
|
|
PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC822),
|
|
|
|
.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
|
|
|
|
},
|
2020-06-12 16:27:45 +08:00
|
|
|
{
|
|
|
|
PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC82F),
|
|
|
|
.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
|
|
|
|
},
|
2020-05-15 13:23:23 +08:00
|
|
|
{}
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(pci, rtw_8822ce_id_table);
|
|
|
|
|
|
|
|
static struct pci_driver rtw_8822ce_driver = {
|
2025-04-02 20:54:30 +03:00
|
|
|
.name = KBUILD_MODNAME,
|
2020-05-15 13:23:23 +08:00
|
|
|
.id_table = rtw_8822ce_id_table,
|
|
|
|
.probe = rtw_pci_probe,
|
|
|
|
.remove = rtw_pci_remove,
|
|
|
|
.driver.pm = &rtw_pm_ops,
|
|
|
|
.shutdown = rtw_pci_shutdown,
|
2025-05-23 14:27:10 +08:00
|
|
|
.err_handler = &rtw_pci_err_handler,
|
2020-05-15 13:23:23 +08:00
|
|
|
};
|
|
|
|
module_pci_driver(rtw_8822ce_driver);
|
|
|
|
|
|
|
|
MODULE_AUTHOR("Realtek Corporation");
|
|
|
|
MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822ce driver");
|
|
|
|
MODULE_LICENSE("Dual BSD/GPL");
|