CHECK_CREATE(9) Internal Functions Provided CHECK_CREATE(9)NAME
check_create - [GENERIC] create and write bbt(s) if necessary
SYNOPSIS
int check_create(struct mtd_info * mtd, uint8_t * buf, struct nand_bbt_descr * bd);
ARGUMENTS
mtd
MTD device structure
buf
temporary buffer
bd
descriptor for the good/bad block search pattern
DESCRIPTION
The function checks the results of the previous call to read_bbt and creates / updates the bbt(s) if necessary. Creation is necessary if no
bbt was found for the chip/device. Update is necessary if one of the tables is missing or the version nr. of one table is less than the
other.
AUTHOR
Thomas Gleixner <tglx@linutronix.de>
Author.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 CHECK_CREATE(9)
Check Out this Related Man Page
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);
void * priv;
};
MEMBERS
probe
platform specific function to probe/setup hardware
remove
platform specific function to remove/teardown hardware
hwcontrol
platform specific hardware control structure
dev_ready
platform specific function to read ready/busy pin
select_chip
platform specific chip select function
cmd_ctrl
platform specific function for controlling ALE/CLE/nCE. Also used to write command and address
write_buf
platform specific function for write buffer
read_buf
platform specific function for read buffer
priv
private data to transport driver specific settings
DESCRIPTION
All fields are optional and depend on the hardware driver requirements
AUTHOR
Thomas Gleixner <tglx@linutronix.de>
Author.
COPYRIGHT Kernel Hackers Manual 2.6. July 2010 STRUCT PLATFORM_NAND(9)