1*a3b125ceSMartin Blumenstingl // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2*a3b125ceSMartin Blumenstingl /* Copyright(c) Martin Blumenstingl <martin.blumenstingl@googlemail.com> 3*a3b125ceSMartin Blumenstingl */ 4*a3b125ceSMartin Blumenstingl 5*a3b125ceSMartin Blumenstingl #include <linux/mmc/sdio_func.h> 6*a3b125ceSMartin Blumenstingl #include <linux/mmc/sdio_ids.h> 7*a3b125ceSMartin Blumenstingl #include <linux/module.h> 8*a3b125ceSMartin Blumenstingl #include "main.h" 9*a3b125ceSMartin Blumenstingl #include "rtw8723d.h" 10*a3b125ceSMartin Blumenstingl #include "sdio.h" 11*a3b125ceSMartin Blumenstingl 12*a3b125ceSMartin Blumenstingl static const struct sdio_device_id rtw_8723ds_id_table[] = { 13*a3b125ceSMartin Blumenstingl { 14*a3b125ceSMartin Blumenstingl SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 15*a3b125ceSMartin Blumenstingl SDIO_DEVICE_ID_REALTEK_RTW8723DS_1ANT), 16*a3b125ceSMartin Blumenstingl .driver_data = (kernel_ulong_t)&rtw8723d_hw_spec, 17*a3b125ceSMartin Blumenstingl }, 18*a3b125ceSMartin Blumenstingl { 19*a3b125ceSMartin Blumenstingl SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 20*a3b125ceSMartin Blumenstingl SDIO_DEVICE_ID_REALTEK_RTW8723DS_2ANT), 21*a3b125ceSMartin Blumenstingl .driver_data = (kernel_ulong_t)&rtw8723d_hw_spec, 22*a3b125ceSMartin Blumenstingl }, 23*a3b125ceSMartin Blumenstingl {} 24*a3b125ceSMartin Blumenstingl }; 25*a3b125ceSMartin Blumenstingl MODULE_DEVICE_TABLE(sdio, rtw_8723ds_id_table); 26*a3b125ceSMartin Blumenstingl 27*a3b125ceSMartin Blumenstingl static struct sdio_driver rtw_8723ds_driver = { 28*a3b125ceSMartin Blumenstingl .name = "rtw_8723ds", 29*a3b125ceSMartin Blumenstingl .probe = rtw_sdio_probe, 30*a3b125ceSMartin Blumenstingl .remove = rtw_sdio_remove, 31*a3b125ceSMartin Blumenstingl .id_table = rtw_8723ds_id_table, 32*a3b125ceSMartin Blumenstingl .drv = { 33*a3b125ceSMartin Blumenstingl .pm = &rtw_sdio_pm_ops, 34*a3b125ceSMartin Blumenstingl .shutdown = rtw_sdio_shutdown, 35*a3b125ceSMartin Blumenstingl } 36*a3b125ceSMartin Blumenstingl }; 37*a3b125ceSMartin Blumenstingl module_sdio_driver(rtw_8723ds_driver); 38*a3b125ceSMartin Blumenstingl 39*a3b125ceSMartin Blumenstingl MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>"); 40*a3b125ceSMartin Blumenstingl MODULE_DESCRIPTION("Realtek 802.11n wireless 8723ds driver"); 41*a3b125ceSMartin Blumenstingl MODULE_LICENSE("Dual BSD/GPL"); 42