STRUCT SDHCI_S3C(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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's MAX_BUS_CLK many of them, pls respect her capacity πŸ¦‹
  • clk_rates β€” clock frequencies, stored as unsigned long, again MAX_BUS_CLK of them. numbers! math! slay πŸ“
  • no_divider β€” a bool that 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:

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