STRUCT SDHCI_S3C(9)
π¦ struct sdhci_s3c(9) β S3C SDHCI instance π¦
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for struct sdhci_s3c, and honestly it's giving very much "the main character struct of the S3C SDHCI driver" π
. Buckle up, we're reading a struct definition together and it's gonna slay.
β¨ NAME β¨
struct sdhci_s3c β the S3C SDHCI instance, periodt π. That's the whole vibe: it's the struct that holds one of these controller instances.
π SYNOPSIS π
ok so here's the actual shape of it, copy it character for character bestie, no cap:
struct sdhci_s3c {
struct sdhci_host *host;
struct platform_device *pdev;
struct resource *ioarea;
struct s3c_sdhci_platdata *pdata;
int cur_clk;
int ext_cd_irq;
struct clk *clk_io;
struct clk *clk_bus[MAX_BUS_CLK];
unsigned long clk_rates[MAX_BUS_CLK];
bool no_divider;
};
lowkey gorgeous. ten members, all iconique, all doing their little job π«Ά
πΈ Members πΈ
hostβ the SDHCI host that got created π. like, the actual host object this whole struct is built around.pdevβ the platform device we were created from. iykyk, your origin story πioareaβ the resource that got created when we claimed the IO area. we staked our claim, we're that girl now πpdataβ the platform data for this controller. all the config tea βcur_clkβ the index of the current bus clock π₯ (yes, index, not the clock itself, don't get it twisted).ext_cd_irqβ the external card detect interrupt. she's out here detecting cards externally, iconic behavior πclk_ioβ the clock for the internal bus interface πclk_busβ the clocks that are available for the SD/MMC bus clock. it's an array, that'sMAX_BUS_CLKmany of them, pls respect her capacity π¦clk_ratesβ clock frequencies, stored asunsigned long, againMAX_BUS_CLKof them. numbers! math! slay πno_dividerβ aboolthat means no or non-standard internal clock divider. so if this is set, bestie, the divider situation is not the standard situation π
π SEE ALSO π
go read these next, they're all in the kernel file ./drivers/mmc/host/sdhci-s3c.c fr fr:
struct sdhci_s3c_drv_data(9)sdhci_s3c_get_max_clk(9)sdhci_s3c_consider_clock(9)sdhci_s3c_set_clock(9)sdhci_s3c_get_min_clock(9)
and they all live under ./drivers/mmc/host π§ β that's the directory, that's the home base, that's where the lore lives.
k bye bestie, this page was brought to you by ./drivers/mmc/host, dated October 2026, and it's part of the Kernel API Manual β mwah πβ¨π
π¦ 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