Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153213785
D35074.id105476.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D35074.id105476.diff
View Options
Index: sys/amd64/conf/GENERIC
===================================================================
--- sys/amd64/conf/GENERIC
+++ sys/amd64/conf/GENERIC
@@ -363,7 +363,7 @@
device mmc # MMC/SD bus
device mmcsd # MMC/SD memory card
device sdhci # Generic PCI SD Host Controller
-device rtsx # Realtek SD card reader
+#device rtsx # Realtek SD card reader
# VirtIO support
device virtio # Generic VirtIO bus (required)
Index: sys/dev/rtsx/rtsx.c
===================================================================
--- sys/dev/rtsx/rtsx.c
+++ sys/dev/rtsx/rtsx.c
@@ -3909,6 +3909,27 @@
DEFINE_CLASS_0(rtsx, rtsx_driver, rtsx_methods, sizeof(struct rtsx_softc));
DRIVER_MODULE(rtsx, pci, rtsx_driver, rtsx_devclass, NULL, NULL);
+
+/* For Plug and Play */
+static struct rtsx_pciids {
+ uint16_t device;
+ const char *desc;
+} rtsx_ids[] = {
+ { RTSX_RTS5209, "Realtek RTS5209 PCIe SD Card Reader" },
+ { RTSX_RTS5227, "Realtek RTS5227 PCIe SD Card Reader" },
+ { RTSX_RTS5229, "Realtek RTS5229 PCIe SD Card Reader" },
+ { RTSX_RTS522A, "Realtek RTS522A PCIe SD Card Reader" },
+ { RTSX_RTS525A, "Realtek RTS525A PCIe SD Card Reader" },
+ { RTSX_RTS5249, "Realtek RTS5249 PCIe SD Card Reader" },
+ { RTSX_RTS5260, "Realtek RTS5260 PCIe SD Card Reader" },
+ { RTSX_RTL8402, "Realtek RTL8402 PCIe SD Card Reader" },
+ { RTSX_RTL8411, "Realtek RTL8411 PCIe SD Card Reader" },
+ { RTSX_RTL8411B, "Realtek RTL8411B PCIe SD Card Reader" },
+};
+
+MODULE_PNP_INFO("U16:device;D:#;T:vendor=0x10ec", pci, rtsx,
+ rtsx_ids, nitems(rtsx_ids));
+
#ifndef MMCCAM
MMC_DECLARE_BRIDGE(rtsx);
#endif /* !MMCCAM */
Index: sys/i386/conf/GENERIC
===================================================================
--- sys/i386/conf/GENERIC
+++ sys/i386/conf/GENERIC
@@ -319,7 +319,7 @@
device mmc # MMC/SD bus
device mmcsd # MMC/SD memory card
device sdhci # Generic PCI SD Host Controller
-device rtsx # Realtek SD card reader
+#device rtsx # Realtek SD card reader
# VirtIO support
device virtio # Generic VirtIO bus (required)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 8:38 PM (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31863357
Default Alt Text
D35074.id105476.diff (2 KB)
Attached To
Mode
D35074: Add MODULE_PNP_INFO() to rtsx
Attached
Detach File
Event Timeline
Log In to Comment