xref: /freebsd/sys/contrib/dev/rtw88/rtw8821ce.c (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2018-2019  Realtek Corporation
3  */
4 
5 #include <linux/module.h>
6 #include <linux/pci.h>
7 #include "pci.h"
8 #include "rtw8821c.h"
9 
10 static const struct pci_device_id rtw_8821ce_id_table[] = {
11 	{
12 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xB821),
13 		.driver_data = (kernel_ulong_t)&rtw8821c_hw_spec
14 	},
15 	{
16 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xC821),
17 		.driver_data = (kernel_ulong_t)&rtw8821c_hw_spec
18 	},
19 	{}
20 };
21 MODULE_DEVICE_TABLE(pci, rtw_8821ce_id_table);
22 
23 static struct pci_driver rtw_8821ce_driver = {
24 	.name = "rtw_8821ce",
25 	.id_table = rtw_8821ce_id_table,
26 	.probe = rtw_pci_probe,
27 	.remove = rtw_pci_remove,
28 	.driver.pm = &rtw_pm_ops,
29 	.shutdown = rtw_pci_shutdown,
30 #if defined(__FreeBSD__)
31 	.bsddriver.name = KBUILD_MODNAME,
32 #endif
33 };
34 module_pci_driver(rtw_8821ce_driver);
35 
36 MODULE_AUTHOR("Realtek Corporation");
37 MODULE_DESCRIPTION("Realtek 802.11ac wireless 8821ce driver");
38 MODULE_LICENSE("Dual BSD/GPL");
39