nand_read_page_hwecc_oob_first

Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 9 (Appels noyau Linux)

NAME

nand_read_page_hwecc_oob_first - [REPLACABLE] hw ecc, read oob first

SYNOPSIS

int nand_read_page_hwecc_oob_first(struct mtd_info * mtd, struct nand_chip * chip, uint8_t * buf, int page);

ARGUMENTS

mtd

mtd info structure

chip

nand chip info structure

buf

buffer to store read data

page

page number to read

DESCRIPTION

Hardware ECC for large page chips, require OOB to be read first. For this ECC mode, the write_page method is re-used from ECC_HW. These methods read/write ECC from the OOB area, unlike the ECC_HW_SYNDROME support with multiple ECC steps, follows the lqinfix ECCrq scheme and reads/writes ECC from the data area, by overwriting the NAND manufacturer bad block markings.

AUTHOR

Thomas Gleixner <tglx@linutronix.de>

Author.