Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_nand_ecc_ctrl(9) [suse man page]

STRUCT 
NAND_ECC_CTRL(9) Structures STRUCT NAND_ECC_CTRL(9) NAME
struct_nand_ecc_ctrl - Control structure for ecc SYNOPSIS
struct nand_ecc_ctrl { nand_ecc_modes_t mode; int steps; int size; int bytes; int total; int prepad; int postpad; struct nand_ecclayout * layout; void (* hwctl) (struct mtd_info *mtd, int mode); int (* calculate) (struct mtd_info *mtd,const uint8_t *dat,uint8_t *ecc_code); int (* correct) (struct mtd_info *mtd, uint8_t *dat,uint8_t *read_ecc,uint8_t *calc_ecc); int (* read_page_raw) (struct mtd_info *mtd,struct nand_chip *chip,uint8_t *buf, int page); void (* write_page_raw) (struct mtd_info *mtd,struct nand_chip *chip,const uint8_t *buf); int (* read_page) (struct mtd_info *mtd,struct nand_chip *chip,uint8_t *buf, int page); int (* read_subpage) (struct mtd_info *mtd,struct nand_chip *chip,uint32_t offs, uint32_t len,uint8_t *buf); void (* write_page) (struct mtd_info *mtd,struct nand_chip *chip,const uint8_t *buf); int (* read_oob) (struct mtd_info *mtd,struct nand_chip *chip,int page,int sndcmd); int (* write_oob) (struct mtd_info *mtd,struct nand_chip *chip,int page); }; MEMBERS
mode ecc mode steps number of ecc steps per page size data bytes per ecc step bytes ecc bytes per step total total number of ecc bytes per page prepad padding information for syndrome based ecc generators postpad padding information for syndrome based ecc generators layout ECC layout control struct pointer hwctl function to control hardware ecc generator. Must only be provided if an hardware ECC is available calculate function for ecc calculation or readback from ecc hardware correct function for ecc correction, matching to ecc generator (sw/hw) read_page_raw function to read a raw page without ECC write_page_raw function to write a raw page without ECC read_page function to read a page according to the ecc generator requirements read_subpage function to read parts of the page covered by ECC. write_page function to write a page according to the ecc generator requirements read_oob function to read chip OOB data write_oob function to write chip OOB data AUTHOR
Thomas Gleixner <tglx@linutronix.de> Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRUCT NAND_ECC_CTRL(9)

Check Out this Related Man Page

DRTEST(8)						      System Manager's Manual							 DRTEST(8)

NAME
drtest - standalone disk test program DESCRIPTION
Drtest is a standalone program used to read a disk track by track. It was primarily intended as a test program for new standalone drivers, but has shown useful in other contexts as well, such as verifying disks and running speed tests. For example, when a disk has been format- ted (by format(8)), you can check that hard errors has been taken care of by running drtest. No hard errors should be found, but in many cases quite a few soft ECC errors will be reported. While drtest is running, the cylinder number is printed on the console for every 10th cylinder read. EXAMPLE
A sample run of drtest is shown below. In this example (using a 750), drtest is loaded from the root file system; usually it will be loaded from the machine's console storage device. Boldface means user input. As usual, ``#'' and ``@'' may be used to edit input. >>>B/3 %% loading hk(0,0)boot Boot : hk(0,0)drtest Test program for stand-alone up and hp driver Debugging level (1=bse, 2=ecc, 3=bse+ecc)? Enter disk name [type(adapter,unit), e.g. hp(1,3)]? hp(0,0) Device data: #cylinders=1024, #tracks=16, #sectors=32 Testing hp(0,0), chunk size is 16384 bytes. (chunk size is the number of bytes read per disk access) Start ...Make sure hp(0,0) is online ... (errors are reported as they occur) ... (...program restarts to allow checking other disks) (...to abort halt machine with ^P) DIAGNOSTICS
The diagnostics are intended to be self explanatory. Note, however, that the device number in the diagnostic messages is identified as typeX instead of type(a,u) where X = a*8+u, e.g., hp(1,3) becomes hp11. SEE ALSO
format(8V), bad144(8) AUTHOR
Helge Skrivervik 4.2 Berkeley Distribution May 19, 1986 DRTEST(8)
Man Page