1STRUCT NAND_BUFFERS(9) Structures STRUCT NAND_BUFFERS(9)
2
3
4
6 struct_nand_buffers - buffer structure for read/write
7
9 struct nand_buffers {
10 uint8_t ecccalc[NAND_MAX_OOBSIZE];
11 uint8_t ecccode[NAND_MAX_OOBSIZE];
12 uint8_t databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE];
13 };
14
16 ecccalc[NAND_MAX_OOBSIZE]
17 buffer for calculated ECC
18
19 ecccode[NAND_MAX_OOBSIZE]
20 buffer for ECC read from flash
21
22 databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE]
23 buffer for data - dynamically sized
24
26 Do not change the order of buffers. databuf and oobrbuf must be in
27 consecutive order.
28
30 Thomas Gleixner <tglx@linutronix.de>
31 Author.
32
34Kernel Hackers Manual 3.10 June 2019 STRUCT NAND_BUFFERS(9)