STRUCT ARASAN_NFC(9)
πΈ 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 nglbaseβ 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 frchipsβ list of all NAND chips attached to the controller πcur_clkβ current clock ratecs_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 ofcs_arrayπΈcur_csβ index incs_arrayof the currently in use CS β¨native_csβ currently selected native CSspare_csβ native CS that is not wired (may be selected when a GPIO CS is in use) π§
ngl thecs_array/native_cs/spare_cstrio 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
- 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