xref: /freebsd/sys/contrib/dev/rtw88/rtw8822bs.c (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) Jernej Skrabec <jernej.skrabec@gmail.com>
3  */
4 
5 #include <linux/mmc/sdio_func.h>
6 #include <linux/mmc/sdio_ids.h>
7 #include <linux/module.h>
8 #include "main.h"
9 #include "rtw8822b.h"
10 #include "sdio.h"
11 
12 static const struct sdio_device_id rtw_8822bs_id_table[] =  {
13 	{
14 		SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK,
15 			    SDIO_DEVICE_ID_REALTEK_RTW8822BS),
16 		.driver_data = (kernel_ulong_t)&rtw8822b_hw_spec,
17 	},
18 	{}
19 };
20 MODULE_DEVICE_TABLE(sdio, rtw_8822bs_id_table);
21 
22 static struct sdio_driver rtw_8822bs_driver = {
23 	.name = "rtw_8822bs",
24 	.probe = rtw_sdio_probe,
25 	.remove = rtw_sdio_remove,
26 	.id_table = rtw_8822bs_id_table,
27 	.drv = {
28 		.pm = &rtw_sdio_pm_ops,
29 		.shutdown = rtw_sdio_shutdown,
30 	}
31 };
32 module_sdio_driver(rtw_8822bs_driver);
33 
34 MODULE_AUTHOR("Jernej Skrabec <jernej.skrabec@gmail.com>");
35 MODULE_DESCRIPTION("Realtek 802.11ac wireless 8822bs driver");
36 MODULE_LICENSE("Dual BSD/GPL");
37