STRUCT MMCI_PLATFORM_DATA(9)
π struct mmci_platform_data(9)
okay bestie, welcome to the Kernel API Manual β¨ β yes this is the actual manual name, and yes we're gonna get through it together, i promise it's short and honestly kind of iconic.
This one's all about platform configuration for the MMCI block β also known as PL180, so if you see that name floating around, same thing, no cap π«Ά
β¨ NAME β¨
struct mmci_platform_data β the platform configuration for the MMCI (also known as PL180) block. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
struct mmci_platform_data {
unsigned int ocr_mask;
unsigned int (*status)(struct device *);
};
look at her. two members. main character energy, no notes π
π Members π
ocr_maskβ this is the available voltages on the 4 pins from the block. heads up tho π«Ά it gets ignored if a regulator is used β so like, if you've got a regulator handling it, this lil field is just sitting there, unbothered. for the real deal, peep theMMC_VDD_*masks inmmc/host.h.statusβ a function pointer, and here's the teΠ°: if no GPIO line was given to the block, this function gets called to determine whether a card is present in the MMC slot or not. so it's the "is there a card in there bestie??" check ππ¦ called asunsigned int (*status)(struct device *);β device pointer in, answer out.
honestly the whole struct is giving "minimal effort, maximum correctness" and i respect it π
π SEE ALSO π
- Kernel file
./include/linux/amba/mmci.hβ go read it, it's literally right there, iykyk πβ¨
and that's the page!! π source lives in ./include/linux/amba, dated October 2026, and that's your lil sign-off bestie β go configure some MMC platforms, you absolute legend ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms