xref: /linux/drivers/net/wireless/realtek/rtw89/rtw8852ae.c (revision 06b9cce42634a50f2840777a66553b02320db5ef)
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2020-2021  Realtek Corporation
3  */
4 
5 #include <linux/module.h>
6 #include <linux/pci.h>
7 
8 #include "pci.h"
9 #include "rtw8852a.h"
10 
11 static const struct rtw89_driver_info rtw89_8852ae_info = {
12 	.chip = &rtw8852a_chip_info,
13 };
14 
15 static const struct pci_device_id rtw89_8852ae_id_table[] = {
16 	{
17 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8852),
18 		.driver_data = (kernel_ulong_t)&rtw89_8852ae_info,
19 	},
20 	{
21 		PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xa85a),
22 		.driver_data = (kernel_ulong_t)&rtw89_8852ae_info,
23 	},
24 	{},
25 };
26 MODULE_DEVICE_TABLE(pci, rtw89_8852ae_id_table);
27 
28 static struct pci_driver rtw89_8852ae_driver = {
29 	.name		= "rtw89_8852ae",
30 	.id_table	= rtw89_8852ae_id_table,
31 	.probe		= rtw89_pci_probe,
32 	.remove		= rtw89_pci_remove,
33 	.driver.pm	= &rtw89_pm_ops,
34 };
35 module_pci_driver(rtw89_8852ae_driver);
36 
37 MODULE_AUTHOR("Realtek Corporation");
38 MODULE_DESCRIPTION("Realtek 802.11ax wireless 8852AE driver");
39 MODULE_LICENSE("Dual BSD/GPL");
40