STRUCT PLATFORM_NAND(9) | Structures | STRUCT PLATFORM_NAND(9) |
NAME¶
struct_platform_nand_ctrl - controller level device structure
SYNOPSIS¶
struct platform_nand_ctrl {
int (* probe) (struct platform_device *pdev);
void (* remove) (struct platform_device *pdev);
void (* hwcontrol) (struct mtd_info *mtd, int cmd);
int (* dev_ready) (struct mtd_info *mtd);
void (* select_chip) (struct mtd_info *mtd, int chip);
void (* cmd_ctrl) (struct mtd_info *mtd, int dat, unsigned int ctrl);
void (* write_buf) (struct mtd_info *mtd, const uint8_t *buf, int len);
void (* read_buf) (struct mtd_info *mtd, uint8_t *buf, int len);
unsigned char (* read_byte) (struct mtd_info *mtd);
void * priv; };
MEMBERS¶
int (*)(struct platform_device *pdev) probe
void (*)(struct platform_device *pdev) remove
void (*)(struct mtd_info *mtd, int cmd) hwcontrol
int (*)(struct mtd_info *mtd) dev_ready
void (*)(struct mtd_info *mtd, int chip) select_chip
void (*)(struct mtd_info *mtd, int dat, unsigned int ctrl) cmd_ctrl
void (*)(struct mtd_info *mtd, const uint8_t *buf, int len) write_buf
void (*)(struct mtd_info *mtd, uint8_t *buf, int len) read_buf
unsigned char (*)(struct mtd_info *mtd) read_byte
void * priv
DESCRIPTION¶
All fields are optional and depend on the hardware driver requirements
AUTHOR¶
Thomas Gleixner <tglx@linutronix.de>
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.11 |