diff options
Diffstat (limited to 'include/linux/mtd/nand.h')
| -rw-r--r-- | include/linux/mtd/nand.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index e4d451e4600b..3d4ea7eb2b68 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -455,8 +455,21 @@ struct nand_hw_control { | |||
| 455 | * be provided if an hardware ECC is available | 455 | * be provided if an hardware ECC is available |
| 456 | * @calculate: function for ECC calculation or readback from ECC hardware | 456 | * @calculate: function for ECC calculation or readback from ECC hardware |
| 457 | * @correct: function for ECC correction, matching to ECC generator (sw/hw) | 457 | * @correct: function for ECC correction, matching to ECC generator (sw/hw) |
| 458 | * @read_page_raw: function to read a raw page without ECC | 458 | * @read_page_raw: function to read a raw page without ECC. This function |
| 459 | * @write_page_raw: function to write a raw page without ECC | 459 | * should hide the specific layout used by the ECC |
| 460 | * controller and always return contiguous in-band and | ||
| 461 | * out-of-band data even if they're not stored | ||
| 462 | * contiguously on the NAND chip (e.g. | ||
| 463 | * NAND_ECC_HW_SYNDROME interleaves in-band and | ||
| 464 | * out-of-band data). | ||
| 465 | * @write_page_raw: function to write a raw page without ECC. This function | ||
| 466 | * should hide the specific layout used by the ECC | ||
| 467 | * controller and consider the passed data as contiguous | ||
| 468 | * in-band and out-of-band data. ECC controller is | ||
| 469 | * responsible for doing the appropriate transformations | ||
| 470 | * to adapt to its specific layout (e.g. | ||
| 471 | * NAND_ECC_HW_SYNDROME interleaves in-band and | ||
| 472 | * out-of-band data). | ||
| 460 | * @read_page: function to read a page according to the ECC generator | 473 | * @read_page: function to read a page according to the ECC generator |
| 461 | * requirements; returns maximum number of bitflips corrected in | 474 | * requirements; returns maximum number of bitflips corrected in |
| 462 | * any single ECC step, 0 if bitflips uncorrectable, -EIO hw error | 475 | * any single ECC step, 0 if bitflips uncorrectable, -EIO hw error |
| @@ -723,6 +736,7 @@ struct nand_chip { | |||
| 723 | #define NAND_MFR_EON 0x92 | 736 | #define NAND_MFR_EON 0x92 |
| 724 | #define NAND_MFR_SANDISK 0x45 | 737 | #define NAND_MFR_SANDISK 0x45 |
| 725 | #define NAND_MFR_INTEL 0x89 | 738 | #define NAND_MFR_INTEL 0x89 |
| 739 | #define NAND_MFR_ATO 0x9b | ||
| 726 | 740 | ||
| 727 | /* The maximum expected count of bytes in the NAND ID sequence */ | 741 | /* The maximum expected count of bytes in the NAND ID sequence */ |
| 728 | #define NAND_MAX_ID_LEN 8 | 742 | #define NAND_MAX_ID_LEN 8 |
