STRUCT NFC_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Hey bestie, welcome to the struct nfc_cfg(9) page from the Kernel API Manual β€” and it's literally the Rockchip NAND controller configuration struct. That's the whole vibe: one iconic struct holding the NAND controller's config, offsets, and ECC status bits. No cap 🫢


✨ SYNOPSIS ✨

       struct nfc_cfg {
           enum nfc_type type;
           u8 ecc_strengths[NFC_ECC_MAX_MODES];
           u32 ecc_cfgs[NFC_ECC_MAX_MODES];
           u32 flctl_off;
           u32 bchctl_off;
           u32 dma_cfg_off;
           u32 dma_data_buf_off;
           u32 dma_oob_buf_off;
           u32 dma_st_off;
           u32 bch_st_off;
           u32 randmz_off;
           u32 int_en_off;
           u32 int_clr_off;
           u32 int_st_off;
           u32 oob0_off;
           u32 oob1_off;
           struct rk_ecc_cnt_status ecc0;
           struct rk_ecc_cnt_status ecc1;
        };

🧚 Members 🧚

Okay so here's the member-by-member breakdown, and yes, every single one is important πŸ’…

  • type β€” NFC version.
  • ecc_strengths β€” ECC strengths.
  • ecc_cfgs β€” ECC config values.
  • flctl_off β€” FLCTL register offset.
  • bchctl_off β€” BCHCTL register offset.
  • dma_cfg_off β€” DMA_CFG register offset.
  • dma_data_buf_off β€” DMA_DATA_BUF register offset.
  • dma_oob_buf_off β€” DMA_OOB_BUF register offset.
  • dma_st_off β€” DMA_ST register offset.
  • bch_st_off β€” BCG_ST register offset. Yes, it says BCG_ST exactly β€” we're keeping it exactly as written, bestie.
  • randmz_off β€” RANDMZ register offset.
  • int_en_off β€” interrupt enable register offset.
  • int_clr_off β€” interrupt clean register offset.
  • int_st_off β€” interrupt status register offset.
  • oob0_off β€” oob0 register offset.
  • oob1_off β€” oob1 register offset.
  • ecc0 β€” represent ECC0 status data.
  • ecc1 β€” represent ECC1 status data.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/mtd/nand/raw/rockchip-nand-controller.c
  • struct rk_ecc_cnt_status(9)

πŸ’Œ cute sign-off: this page came from ./drivers/mtd/nand/raw, dated October 2026, and it's all about struct nfc_cfg(9). Bye bestie β€” go configure that Rockchip NAND controller and slay πŸ’…βœ¨
πŸ“¦ where this page comes from