STRUCT EEPROM_93CX6(9)
π¦ struct eeprom_93cx6(9) β like, the control struct era π
okay so bestie, welcome to the Kernel API Manual page for struct eeprom_93cx6 β literally the control structure you use for setting the commands when you're reading eeprom data. yes, that's the whole vibe. let's get into it β¨
β¨ NAME β¨
struct eeprom_93cx6 β the control structure for setting the commands for reading the eeprom data. that's it, that's the gig π
πΈ SYNOPSIS πΈ
lowkey just look at it. it's giving gorgeous little struct:
struct eeprom_93cx6 {
void *data;
void (*register_read)(struct eeprom_93cx6 *eeprom);
void (*register_write)(struct eeprom_93cx6 *eeprom);
int width;
unsigned int quirks;
#define PCI_EEPROM_QUIRK_EXTRA_READ_CYCLE BIT(0);
char drive_data;
char reg_data_in;
char reg_data_out;
char reg_data_clock;
char reg_chip_select;
};
not the #define just vibing in the middle of the struct π iconic honestly. copy it exactly, no cap.
π«Ά Members π«Ά
dataβ your private pointer for the driver. she's yours, nobody else touches her πregister_readβ the handler that reads the eeprom register. important: this function should set all thereg_*fields. all of them. every single one. don't leave a girl hanging πregister_writeβ the handler that writes to the eeprom register, using all thereg_*fields. yeah, the same crew. she uses all of them πwidthβ the eeprom width. should be one of thePCI_EEPROM_WIDTH_*defines. should being the operative word here πquirksβ eeprom or controller quirks. everybody's got their little quirks, right? π¦drive_dataβ set if we're driving the data line. main character energy for the data line βreg_data_inβ register field to indicate data input πreg_data_outβ register field to indicate data output π§reg_data_clockβ register field to set the data clock. tick tock βreg_chip_selectβ register field to set the chip select π
π Description π
so the way that this works: this structure is used for the communication between the driver and the eeprom_93cx6 handlers for reading the eeprom. like, it's the group chat between your driver and the handler, and everybody knows their role. no chaos, just vibes πΈ
π SEE ALSO π
- Kernel file
./include/linux/eeprom_93cx6.hβ go read it, iykyk π
and that's the page bestie, no cap, fr fr π this little masterpiece lives in ./include/linux and it's dated October 2026 β the version is struct eeprom_93cx6(9) if you were wondering, which you were. slay π
β¨
π¦ 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