Buffer structure for read/write
struct nand_buffers {
uint8_t * ecccalc;
uint8_t * ecccode;
uint8_t * databuf;
};
ecccalc
buffer pointer for calculated ECC, size is oobsize.
ecccode
buffer pointer for ECC read from flash, size is oobsize.
databuf
buffer pointer for data, size is (page size + oobsize).
Do not change the order of buffers. databuf and oobrbuf must be in consecutive order.
Thomas Gleixner <[email protected]>
Author.