SDHCI(4)
π NAME π
okay so bestie, this is the sdhci(4) page from the Kernel Interfaces Manual, and it's literally the PCI SD Host Controller bridge driver. That's the whole vibe: it bridges PCI SD host controllers so your MMC/SD cards can get their main character moment. π
β¨ SYNOPSIS β¨
To compile this driver into the kernel, place these lines in your kernel configuration file:
device mmc
device mmcsd
device sdhci
Alternatively, to load the driver as a module at boot time, put these lines in loader.conf(5):
mmc_load="YES"
mmcsd_load="YES"
sdhci_load="YES"
πΈ DESCRIPTION πΈ
So the sdhci driver supports PCI devices with class 8 and subclass 5 according to the SD Host Controller Specification. iykyk, class 8 subclass 5 is the magic combo β¨
It supports up to six high speed 4bit MMC/SD slots per controller. Six! That's a whole friend group of slots. π«Ά
The driver attaches the mmc bus to the respective slot on card insertion and detaches it on card removing. Card goes in, bus says hi; card comes out, bus says bye. π
π₯ HARDWARE π₯
The sdhci driver supports the SD Host Controller Specification. When attaching via the PCI bus, the controller is automatically configured. Slay, no manual config needed there. π
Many SoC chips provide a SDHCI controller directly mapped to I/O memory. For those, the controller may be configured using fdt(4) or acpi(4) methods, supplied by your board's vendor. So your board vendor is the one handing over the lore. π
Now the honest part, bestie: unlike most other drivers that support a generic standard, sdhci requires a large number of quirks to cope with hardware bugs, proprietary registers and poorly specified power management. It's giving "high maintenance but worth it" energy. π
While many chipsets from Intel, Xilinx, Rockchip, Frescale, Ricoh, and TI have these entries, suboptimal performance may result when using some controllers. No cap, not every controller is eating β some are just snacking. π
Quirks and custom configuration are most often required when the device is configured via fdt(4) or acpi(4). So if you're on that path, expect to get cozy with quirks. π§
π¦ SEE ALSO π¦
Also: SD Specifications, Part 2, SD Host Controller, Simplified Specification. The official lore drop. π
π AUTHORS π
Alexander Motin <mav@FreeBSD.org>β the icon who wrote this. Periodt. π
xoxo, this page was served up by Debian on October 3, 2025 β catch you in the group chat, bestie π«Άπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2008 Alexander Motin <mav@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms