xref: /linux/drivers/net/wireless/realtek/rtw88/rtw8822ce.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1ba0fbe23SZong-Zhe Yang // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2ba0fbe23SZong-Zhe Yang /* Copyright(c) 2018-2019  Realtek Corporation
3ba0fbe23SZong-Zhe Yang  */
4ba0fbe23SZong-Zhe Yang 
5ba0fbe23SZong-Zhe Yang #include <linux/module.h>
6ba0fbe23SZong-Zhe Yang #include <linux/pci.h>
72e86ef41SLee Jones #include "pci.h"
8*f86fc57fSLarry Finger #include "rtw8822c.h"
9ba0fbe23SZong-Zhe Yang 
10ba0fbe23SZong-Zhe Yang static const struct pci_device_id rtw_8822ce_id_table[] = {
11ba0fbe23SZong-Zhe Yang 	{
12ba0fbe23SZong-Zhe Yang 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC822),
13ba0fbe23SZong-Zhe Yang 		.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
14ba0fbe23SZong-Zhe Yang 	},
157d428b1cSAaron Ma 	{
167d428b1cSAaron Ma 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC82F),
177d428b1cSAaron Ma 		.driver_data = (kernel_ulong_t)&rtw8822c_hw_spec
187d428b1cSAaron Ma 	},
19ba0fbe23SZong-Zhe Yang 	{}
20ba0fbe23SZong-Zhe Yang };
21ba0fbe23SZong-Zhe Yang MODULE_DEVICE_TABLE(pci, rtw_8822ce_id_table);
22ba0fbe23SZong-Zhe Yang 
23ba0fbe23SZong-Zhe Yang static struct pci_driver rtw_8822ce_driver = {
24ba0fbe23SZong-Zhe Yang 	.name = "rtw_8822ce",
25ba0fbe23SZong-Zhe Yang 	.id_table = rtw_8822ce_id_table,
26ba0fbe23SZong-Zhe Yang 	.probe = rtw_pci_probe,
27ba0fbe23SZong-Zhe Yang 	.remove = rtw_pci_remove,
28ba0fbe23SZong-Zhe Yang 	.driver.pm = &rtw_pm_ops,
29ba0fbe23SZong-Zhe Yang 	.shutdown = rtw_pci_shutdown,
30ba0fbe23SZong-Zhe Yang };
31ba0fbe23SZong-Zhe Yang module_pci_driver(rtw_8822ce_driver);
32ba0fbe23SZong-Zhe Yang 
33ba0fbe23SZong-Zhe Yang MODULE_AUTHOR("Realtek Corporation");
34ba0fbe23SZong-Zhe Yang MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822ce driver");
35ba0fbe23SZong-Zhe Yang MODULE_LICENSE("Dual BSD/GPL");
36