1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) Martin Blumenstingl <martin.blumenstingl@googlemail.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 "rtw8821c.h" 10 #include "sdio.h" 11 12 static const struct sdio_device_id rtw_8821cs_id_table[] = { 13 { 14 SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 15 SDIO_DEVICE_ID_REALTEK_RTW8821CS), 16 .driver_data = (kernel_ulong_t)&rtw8821c_hw_spec, 17 }, 18 {} 19 }; 20 MODULE_DEVICE_TABLE(sdio, rtw_8821cs_id_table); 21 22 static struct sdio_driver rtw_8821cs_driver = { 23 .name = "rtw_8821cs", 24 .probe = rtw_sdio_probe, 25 .remove = rtw_sdio_remove, 26 .id_table = rtw_8821cs_id_table, 27 .drv = { 28 .pm = &rtw_sdio_pm_ops, 29 .shutdown = rtw_sdio_shutdown, 30 } 31 }; 32 module_sdio_driver(rtw_8821cs_driver); 33 34 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>"); 35 MODULE_DESCRIPTION("Realtek 802.11ac wireless 8821cs driver"); 36 MODULE_LICENSE("Dual BSD/GPL"); 37