Merge tag 'iwlwifi-next-for-kalle-2022-03-10' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / drivers / net / wireless / realtek / rtw89 / rtw8852ce.c
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2020-2022  Realtek Corporation
3  */
4
5 #include <linux/module.h>
6 #include <linux/pci.h>
7
8 #include "pci.h"
9 #include "reg.h"
10 #include "rtw8852c.h"
11
12 static const struct rtw89_pci_info rtw8852c_pci_info = {
13         .dma_addr_set           = &rtw89_pci_ch_dma_addr_set_v1,
14 };
15
16 static const struct rtw89_driver_info rtw89_8852ce_info = {
17         .chip = &rtw8852c_chip_info,
18         .bus = {
19                 .pci = &rtw8852c_pci_info,
20         },
21 };
22
23 static const struct pci_device_id rtw89_8852ce_id_table[] = {
24         {
25                 PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xc852),
26                 .driver_data = (kernel_ulong_t)&rtw89_8852ce_info,
27         },
28         {},
29 };
30 MODULE_DEVICE_TABLE(pci, rtw89_8852ce_id_table);
31
32 static struct pci_driver rtw89_8852ce_driver = {
33         .name           = "rtw89_8852ce",
34         .id_table       = rtw89_8852ce_id_table,
35         .probe          = rtw89_pci_probe,
36         .remove         = rtw89_pci_remove,
37         .driver.pm      = &rtw89_pm_ops,
38 };
39 module_pci_driver(rtw89_8852ce_driver);
40
41 MODULE_AUTHOR("Realtek Corporation");
42 MODULE_DESCRIPTION("Realtek 802.11ax wireless 8852CE driver");
43 MODULE_LICENSE("Dual BSD/GPL");