STRUCT FTIDE010(9)
π struct ftide010(9) β like, the whole vibe check
Okay bestie, so this page is from the Kernel API Manual, and it's all about struct ftide010 β the state container for the Faraday FTIDE010. Yes, that's the NAME section, and yes, it's giving "one struct to hold absolutely everything" energy. π
β¨ SYNOPSIS β¨
Here's the whole thing, character for character, no cap:
struct ftide010 {
struct device *dev;
void __iomem *base;
struct clk *pclk;
struct ata_host *host;
unsigned int master_cbl;
unsigned int slave_cbl;
struct sata_gemini *sg;
bool master_to_sata0;
bool slave_to_sata0;
bool master_to_sata1;
bool slave_to_sata1;
};
Lowkey iconic that the original closes with that one-space-indented }; β we're keeping it exactly as it is. Periodt. π
πΈ Members πΈ
Okay so let's meet the cast, because every single field is a main character here:
devβ pointer back to the device representing this controller. Like, this is the "who am I" of the struct. π«Άbaseβ the remapped I/O space address. Your literal doorway into the hardware, bestie. β¨pclkβ peripheral clock for the IDE block. Gotta keep the beat going. π΅hostβ pointer to the ATA host for this device. The big boss energy right here. πmaster_cblβ master cable type. πslave_cblβ slave cable type. πsgβ Gemini SATA bridge pointer, if running on the Gemini. Conditional icon. π¦master_to_sata0β Gemini SATA bridge: the ATA master is connected to the SATA0 bridge. π₯slave_to_sata0β Gemini SATA bridge: the ATA slave is connected to the SATA0 bridge. π₯master_to_sata1β Gemini SATA bridge: the ATA master is connected to the SATA1 bridge. π₯slave_to_sata1β Gemini SATA bridge: the ATA slave is connected to the SATA1 bridge. π₯
Heads up bestie: those four *_to_sata* bools are all specifically Gemini SATA bridge things β the descriptions say so, so don't go reading bridge-wiring lore into anything else. π
The way that master_cbl and slave_cbl are both unsigned int while the four bridge flags are plain boolβ¦ we love a type-correct queen. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/ata/pata_ftide010.cβ go read the source, iykyk. π
And that's the whole page, bestie! No crumbs left, fr fr. π
Source: ./drivers/ata Β· Date: October 2026 Β· Version/manual: struct ftide010(9) from the Kernel API Manual β mwah, kisses, go forth and compile something gorgeous ππ§β
π¦ 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