Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
nand_ecc_ctrl Struct Reference

#include <nand.h>

Data Fields

nand_ecc_modes_t mode
 
int steps
 
int size
 
int bytes
 
int total
 
int strength
 
int prepad
 
int postpad
 
struct nand_ecclayoutlayout
 
voidpriv
 
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 oob_required, int page)
 
int(* write_page_raw )(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required)
 
int(* read_page )(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page)
 
int(* read_subpage )(struct mtd_info *mtd, struct nand_chip *chip, uint32_t offs, uint32_t len, uint8_t *buf)
 
int(* write_page )(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required)
 
int(* write_oob_raw )(struct mtd_info *mtd, struct nand_chip *chip, int page)
 
int(* read_oob_raw )(struct mtd_info *mtd, struct nand_chip *chip, int page)
 
int(* read_oob )(struct mtd_info *mtd, struct nand_chip *chip, int page)
 
int(* write_oob )(struct mtd_info *mtd, struct nand_chip *chip, int page)
 

Detailed Description

struct nand_ecc_ctrl - Control structure for ECC : ECC mode : number of ECC steps per page : data bytes per ECC step : ECC bytes per step : max number of correctible bits per ECC step : total number of ECC bytes per page : padding information for syndrome based ECC generators : padding information for syndrome based ECC generators : ECC layout control struct pointer : pointer to private ECC control data : function to control hardware ECC generator. Must only be provided if an hardware ECC is available : function for ECC calculation or readback from ECC hardware : function for ECC correction, matching to ECC generator (sw/hw) : function to read a raw page without ECC : function to write a raw page without ECC : function to read a page according to the ECC generator requirements; returns maximum number of bitflips corrected in any single ECC step, 0 if bitflips uncorrectable, -EIO hw error : function to read parts of the page covered by ECC; returns same as read_page() : function to write a page according to the ECC generator requirements. : function to write chip OOB data without ECC : function to read chip OOB data without ECC : function to read chip OOB data : function to write chip OOB data

Definition at line 357 of file nand.h.

Field Documentation

int bytes

Definition at line 361 of file nand.h.

int(* calculate)(struct mtd_info *mtd, const uint8_t *dat, uint8_t *ecc_code)

Definition at line 369 of file nand.h.

int(* correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc)

Definition at line 371 of file nand.h.

void(* hwctl)(struct mtd_info *mtd, int mode)

Definition at line 368 of file nand.h.

Definition at line 366 of file nand.h.

Definition at line 358 of file nand.h.

int postpad

Definition at line 365 of file nand.h.

int prepad

Definition at line 364 of file nand.h.

Definition at line 367 of file nand.h.

int(* read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page)

Definition at line 387 of file nand.h.

int(* read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip, int page)

Definition at line 385 of file nand.h.

int(* read_page)(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page)

Definition at line 377 of file nand.h.

int(* read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, uint8_t *buf, int oob_required, int page)

Definition at line 373 of file nand.h.

Definition at line 379 of file nand.h.

int size

Definition at line 360 of file nand.h.

int steps

Definition at line 359 of file nand.h.

int strength

Definition at line 363 of file nand.h.

int total

Definition at line 362 of file nand.h.

int(* write_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page)

Definition at line 388 of file nand.h.

int(* write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip, int page)

Definition at line 383 of file nand.h.

int(* write_page)(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required)

Definition at line 381 of file nand.h.

int(* write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int oob_required)

Definition at line 375 of file nand.h.


The documentation for this struct was generated from the following file: