STRUCT SUNXI_NFC(9)
π NAME π
okay so bestie, welcome to the struct sunxi_nfc(9) page from the Kernel API Manual β and yes, this struct is literally where sunxi NAND controller information gets stored. no cap. π«Ά
struct sunxi_nfc β stores sunxi NAND controller information.
β¨ SYNOPSIS β¨
here's the whole struct, exactly as it appears β do not come for me about the semicolons, they're iconic π
struct sunxi_nfc {
struct nand_controller controller;
struct device *dev;
void __iomem *regs;
struct clk *ahb_clk;
struct clk *mod_clk;
struct clk *ecc_clk;
struct clk *mbus_clk;
struct reset_control *reset;
unsigned long assigned_cs;
unsigned long clk_rate;
struct list_head chips;
struct completion complete;
struct dma_chan *dmac;
bool use_mdma;
struct sunxi_nfc_mdma_desc *mdma_desc;
dma_addr_t mdma_desc_dma;
const struct sunxi_nfc_caps *caps;
};
π Members π
every member gets its moment, bestie β none skipped, fr fr:
controllerβ the base controller structure, the whole foundation vibe.devβ the parent device, and yep, it's used to print error messages.regsβ the NAND controller registers.ahb_clkβ the NAND controller AHB clock.mod_clkβ the NAND controller mod clock.ecc_clkβ the NAND controller ECC clock.mbus_clkβ the NAND controller MBUS clock.resetβ the NAND controller reset line.assigned_csβ bitmask describing already assigned CS lines.clk_rateβ the NAND controller current clock rate.chipsβ a list containing all the NAND chips attached to this NAND controller.completeβ a completion object used to wait for NAND controller events.dmacβ the DMA channel attached to the NAND controller.use_mdmaβ use an internal MBUS DMA backend.mdma_descβ H6-style MBUS DMA descriptor.mdma_desc_dmaβ DMA address ofmdma_desc.capsβ NAND Controller capabilities.
π SEE ALSO π
you want the lore? start with the kernel file ./drivers/mtd/nand/raw/sunxi_nand.c, then peek at struct sunxi_nand_chip_sel(9), struct sunxi_nand_hw_ecc(9), and struct sunxi_nand_chip(9). iykyk π
and that's the whole page, bestie! this cutie came from the ./drivers/mtd/nand/raw source/version line and is dated October 2026, so you know exactly where the lore is from. 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