STRUCT SUNXI_NAND_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct sunxi_nand_chip β€” literally the place where all your NAND chip device info lives, bestie ✨

okay so first things first, this whole page is from the Kernel API Manual, and the thing we're stanning today is struct sunxi_nand_chip β€” it's giving "one struct to hold all the deets about a NAND chip device" and honestly? iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sunxi_nand_chip {
    struct list_head node;
    struct nand_chip nand;
    struct sunxi_nand_hw_ecc ecc;
    unsigned long clk_rate;
    u32 timing_cfg;
    u32 timing_ctl;
    u8 *user_data_bytes;
    int nsels;
    struct sunxi_nand_chip_sel sels[];
};

like, that's the whole vibe right there πŸ’…


πŸŽ€ Members πŸŽ€

  • node β€” this is the lil list glue, used to store NAND chips into a list πŸ”—
  • nand β€” the base NAND chip structure, the main character energy of the whole thing πŸ‘‘
  • ecc β€” the ECC controller structure, keeping your data's skin clear ✨
  • clk_rate β€” the clk_rate that this NAND chip needs, no cap ⏰
  • timing_cfg β€” the TIMING_CFG register value for this NAND chip 🎚️
  • timing_ctl β€” the TIMING_CTL register value for this NAND chip πŸŽ›οΈ
  • user_data_bytes β€” an array of user data lengths for all the ECC steps, every single one, we don't skip πŸ“
  • nsels β€” how many CS lines this NAND chip requires, counted and everything πŸ”’
  • sels β€” the array of CS lines descriptions, the whole squad 🌈

🌸 SEE ALSO 🌸

  • Kernel file ./drivers/mtd/nand/raw/sunxi_nand.c β€” go read it, iykyk πŸ“–
  • struct sunxi_nand_chip_sel(9)
  • struct sunxi_nand_hw_ecc(9)
  • struct sunxi_nfc(9)

and that's the whole page, bestie 🫢 this lil slice of kernel lore comes to you from ./drivers/mtd/nand/raw, dated October 2026 β€” mwah, go forth and slay your NAND configs πŸ’œβœ¨

πŸ“¦ where this page comes from