STRUCT MARVELL_NFC_CAPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is struct marvell_nfc_caps β€” it's literally the NAND controller capabilities struct, and its whole ~thing~ is telling different compatible strings apart from each other πŸ’… this is struct marvell_nfc_caps(9) from the Kernel API Manual, bestie, and it's lowkey iconic.


🌸 SYNOPSIS 🌸

struct marvell_nfc_caps {
    unsigned int max_cs_nb;
    unsigned int max_rb_nb;
    bool need_system_controller;
    bool legacy_of_bindings;
    bool is_nfcv2;
    bool use_dma;
    unsigned int max_mode_number;
 };
yes bestie there's a stray space before that closing }; in the original β€” we do not touch, we do not fix, we respect the source 🫢

πŸŽ€ Members πŸŽ€

okay buckle up, one field at a time, no cap:

  • max_cs_nb β€” how many Chip Select lines you get. that's the number, that's the whole vibe πŸ’…
  • max_rb_nb β€” how many Ready/Busy lines are available. count 'em.
  • need_system_controller β€” a bool that says whether the SoC needs to have access to the system controller (like, in order to enable the NAND controller). so it's giving "i can't do it alone, i need my support system" energy 😭
  • legacy_of_bindings β€” a bool that says whether DT parsing must be done the old fashioned way. yes, the old fashion way, that's the original wording, we're keeping it fr fr πŸ™ˆ
  • is_nfcv2 β€” a bool β€” NFCv2 has numerous enhancements compared to NFCv1, i.e. the BCH error detection and correction algorithm, and the NDCB3 register has been added. glow-up behavior honestly ✨
  • use_dma β€” a bool β€” use dma for data transfers. fast girlie behavior πŸ”₯
  • max_mode_number β€” the maximum timing mode that the controller supports. it's giving limits, but make it fashion πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie, they're all in the kernel file ./drivers/mtd/nand/raw/marvell_nand.c:

  • struct marvell_hw_ecc_layout(9)
  • struct marvell_nand_chip_sel(9)
  • struct marvell_nand_chip(9)
  • struct marvell_nfc(9)
  • struct marvell_nfc_timings(9)
  • TO_CYCLES(9)
  • struct marvell_nfc_op(9)

okay that's the whole page, you ate that πŸ’– this little beauty lives in ./drivers/mtd/nand/raw and it's dated October 2026 β€” and it's still struct marvell_nfc_caps(9), periodt. πŸŒˆβ­πŸŽ€

πŸ“¦ where this page comes from