STRUCT ARASAN_NFC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct arasan_nfc(9) β€” the Kernel API Manual moment πŸŽ€

okay so bestie, we're in struct arasan_nfc territory, and this is literally the struct that defines the Arasan NAND flash controller driver instance. yes. the whole driver's little personality profile. and yes i'm gonna walk you through every single field because we don't skip ✨


✨ NAME ✨

struct arasan_nfc β€” Defines the Arasan NAND flash controller driver instance πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct arasan_nfc {
    struct device *dev;
    void __iomem *base;
    struct clk *controller_clk;
    struct clk *bus_clk;
    struct nand_controller controller;
    struct list_head chips;
    unsigned int cur_clk;
    struct gpio_desc **cs_array;
    unsigned int ncs;
    int cur_cs;
    unsigned int native_cs;
    unsigned int spare_cs;
 };

like, that's the whole squad right there 🫢


πŸ‘‘ Members πŸ‘‘

  • dev β€” pointer to the device structure, the main character energy of the whole thing ngl
  • base β€” remapped register area, iykyk πŸ”₯
  • controller_clk β€” pointer to the system clock ⭐
  • bus_clk β€” pointer to the flash clock 🌈
  • controller β€” base controller structure, the foundation fr fr
  • chips β€” list of all NAND chips attached to the controller πŸ“
  • cur_clk β€” current clock rate
  • cs_array β€” CS array. Native CS are left empty, and the other cells are populated with their corresponding GPIO descriptor πŸ’– (yes that's how it works, not me making it cute, that's just the truth)
  • ncs β€” size of cs_array 🌸
  • cur_cs β€” index in cs_array of the currently in use CS ✨
  • native_cs β€” currently selected native CS
  • spare_cs β€” native CS that is not wired (may be selected when a GPIO CS is in use) 🧚
ngl the cs_array / native_cs / spare_cs trio is giving "three besties, one group chat, different vibes" and honestly? iconic πŸ’€

🌟 SEE ALSO 🌟

  • Kernel file ./drivers/mtd/nand/raw/arasan-nand-controller.c
  • struct anfc_op(9)
  • struct anand(9)

go read those too, slay πŸ”₯


and that's the page!! doing a lil sign-off because we're classy like that πŸ’œ β€” this one lives over in ./drivers/mtd/nand/raw, and our date stamp says October 2026. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from