sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget&/translations/zh_CN/driver-api/mtdnandmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/zh_TW/driver-api/mtdnandmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/it_IT/driver-api/mtdnandmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ja_JP/driver-api/mtdnandmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ko_KR/driver-api/mtdnandmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/sp_SP/driver-api/mtdnandmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h%MTD NAND Driver Programming Interfaceh]h%MTD NAND Driver Programming Interface}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh@/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand.rsthKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(hThomas Gleixner h]h paragraph)}(hThomas Gleixnerh]hThomas Gleixner}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Introductionh]h Introduction}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hThe generic NAND driver supports almost all NAND and AG-AND based chips and connects them to the Memory Technology Devices (MTD) subsystem of the Linux Kernel.h]hThe generic NAND driver supports almost all NAND and AG-AND based chips and connects them to the Memory Technology Devices (MTD) subsystem of the Linux Kernel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hThis documentation is provided for developers who want to implement board drivers or filesystem drivers suitable for NAND devices.h]hThis documentation is provided for developers who want to implement board drivers or filesystem drivers suitable for NAND devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h] introductionah ]h"] introductionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hKnown Bugs And Assumptionsh]hKnown Bugs And Assumptions}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hhhhhKubh)}(hNone.h]hNone.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj.hhubeh}(h]known-bugs-and-assumptionsah ]h"]known bugs and assumptionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDocumentation hintsh]hDocumentation hints}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhKubh)}(hThe function and structure docs are autogenerated. Each function and struct member has a short description which is marked with an [XXX] identifier. The following chapters explain the meaning of those identifiers.h]hThe function and structure docs are autogenerated. Each function and struct member has a short description which is marked with an [XXX] identifier. The following chapters explain the meaning of those identifiers.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjUhhubh)}(hhh](h)}(hFunction identifiers [XXX]h]hFunction identifiers [XXX]}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKubh)}(hThe functions are marked with [XXX] identifiers in the short comment. The identifiers explain the usage and scope of the functions. Following identifiers are used:h]hThe functions are marked with [XXX] identifiers in the short comment. The identifiers explain the usage and scope of the functions. Following identifiers are used:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjthhubh bullet_list)}(hhh](h list_item)}(h[MTD Interface] These functions provide the interface to the MTD kernel API. They are not replaceable and provide functionality which is complete hardware independent. h](h)}(h[MTD Interface]h]h[MTD Interface]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubh)}(hThese functions provide the interface to the MTD kernel API. They are not replaceable and provide functionality which is complete hardware independent.h]hThese functions provide the interface to the MTD kernel API. They are not replaceable and provide functionality which is complete hardware independent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(ha[NAND Interface] These functions are exported and provide the interface to the NAND kernel API. h](h)}(h[NAND Interface]h]h[NAND Interface]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubh)}(hNThese functions are exported and provide the interface to the NAND kernel API.h]hNThese functions are exported and provide the interface to the NAND kernel API.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hs[GENERIC] Generic functions are not replaceable and provide functionality which is complete hardware independent. h](h)}(h [GENERIC]h]h [GENERIC]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubh)}(hgGeneric functions are not replaceable and provide functionality which is complete hardware independent.h]hgGeneric functions are not replaceable and provide functionality which is complete hardware independent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hX[DEFAULT] Default functions provide hardware related functionality which is suitable for most of the implementations. These functions can be replaced by the board driver if necessary. Those functions are called via pointers in the NAND chip description structure. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type. h](h)}(h [DEFAULT]h]h [DEFAULT]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hj ubh)}(hX Default functions provide hardware related functionality which is suitable for most of the implementations. These functions can be replaced by the board driver if necessary. Those functions are called via pointers in the NAND chip description structure. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type.h]hX Default functions provide hardware related functionality which is suitable for most of the implementations. These functions can be replaced by the board driver if necessary. Those functions are called via pointers in the NAND chip description structure. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hj ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhK%hjthhubeh}(h]function-identifiers-xxxah ]h"]function identifiers [xxx]ah$]h&]uh1hhjUhhhhhKubh)}(hhh](h)}(hStruct member identifiers [XXX]h]hStruct member identifiers [XXX]}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhhhhhKAubh)}(hThe struct members are marked with [XXX] identifiers in the comment. The identifiers explain the usage and scope of the members. Following identifiers are used:h]hThe struct members are marked with [XXX] identifiers in the comment. The identifiers explain the usage and scope of the members. Following identifiers are used:}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChjBhhubj)}(hhh](j)}(h[INTERN] These members are for NAND driver internal use only and must not be modified. Most of these values are calculated from the chip geometry information which is evaluated during nand_scan(). h](h)}(h[INTERN]h]h[INTERN]}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhjdubh)}(hThese members are for NAND driver internal use only and must not be modified. Most of these values are calculated from the chip geometry information which is evaluated during nand_scan().h]hThese members are for NAND driver internal use only and must not be modified. Most of these values are calculated from the chip geometry information which is evaluated during nand_scan().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhjdubeh}(h]h ]h"]h$]h&]uh1jhjahhhhhNubj)}(hX}[REPLACEABLE] Replaceable members hold hardware related functions which can be provided by the board driver. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type. h](h)}(h [REPLACEABLE]h]h [REPLACEABLE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjubh)}(hXmReplaceable members hold hardware related functions which can be provided by the board driver. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type.h]hXmReplaceable members hold hardware related functions which can be provided by the board driver. The board driver can set the functions which should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjubeh}(h]h ]h"]h$]h&]uh1jhjahhhhhNubj)}(h[BOARDSPECIFIC] Board specific members hold hardware related information which must be provided by the board driver. The board driver must set the function pointers and datafields before calling nand_scan(). h](h)}(h[BOARDSPECIFIC]h]h[BOARDSPECIFIC]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjubh)}(hBoard specific members hold hardware related information which must be provided by the board driver. The board driver must set the function pointers and datafields before calling nand_scan().h]hBoard specific members hold hardware related information which must be provided by the board driver. The board driver must set the function pointers and datafields before calling nand_scan().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjubeh}(h]h ]h"]h$]h&]uh1jhjahhhhhNubj)}(h[OPTIONAL] Optional members can hold information relevant for the board driver. The generic NAND driver code does not use this information. h](h)}(h [OPTIONAL]h]h [OPTIONAL]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjubh)}(hOptional members can hold information relevant for the board driver. The generic NAND driver code does not use this information.h]hOptional members can hold information relevant for the board driver. The generic NAND driver code does not use this information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hjubeh}(h]h ]h"]h$]h&]uh1jhjahhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhKGhjBhhubeh}(h]struct-member-identifiers-xxxah ]h"]struct member identifiers [xxx]ah$]h&]uh1hhjUhhhhhKAubeh}(h]documentation-hintsah ]h"]documentation hintsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBasic board driverh]hBasic board driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKbubh)}(hFor most boards it will be sufficient to provide just the basic functions and fill out some really board dependent members in the nand chip description structure.h]hFor most boards it will be sufficient to provide just the basic functions and fill out some really board dependent members in the nand chip description structure.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjhhubh)}(hhh](h)}(h Basic definesh]h Basic defines}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhKiubh)}(hXAt least you have to provide a nand_chip structure and a storage for the ioremap'ed chip address. You can allocate the nand_chip structure using kmalloc or you can allocate it statically. The NAND chip structure embeds an mtd structure which will be registered to the MTD subsystem. You can extract a pointer to the mtd structure from a nand_chip pointer using the nand_to_mtd() helper.h]hXAt least you have to provide a nand_chip structure and a storage for the ioremap’ed chip address. You can allocate the nand_chip structure using kmalloc or you can allocate it statically. The NAND chip structure embeds an mtd structure which will be registered to the MTD subsystem. You can extract a pointer to the mtd structure from a nand_chip pointer using the nand_to_mtd() helper.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhj1hhubh)}(hKmalloc based exampleh]hKmalloc based example}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhj1hhubh literal_block)}(hAstatic struct mtd_info *board_mtd; static void __iomem *baseaddr;h]hAstatic struct mtd_info *board_mtd; static void __iomem *baseaddr;}hj`sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j^hhhKvhj1hhubh)}(hStatic exampleh]hStatic example}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhj1hhubj_)}(hBstatic struct nand_chip board_chip; static void __iomem *baseaddr;h]hBstatic struct nand_chip board_chip; static void __iomem *baseaddr;}hj~sbah}(h]h ]h"]h$]h&]jnjouh1j^hhhK~hj1hhubeh}(h] basic-definesah ]h"] basic definesah$]h&]uh1hhjhhhhhKiubh)}(hhh](h)}(hPartition definesh]hPartition defines}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hlIf you want to divide your device into partitions, then define a partitioning scheme suitable to your board.h]hlIf you want to divide your device into partitions, then define a partitioning scheme suitable to your board.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj_)}(hX#define NUM_PARTITIONS 2 static struct mtd_partition partition_info[] = { { .name = "Flash partition 1", .offset = 0, .size = 8 * 1024 * 1024 }, { .name = "Flash partition 2", .offset = MTDPART_OFS_NEXT, .size = MTDPART_SIZ_FULL }, };h]hX#define NUM_PARTITIONS 2 static struct mtd_partition partition_info[] = { { .name = "Flash partition 1", .offset = 0, .size = 8 * 1024 * 1024 }, { .name = "Flash partition 2", .offset = MTDPART_OFS_NEXT, .size = MTDPART_SIZ_FULL }, };}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhKhjhhubeh}(h]partition-definesah ]h"]partition definesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hHardware control functionh]hHardware control function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hThe hardware control function provides access to the control pins of the NAND chip(s). The access can be done by GPIO pins or by address lines. If you use address lines, make sure that the timing requirements are met.h]hThe hardware control function provides access to the control pins of the NAND chip(s). The access can be done by GPIO pins or by address lines. If you use address lines, make sure that the timing requirements are met.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h*GPIO based example*h]hemphasis)}(hjh]hGPIO based example}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj_)}(hXstatic void board_hwcontrol(struct mtd_info *mtd, int cmd) { switch(cmd){ case NAND_CTL_SETCLE: /* Set CLE pin high */ break; case NAND_CTL_CLRCLE: /* Set CLE pin low */ break; case NAND_CTL_SETALE: /* Set ALE pin high */ break; case NAND_CTL_CLRALE: /* Set ALE pin low */ break; case NAND_CTL_SETNCE: /* Set nCE pin low */ break; case NAND_CTL_CLRNCE: /* Set nCE pin high */ break; } }h]hXstatic void board_hwcontrol(struct mtd_info *mtd, int cmd) { switch(cmd){ case NAND_CTL_SETCLE: /* Set CLE pin high */ break; case NAND_CTL_CLRCLE: /* Set CLE pin low */ break; case NAND_CTL_SETALE: /* Set ALE pin high */ break; case NAND_CTL_CLRALE: /* Set ALE pin low */ break; case NAND_CTL_SETNCE: /* Set nCE pin low */ break; case NAND_CTL_CLRNCE: /* Set nCE pin high */ break; } }}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhKhjhhubh)}(h`*Address lines based example.* It's assumed that the nCE pin is driven by a chip select decoder.h](j)}(h*Address lines based example.*h]hAddress lines based example.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD It’s assumed that the nCE pin is driven by a chip select decoder.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj_)}(hXstatic void board_hwcontrol(struct mtd_info *mtd, int cmd) { struct nand_chip *this = mtd_to_nand(mtd); switch(cmd){ case NAND_CTL_SETCLE: this->legacy.IO_ADDR_W |= CLE_ADRR_BIT; break; case NAND_CTL_CLRCLE: this->legacy.IO_ADDR_W &= ~CLE_ADRR_BIT; break; case NAND_CTL_SETALE: this->legacy.IO_ADDR_W |= ALE_ADRR_BIT; break; case NAND_CTL_CLRALE: this->legacy.IO_ADDR_W &= ~ALE_ADRR_BIT; break; } }h]hXstatic void board_hwcontrol(struct mtd_info *mtd, int cmd) { struct nand_chip *this = mtd_to_nand(mtd); switch(cmd){ case NAND_CTL_SETCLE: this->legacy.IO_ADDR_W |= CLE_ADRR_BIT; break; case NAND_CTL_CLRCLE: this->legacy.IO_ADDR_W &= ~CLE_ADRR_BIT; break; case NAND_CTL_SETALE: this->legacy.IO_ADDR_W |= ALE_ADRR_BIT; break; case NAND_CTL_CLRALE: this->legacy.IO_ADDR_W &= ~ALE_ADRR_BIT; break; } }}hj+sbah}(h]h ]h"]h$]h&]jnjouh1j^hhhKhjhhubeh}(h]hardware-control-functionah ]h"]hardware control functionah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDevice ready functionh]hDevice ready function}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhhhhhKubh)}(hXIf the hardware interface has the ready busy pin of the NAND chip connected to a GPIO or other accessible I/O pin, this function is used to read back the state of the pin. The function has no arguments and should return 0, if the device is busy (R/B pin is low) and 1, if the device is ready (R/B pin is high). If the hardware interface does not give access to the ready busy pin, then the function must not be defined and the function pointer this->legacy.dev_ready is set to NULL.h]hXIf the hardware interface has the ready busy pin of the NAND chip connected to a GPIO or other accessible I/O pin, this function is used to read back the state of the pin. The function has no arguments and should return 0, if the device is busy (R/B pin is low) and 1, if the device is ready (R/B pin is high). If the hardware interface does not give access to the ready busy pin, then the function must not be defined and the function pointer this->legacy.dev_ready is set to NULL.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAhhubeh}(h]device-ready-functionah ]h"]device ready functionah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h Init functionh]h Init function}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhhKubh)}(hXThe init function allocates memory and sets up all the board specific parameters and function pointers. When everything is set up nand_scan() is called. This function tries to detect and identify then chip. If a chip is found all the internal data fields are initialized accordingly. The structure(s) have to be zeroed out first and then filled with the necessary information about the device.h]hXThe init function allocates memory and sets up all the board specific parameters and function pointers. When everything is set up nand_scan() is called. This function tries to detect and identify then chip. If a chip is found all the internal data fields are initialized accordingly. The structure(s) have to be zeroed out first and then filled with the necessary information about the device.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhhubj_)}(hX]static int __init board_init (void) { struct nand_chip *this; int err = 0; /* Allocate memory for MTD device structure and private data */ this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); if (!this) { printk ("Unable to allocate NAND MTD device structure.\n"); err = -ENOMEM; goto out; } board_mtd = nand_to_mtd(this); /* map physical address */ baseaddr = ioremap(CHIP_PHYSICAL_ADDRESS, 1024); if (!baseaddr) { printk("Ioremap to access NAND chip failed\n"); err = -EIO; goto out_mtd; } /* Set address of NAND IO lines */ this->legacy.IO_ADDR_R = baseaddr; this->legacy.IO_ADDR_W = baseaddr; /* Reference hardware control function */ this->hwcontrol = board_hwcontrol; /* Set command delay time, see datasheet for correct value */ this->legacy.chip_delay = CHIP_DEPENDEND_COMMAND_DELAY; /* Assign the device ready function, if available */ this->legacy.dev_ready = board_dev_ready; this->eccmode = NAND_ECC_SOFT; /* Scan to find existence of the device */ if (nand_scan (this, 1)) { err = -ENXIO; goto out_ior; } add_mtd_partitions(board_mtd, partition_info, NUM_PARTITIONS); goto out; out_ior: iounmap(baseaddr); out_mtd: kfree (this); out: return err; } module_init(board_init);h]hX]static int __init board_init (void) { struct nand_chip *this; int err = 0; /* Allocate memory for MTD device structure and private data */ this = kzalloc(sizeof(struct nand_chip), GFP_KERNEL); if (!this) { printk ("Unable to allocate NAND MTD device structure.\n"); err = -ENOMEM; goto out; } board_mtd = nand_to_mtd(this); /* map physical address */ baseaddr = ioremap(CHIP_PHYSICAL_ADDRESS, 1024); if (!baseaddr) { printk("Ioremap to access NAND chip failed\n"); err = -EIO; goto out_mtd; } /* Set address of NAND IO lines */ this->legacy.IO_ADDR_R = baseaddr; this->legacy.IO_ADDR_W = baseaddr; /* Reference hardware control function */ this->hwcontrol = board_hwcontrol; /* Set command delay time, see datasheet for correct value */ this->legacy.chip_delay = CHIP_DEPENDEND_COMMAND_DELAY; /* Assign the device ready function, if available */ this->legacy.dev_ready = board_dev_ready; this->eccmode = NAND_ECC_SOFT; /* Scan to find existence of the device */ if (nand_scan (this, 1)) { err = -ENXIO; goto out_ior; } add_mtd_partitions(board_mtd, partition_info, NUM_PARTITIONS); goto out; out_ior: iounmap(baseaddr); out_mtd: kfree (this); out: return err; } module_init(board_init);}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhKhjhhhubeh}(h] init-functionah ]h"] init functionah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h Exit functionh]h Exit function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM ubh)}(hThe exit function is only necessary if the driver is compiled as a module. It releases all resources which are held by the chip driver and unregisters the partitions in the MTD layer.h]hThe exit function is only necessary if the driver is compiled as a module. It releases all resources which are held by the chip driver and unregisters the partitions in the MTD layer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj_)}(hXs#ifdef MODULE static void __exit board_cleanup (void) { /* Unregister device */ WARN_ON(mtd_device_unregister(board_mtd)); /* Release resources */ nand_cleanup(mtd_to_nand(board_mtd)); /* unmap physical address */ iounmap(baseaddr); /* Free the MTD device structure */ kfree (mtd_to_nand(board_mtd)); } module_exit(board_cleanup); #endifh]hXs#ifdef MODULE static void __exit board_cleanup (void) { /* Unregister device */ WARN_ON(mtd_device_unregister(board_mtd)); /* Release resources */ nand_cleanup(mtd_to_nand(board_mtd)); /* unmap physical address */ iounmap(baseaddr); /* Free the MTD device structure */ kfree (mtd_to_nand(board_mtd)); } module_exit(board_cleanup); #endif}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMhjhhubeh}(h] exit-functionah ]h"] exit functionah$]h&]uh1hhjhhhhhM ubeh}(h]basic-board-driverah ]h"]basic board driverah$]h&]uh1hhhhhhhhKbubh)}(hhh](h)}(hAdvanced board driver functionsh]hAdvanced board driver functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM'ubh)}(hThis chapter describes the advanced functionality of the NAND driver. For a list of functions which can be overridden by the board driver see the documentation of the nand_chip structure.h]hThis chapter describes the advanced functionality of the NAND driver. For a list of functions which can be overridden by the board driver see the documentation of the nand_chip structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM)hjhhubh)}(hhh](h)}(hMultiple chip controlh]hMultiple chip control}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM.ubh)}(hXThe nand driver can control chip arrays. Therefore the board driver must provide an own select_chip function. This function must (de)select the requested chip. The function pointer in the nand_chip structure must be set before calling nand_scan(). The maxchip parameter of nand_scan() defines the maximum number of chips to scan for. Make sure that the select_chip function can handle the requested number of chips.h]hXThe nand driver can control chip arrays. Therefore the board driver must provide an own select_chip function. This function must (de)select the requested chip. The function pointer in the nand_chip structure must be set before calling nand_scan(). The maxchip parameter of nand_scan() defines the maximum number of chips to scan for. Make sure that the select_chip function can handle the requested number of chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hjhhubh)}(hkThe nand driver concatenates the chips to one virtual chip and provides this virtual chip to the MTD layer.h]hkThe nand driver concatenates the chips to one virtual chip and provides this virtual chip to the MTD layer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hjhhubh)}(h*Note: The driver can only handle linear chip arrays of equally sized chips. There is no support for parallel arrays which extend the buswidth.*h]j)}(hj(h]hNote: The driver can only handle linear chip arrays of equally sized chips. There is no support for parallel arrays which extend the buswidth.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhhhM:hjhhubh)}(h*GPIO based example*h]j)}(hj?h]hGPIO based example}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhhhM>hjhhubj_)}(hstatic void board_select_chip (struct mtd_info *mtd, int chip) { /* Deselect all chips, set all nCE pins high */ GPIO(BOARD_NAND_NCE) |= 0xff; if (chip >= 0) GPIO(BOARD_NAND_NCE) &= ~ (1 << chip); }h]hstatic void board_select_chip (struct mtd_info *mtd, int chip) { /* Deselect all chips, set all nCE pins high */ GPIO(BOARD_NAND_NCE) |= 0xff; if (chip >= 0) GPIO(BOARD_NAND_NCE) &= ~ (1 << chip); }}hjTsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMBhjhhubh)}(ha*Address lines based example.* Its assumed that the nCE pins are connected to an address decoder.h](j)}(h*Address lines based example.*h]hAddress lines based example.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubhC Its assumed that the nCE pins are connected to an address decoder.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMKhjhhubj_)}(hX6static void board_select_chip (struct mtd_info *mtd, int chip) { struct nand_chip *this = mtd_to_nand(mtd); /* Deselect all chips */ this->legacy.IO_ADDR_R &= ~BOARD_NAND_ADDR_MASK; this->legacy.IO_ADDR_W &= ~BOARD_NAND_ADDR_MASK; switch (chip) { case 0: this->legacy.IO_ADDR_R |= BOARD_NAND_ADDR_CHIP0; this->legacy.IO_ADDR_W |= BOARD_NAND_ADDR_CHIP0; break; .... case n: this->legacy.IO_ADDR_R |= BOARD_NAND_ADDR_CHIPn; this->legacy.IO_ADDR_W |= BOARD_NAND_ADDR_CHIPn; break; } }h]hX6static void board_select_chip (struct mtd_info *mtd, int chip) { struct nand_chip *this = mtd_to_nand(mtd); /* Deselect all chips */ this->legacy.IO_ADDR_R &= ~BOARD_NAND_ADDR_MASK; this->legacy.IO_ADDR_W &= ~BOARD_NAND_ADDR_MASK; switch (chip) { case 0: this->legacy.IO_ADDR_R |= BOARD_NAND_ADDR_CHIP0; this->legacy.IO_ADDR_W |= BOARD_NAND_ADDR_CHIP0; break; .... case n: this->legacy.IO_ADDR_R |= BOARD_NAND_ADDR_CHIPn; this->legacy.IO_ADDR_W |= BOARD_NAND_ADDR_CHIPn; break; } }}hj~sbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMPhjhhubeh}(h]multiple-chip-controlah ]h"]multiple chip controlah$]h&]uh1hhjhhhhhM.ubh)}(hhh](h)}(hHardware ECC supporth]hHardware ECC support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMfubh)}(hhh](h)}(hFunctions and constantsh]hFunctions and constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMiubh)}(h?The nand driver supports three different types of hardware ECC.h]h?The nand driver supports three different types of hardware ECC.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhjhhubj)}(hhh](j)}(hMNAND_ECC_HW3_256 Hardware ECC generator providing 3 bytes ECC per 256 byte. h](h)}(hNAND_ECC_HW3_256h]hNAND_ECC_HW3_256}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjubh)}(h:Hardware ECC generator providing 3 bytes ECC per 256 byte.h]h:Hardware ECC generator providing 3 bytes ECC per 256 byte.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hMNAND_ECC_HW3_512 Hardware ECC generator providing 3 bytes ECC per 512 byte. h](h)}(hNAND_ECC_HW3_512h]hNAND_ECC_HW3_512}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMqhjubh)}(h:Hardware ECC generator providing 3 bytes ECC per 512 byte.h]h:Hardware ECC generator providing 3 bytes ECC per 512 byte.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hMNAND_ECC_HW6_512 Hardware ECC generator providing 6 bytes ECC per 512 byte. h](h)}(hNAND_ECC_HW6_512h]hNAND_ECC_HW6_512}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjubh)}(h:Hardware ECC generator providing 6 bytes ECC per 512 byte.h]h:Hardware ECC generator providing 6 bytes ECC per 512 byte.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hMNAND_ECC_HW8_512 Hardware ECC generator providing 8 bytes ECC per 512 byte. h](h)}(hNAND_ECC_HW8_512h]hNAND_ECC_HW8_512}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhj9ubh)}(h:Hardware ECC generator providing 8 bytes ECC per 512 byte.h]h:Hardware ECC generator providing 8 bytes ECC per 512 byte.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj9ubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhMmhjhhubh)}(hgIf your hardware generator has a different functionality add it at the appropriate place in nand_base.ch]hgIf your hardware generator has a different functionality add it at the appropriate place in nand_base.c}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hjhhubh)}(h2The board driver must provide following functions:h]h2The board driver must provide following functions:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh](j)}(henable_hwecc This function is called before reading / writing to the chip. Reset or initialize the hardware generator in this function. The function is called with an argument which let you distinguish between read and write operations. h](h)}(h enable_hwecch]h enable_hwecc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hThis function is called before reading / writing to the chip. Reset or initialize the hardware generator in this function. The function is called with an argument which let you distinguish between read and write operations.h]hThis function is called before reading / writing to the chip. Reset or initialize the hardware generator in this function. The function is called with an argument which let you distinguish between read and write operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hcalculate_ecc This function is called after read / write from / to the chip. Transfer the ECC from the hardware to the buffer. If the option NAND_HWECC_SYNDROME is set then the function is only called on write. See below. h](h)}(h calculate_ecch]h calculate_ecc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hThis function is called after read / write from / to the chip. Transfer the ECC from the hardware to the buffer. If the option NAND_HWECC_SYNDROME is set then the function is only called on write. See below.h]hThis function is called after read / write from / to the chip. Transfer the ECC from the hardware to the buffer. If the option NAND_HWECC_SYNDROME is set then the function is only called on write. See below.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXcorrect_data In case of an ECC error this function is called for error detection and correction. Return 1 respectively 2 in case the error can be corrected. If the error is not correctable return -1. If your hardware generator matches the default algorithm of the nand_ecc software generator then use the correction function provided by nand_ecc instead of implementing duplicated code. h](h)}(h correct_datah]h correct_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hXuIn case of an ECC error this function is called for error detection and correction. Return 1 respectively 2 in case the error can be corrected. If the error is not correctable return -1. If your hardware generator matches the default algorithm of the nand_ecc software generator then use the correction function provided by nand_ecc instead of implementing duplicated code.h]hXuIn case of an ECC error this function is called for error detection and correction. Return 1 respectively 2 in case the error can be corrected. If the error is not correctable return -1. If your hardware generator matches the default algorithm of the nand_ecc software generator then use the correction function provided by nand_ecc instead of implementing duplicated code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhMhjhhubeh}(h]functions-and-constantsah ]h"]functions and constantsah$]h&]uh1hhjhhhhhMiubh)}(hhh](h)}(h&Hardware ECC with syndrome calculationh]h&Hardware ECC with syndrome calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hMany hardware ECC implementations provide Reed-Solomon codes and calculate an error syndrome on read. The syndrome must be converted to a standard Reed-Solomon syndrome before calling the error correction code in the generic Reed-Solomon library.h]hMany hardware ECC implementations provide Reed-Solomon codes and calculate an error syndrome on read. The syndrome must be converted to a standard Reed-Solomon syndrome before calling the error correction code in the generic Reed-Solomon library.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hXThe ECC bytes must be placed immediately after the data bytes in order to make the syndrome generator work. This is contrary to the usual layout used by software ECC. The separation of data and out of band area is not longer possible. The nand driver code handles this layout and the remaining free bytes in the oob area are managed by the autoplacement code. Provide a matching oob-layout in this case. See rts_from4.c and diskonchip.c for implementation reference. In those cases we must also use bad block tables on FLASH, because the ECC layout is interfering with the bad block marker positions. See bad block table support for details.h]hXThe ECC bytes must be placed immediately after the data bytes in order to make the syndrome generator work. This is contrary to the usual layout used by software ECC. The separation of data and out of band area is not longer possible. The nand driver code handles this layout and the remaining free bytes in the oob area are managed by the autoplacement code. Provide a matching oob-layout in this case. See rts_from4.c and diskonchip.c for implementation reference. In those cases we must also use bad block tables on FLASH, because the ECC layout is interfering with the bad block marker positions. See bad block table support for details.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]&hardware-ecc-with-syndrome-calculationah ]h"]&hardware ecc with syndrome calculationah$]h&]uh1hhjhhhhhMubeh}(h]hardware-ecc-supportah ]h"]hardware ecc supportah$]h&]uh1hhjhhhhhMfubh)}(hhh](h)}(hBad block table supporth]hBad block table support}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhhhhhMubh)}(hXqMost NAND chips mark the bad blocks at a defined position in the spare area. Those blocks must not be erased under any circumstances as the bad block information would be lost. It is possible to check the bad block mark each time when the blocks are accessed by reading the spare area of the first page in the block. This is time consuming so a bad block table is used.h]hXqMost NAND chips mark the bad blocks at a defined position in the spare area. Those blocks must not be erased under any circumstances as the bad block information would be lost. It is possible to check the bad block mark each time when the blocks are accessed by reading the spare area of the first page in the block. This is time consuming so a bad block table is used.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAhhubh)}(h;The nand driver supports various types of bad block tables.h]h;The nand driver supports various types of bad block tables.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAhhubj)}(hhh](j)}(hvPer device The bad block table contains all bad block information of the device which can consist of multiple chips. h](h)}(h Per deviceh]h Per device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjqubh)}(hiThe bad block table contains all bad block information of the device which can consist of multiple chips.h]hiThe bad block table contains all bad block information of the device which can consist of multiple chips.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjqubeh}(h]h ]h"]h$]h&]uh1jhjnhhhhhNubj)}(hnPer chip A bad block table is used per chip and contains the bad block information for this particular chip. h](h)}(hPer chiph]hPer chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hcA bad block table is used per chip and contains the bad block information for this particular chip.h]hcA bad block table is used per chip and contains the bad block information for this particular chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnhhhhhNubj)}(hFixed offset The bad block table is located at a fixed offset in the chip (device). This applies to various DiskOnChip devices. h](h)}(h Fixed offseth]h Fixed offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hrThe bad block table is located at a fixed offset in the chip (device). This applies to various DiskOnChip devices.h]hrThe bad block table is located at a fixed offset in the chip (device). This applies to various DiskOnChip devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnhhhhhNubj)}(hAutomatic placed The bad block table is automatically placed and detected either at the end or at the beginning of a chip (device) h](h)}(hAutomatic placedh]hAutomatic placed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hqThe bad block table is automatically placed and detected either at the end or at the beginning of a chip (device)h]hqThe bad block table is automatically placed and detected either at the end or at the beginning of a chip (device)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnhhhhhNubj)}(hMirrored tables The bad block table is mirrored on the chip (device) to allow updates of the bad block table without data loss. h](h)}(hMirrored tablesh]hMirrored tables}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hoThe bad block table is mirrored on the chip (device) to allow updates of the bad block table without data loss.h]hoThe bad block table is mirrored on the chip (device) to allow updates of the bad block table without data loss.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjnhhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhMhjAhhubh)}(hnand_scan() calls the function nand_default_bbt(). nand_default_bbt() selects appropriate default bad block table descriptors depending on the chip information which was retrieved by nand_scan().h]hnand_scan() calls the function nand_default_bbt(). nand_default_bbt() selects appropriate default bad block table descriptors depending on the chip information which was retrieved by nand_scan().}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAhhubh)}(hThe standard policy is scanning the device for bad blocks and build a ram based bad block table which allows faster access than always checking the bad block information on the flash chip itself.h]hThe standard policy is scanning the device for bad blocks and build a ram based bad block table which allows faster access than always checking the bad block information on the flash chip itself.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAhhubh)}(hhh](h)}(hFlash based tablesh]hFlash based tables}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhhhhhMubh)}(hXIt may be desired or necessary to keep a bad block table in FLASH. For AG-AND chips this is mandatory, as they have no factory marked bad blocks. They have factory marked good blocks. The marker pattern is erased when the block is erased to be reused. So in case of powerloss before writing the pattern back to the chip this block would be lost and added to the bad blocks. Therefore we scan the chip(s) when we detect them the first time for good blocks and store this information in a bad block table before erasing any of the blocks.h]hXIt may be desired or necessary to keep a bad block table in FLASH. For AG-AND chips this is mandatory, as they have no factory marked bad blocks. They have factory marked good blocks. The marker pattern is erased when the block is erased to be reused. So in case of powerloss before writing the pattern back to the chip this block would be lost and added to the bad blocks. Therefore we scan the chip(s) when we detect them the first time for good blocks and store this information in a bad block table before erasing any of the blocks.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQhhubh)}(hThe blocks in which the tables are stored are protected against accidental access by marking them bad in the memory bad block table. The bad block table management functions are allowed to circumvent this protection.h]hThe blocks in which the tables are stored are protected against accidental access by marking them bad in the memory bad block table. The bad block table management functions are allowed to circumvent this protection.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQhhubh)}(hXfThe simplest way to activate the FLASH based bad block table support is to set the option NAND_BBT_USE_FLASH in the bbt_option field of the nand chip structure before calling nand_scan(). For AG-AND chips is this done by default. This activates the default FLASH based bad block table functionality of the NAND driver. The default bad block table options areh]hXfThe simplest way to activate the FLASH based bad block table support is to set the option NAND_BBT_USE_FLASH in the bbt_option field of the nand chip structure before calling nand_scan(). For AG-AND chips is this done by default. This activates the default FLASH based bad block table functionality of the NAND driver. The default bad block table options are}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQhhubj)}(hhh](j)}(hStore bad block table per chip h]h)}(hStore bad block table per chiph]hStore bad block table per chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hUse 2 bits per block h]h)}(hUse 2 bits per blockh]hUse 2 bits per block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h+Automatic placement at the end of the chip h]h)}(h*Automatic placement at the end of the chiph]h*Automatic placement at the end of the chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h)Use mirrored tables with version numbers h]h)}(h(Use mirrored tables with version numbersh]h(Use mirrored tables with version numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h(Reserve 4 blocks at the end of the chip h]h)}(h'Reserve 4 blocks at the end of the chiph]h'Reserve 4 blocks at the end of the chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhMhjQhhubeh}(h]flash-based-tablesah ]h"]flash based tablesah$]h&]uh1hhjAhhhhhMubh)}(hhh](h)}(hUser defined tablesh]hUser defined tables}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hXUser defined tables are created by filling out a nand_bbt_descr structure and storing the pointer in the nand_chip structure member bbt_td before calling nand_scan(). If a mirror table is necessary a second structure must be created and a pointer to this structure must be stored in bbt_md inside the nand_chip structure. If the bbt_md member is set to NULL then only the main table is used and no scan for the mirrored table is performed.h]hXUser defined tables are created by filling out a nand_bbt_descr structure and storing the pointer in the nand_chip structure member bbt_td before calling nand_scan(). If a mirror table is necessary a second structure must be created and a pointer to this structure must be stored in bbt_md inside the nand_chip structure. If the bbt_md member is set to NULL then only the main table is used and no scan for the mirrored table is performed.}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hThe most important field in the nand_bbt_descr structure is the options field. The options define most of the table properties. Use the predefined constants from rawnand.h to define the options.h]hThe most important field in the nand_bbt_descr structure is the options field. The options define most of the table properties. Use the predefined constants from rawnand.h to define the options.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hhh](j)}(hFNumber of bits per block The supported number of bits is 1, 2, 4, 8. h](h)}(hNumber of bits per blockh]hNumber of bits per block}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjE ubh)}(h+The supported number of bits is 1, 2, 4, 8.h]h+The supported number of bits is 1, 2, 4, 8.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjE ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hTable per chip Setting the constant NAND_BBT_PERCHIP selects that a bad block table is managed for each chip in a chip array. If this option is not set then a per device bad block table is used. h](h)}(hTable per chiph]hTable per chip}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjk ubh)}(hSetting the constant NAND_BBT_PERCHIP selects that a bad block table is managed for each chip in a chip array. If this option is not set then a per device bad block table is used.h]hSetting the constant NAND_BBT_PERCHIP selects that a bad block table is managed for each chip in a chip array. If this option is not set then a per device bad block table is used.}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjk ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hXTable location is absolute Use the option constant NAND_BBT_ABSPAGE and define the absolute page number where the bad block table starts in the field pages. If you have selected bad block tables per chip and you have a multi chip array then the start page must be given for each chip in the chip array. Note: there is no scan for a table ident pattern performed, so the fields pattern, veroffs, offs, len can be left uninitialized h](h)}(hTable location is absoluteh]hTable location is absolute}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hXUse the option constant NAND_BBT_ABSPAGE and define the absolute page number where the bad block table starts in the field pages. If you have selected bad block tables per chip and you have a multi chip array then the start page must be given for each chip in the chip array. Note: there is no scan for a table ident pattern performed, so the fields pattern, veroffs, offs, len can be left uninitializedh]hXUse the option constant NAND_BBT_ABSPAGE and define the absolute page number where the bad block table starts in the field pages. If you have selected bad block tables per chip and you have a multi chip array then the start page must be given for each chip in the chip array. Note: there is no scan for a table ident pattern performed, so the fields pattern, veroffs, offs, len can be left uninitialized}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hXTable location is automatically detected The table can either be located in the first or the last good blocks of the chip (device). Set NAND_BBT_LASTBLOCK to place the bad block table at the end of the chip (device). The bad block tables are marked and identified by a pattern which is stored in the spare area of the first page in the block which holds the bad block table. Store a pointer to the pattern in the pattern field. Further the length of the pattern has to be stored in len and the offset in the spare area must be given in the offs member of the nand_bbt_descr structure. For mirrored bad block tables different patterns are mandatory. h](h)}(h(Table location is automatically detectedh]h(Table location is automatically detected}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hX_The table can either be located in the first or the last good blocks of the chip (device). Set NAND_BBT_LASTBLOCK to place the bad block table at the end of the chip (device). The bad block tables are marked and identified by a pattern which is stored in the spare area of the first page in the block which holds the bad block table. Store a pointer to the pattern in the pattern field. Further the length of the pattern has to be stored in len and the offset in the spare area must be given in the offs member of the nand_bbt_descr structure. For mirrored bad block tables different patterns are mandatory.h]hX_The table can either be located in the first or the last good blocks of the chip (device). Set NAND_BBT_LASTBLOCK to place the bad block table at the end of the chip (device). The bad block tables are marked and identified by a pattern which is stored in the spare area of the first page in the block which holds the bad block table. Store a pointer to the pattern in the pattern field. Further the length of the pattern has to be stored in len and the offset in the spare area must be given in the offs member of the nand_bbt_descr structure. For mirrored bad block tables different patterns are mandatory.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hTable creation Set the option NAND_BBT_CREATE to enable the table creation if no table can be found during the scan. Usually this is done only once if a new chip is found. h](h)}(hTable creationh]hTable creation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hj ubh)}(hSet the option NAND_BBT_CREATE to enable the table creation if no table can be found during the scan. Usually this is done only once if a new chip is found.h]hSet the option NAND_BBT_CREATE to enable the table creation if no table can be found during the scan. Usually this is done only once if a new chip is found.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hXTable write support Set the option NAND_BBT_WRITE to enable the table write support. This allows the update of the bad block table(s) in case a block has to be marked bad due to wear. The MTD interface function block_markbad is calling the update function of the bad block table. If the write support is enabled then the table is updated on FLASH. Note: Write support should only be enabled for mirrored tables with version control. h](h)}(hTable write supporth]hTable write support}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM0hj ubh)}(hXGSet the option NAND_BBT_WRITE to enable the table write support. This allows the update of the bad block table(s) in case a block has to be marked bad due to wear. The MTD interface function block_markbad is calling the update function of the bad block table. If the write support is enabled then the table is updated on FLASH.h]hXGSet the option NAND_BBT_WRITE to enable the table write support. This allows the update of the bad block table(s) in case a block has to be marked bad due to wear. The MTD interface function block_markbad is calling the update function of the bad block table. If the write support is enabled then the table is updated on FLASH.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hj ubh)}(hTNote: Write support should only be enabled for mirrored tables with version control.h]hTNote: Write support should only be enabled for mirrored tables with version control.}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hj ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hX Table version control Set the option NAND_BBT_VERSION to enable the table version control. It's highly recommended to enable this for mirrored tables with write support. It makes sure that the risk of losing the bad block table information is reduced to the loss of the information about the one worn out block which should be marked bad. The version is stored in 4 consecutive bytes in the spare area of the device. The position of the version number is defined by the member veroffs in the bad block table descriptor. h](h)}(hTable version controlh]hTable version control}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj7 ubh)}(hXSet the option NAND_BBT_VERSION to enable the table version control. It's highly recommended to enable this for mirrored tables with write support. It makes sure that the risk of losing the bad block table information is reduced to the loss of the information about the one worn out block which should be marked bad. The version is stored in 4 consecutive bytes in the spare area of the device. The position of the version number is defined by the member veroffs in the bad block table descriptor.h]hXSet the option NAND_BBT_VERSION to enable the table version control. It’s highly recommended to enable this for mirrored tables with write support. It makes sure that the risk of losing the bad block table information is reduced to the loss of the information about the one worn out block which should be marked bad. The version is stored in 4 consecutive bytes in the spare area of the device. The position of the version number is defined by the member veroffs in the bad block table descriptor.}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hj7 ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hXSave block contents on write In case that the block which holds the bad block table does contain other useful information, set the option NAND_BBT_SAVECONTENT. When the bad block table is written then the whole block is read the bad block table is updated and the block is erased and everything is written back. If this option is not set only the bad block table is written and everything else in the block is ignored and erased. h](h)}(hSave block contents on writeh]hSave block contents on write}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhj] ubh)}(hXIn case that the block which holds the bad block table does contain other useful information, set the option NAND_BBT_SAVECONTENT. When the bad block table is written then the whole block is read the bad block table is updated and the block is erased and everything is written back. If this option is not set only the bad block table is written and everything else in the block is ignored and erased.h]hXIn case that the block which holds the bad block table does contain other useful information, set the option NAND_BBT_SAVECONTENT. When the bad block table is written then the whole block is read the bad block table is updated and the block is erased and everything is written back. If this option is not set only the bad block table is written and everything else in the block is ignored and erased.}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhj] ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubj)}(hXNumber of reserved blocks For automatic placement some blocks must be reserved for bad block table storage. The number of reserved blocks is defined in the maxblocks member of the bad block table description structure. Reserving 4 blocks for mirrored tables should be a reasonable number. This also limits the number of blocks which are scanned for the bad block table ident pattern. h](h)}(hNumber of reserved blocksh]hNumber of reserved blocks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhj ubh)}(hXeFor automatic placement some blocks must be reserved for bad block table storage. The number of reserved blocks is defined in the maxblocks member of the bad block table description structure. Reserving 4 blocks for mirrored tables should be a reasonable number. This also limits the number of blocks which are scanned for the bad block table ident pattern.h]hXeFor automatic placement some blocks must be reserved for bad block table storage. The number of reserved blocks is defined in the maxblocks member of the bad block table description structure. Reserving 4 blocks for mirrored tables should be a reasonable number. This also limits the number of blocks which are scanned for the bad block table ident pattern.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhj ubeh}(h]h ]h"]h$]h&]uh1jhjB hhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhM hj hhubeh}(h]user-defined-tablesah ]h"]user defined tablesah$]h&]uh1hhjAhhhhhMubeh}(h]bad-block-table-supportah ]h"]bad block table supportah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hSpare area (auto)placementh]hSpare area (auto)placement}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMYubh)}(hfThe nand driver implements different possibilities for placement of filesystem data in the spare area,h]hfThe nand driver implements different possibilities for placement of filesystem data in the spare area,}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM[hj hhubj)}(hhh](j)}(hPlacement defined by fs driver h]h)}(hPlacement defined by fs driverh]hPlacement defined by fs driver}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj)}(hAutomatic placement h]h)}(hAutomatic placementh]hAutomatic placement}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhM^hj hhubh)}(hX The default placement function is automatic placement. The nand driver has built in default placement schemes for the various chiptypes. If due to hardware ECC functionality the default placement does not fit then the board driver can provide a own placement scheme.h]hX The default placement function is automatic placement. The nand driver has built in default placement schemes for the various chiptypes. If due to hardware ECC functionality the default placement does not fit then the board driver can provide a own placement scheme.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj hhubh)}(hmFile system drivers can provide a own placement scheme which is used instead of the default placement scheme.h]hmFile system drivers can provide a own placement scheme which is used instead of the default placement scheme.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghj hhubh)}(h9Placement schemes are defined by a nand_oobinfo structureh]h9Placement schemes are defined by a nand_oobinfo structure}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj hhubj_)}(hestruct nand_oobinfo { int useecc; int eccbytes; int eccpos[24]; int oobfree[8][2]; };h]hestruct nand_oobinfo { int useecc; int eccbytes; int eccpos[24]; int oobfree[8][2]; };}hjA sbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMnhj hhubj)}(hhh](j)}(hXuuseecc The useecc member controls the ecc and placement function. The header file include/mtd/mtd-abi.h contains constants to select ecc and placement. MTD_NANDECC_OFF switches off the ecc complete. This is not recommended and available for testing and diagnosis only. MTD_NANDECC_PLACE selects caller defined placement, MTD_NANDECC_AUTOPLACE selects automatic placement. h](h)}(huseecch]huseecc}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhjR ubh)}(hXlThe useecc member controls the ecc and placement function. The header file include/mtd/mtd-abi.h contains constants to select ecc and placement. MTD_NANDECC_OFF switches off the ecc complete. This is not recommended and available for testing and diagnosis only. MTD_NANDECC_PLACE selects caller defined placement, MTD_NANDECC_AUTOPLACE selects automatic placement.h]hXlThe useecc member controls the ecc and placement function. The header file include/mtd/mtd-abi.h contains constants to select ecc and placement. MTD_NANDECC_OFF switches off the ecc complete. This is not recommended and available for testing and diagnosis only. MTD_NANDECC_PLACE selects caller defined placement, MTD_NANDECC_AUTOPLACE selects automatic placement.}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhjR ubeh}(h]h ]h"]h$]h&]uh1jhjO hhhhhNubj)}(hHeccbytes The eccbytes member defines the number of ecc bytes per page. h](h)}(heccbytesh]heccbytes}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx ubh)}(h=The eccbytes member defines the number of ecc bytes per page.h]h=The eccbytes member defines the number of ecc bytes per page.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx ubeh}(h]h ]h"]h$]h&]uh1jhjO hhhhhNubj)}(hbeccpos The eccpos array holds the byte offsets in the spare area where the ecc codes are placed. h](h)}(heccposh]heccpos}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hYThe eccpos array holds the byte offsets in the spare area where the ecc codes are placed.h]hYThe eccpos array holds the byte offsets in the spare area where the ecc codes are placed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjO hhhhhNubj)}(hX6oobfree The oobfree array defines the areas in the spare area which can be used for automatic placement. The information is given in the format {offset, size}. offset defines the start of the usable area, size the length in bytes. More than one area can be defined. The list is terminated by an {0, 0} entry. h](h)}(hoobfreeh]hoobfree}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubh)}(hX,The oobfree array defines the areas in the spare area which can be used for automatic placement. The information is given in the format {offset, size}. offset defines the start of the usable area, size the length in bytes. More than one area can be defined. The list is terminated by an {0, 0} entry.h]hX,The oobfree array defines the areas in the spare area which can be used for automatic placement. The information is given in the format {offset, size}. offset defines the start of the usable area, size the length in bytes. More than one area can be defined. The list is terminated by an {0, 0} entry.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjO hhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhMvhj hhubh)}(hhh](h)}(hPlacement defined by fs driverh]hPlacement defined by fs driver}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hXThe calling function provides a pointer to a nand_oobinfo structure which defines the ecc placement. For writes the caller must provide a spare area buffer along with the data buffer. The spare area buffer size is (number of pages) \* (size of spare area). For reads the buffer size is (number of pages) \* ((size of spare area) + (number of ecc steps per page) \* sizeof (int)). The driver stores the result of the ecc check for each tuple in the spare buffer. The storage sequence is::h]hXThe calling function provides a pointer to a nand_oobinfo structure which defines the ecc placement. For writes the caller must provide a spare area buffer along with the data buffer. The spare area buffer size is (number of pages) * (size of spare area). For reads the buffer size is (number of pages) * ((size of spare area) + (number of ecc steps per page) * sizeof (int)). The driver stores the result of the ecc check for each tuple in the spare buffer. The storage sequence is:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj_)}(hk... ... ...h]hk... ... ...}hj sbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMhj hhubh)}(h%This is a legacy mode used by YAFFS1.h]h%This is a legacy mode used by YAFFS1.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hIf the spare area buffer is NULL then only the ECC placement is done according to the given scheme in the nand_oobinfo structure.h]hIf the spare area buffer is NULL then only the ECC placement is done according to the given scheme in the nand_oobinfo structure.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]placement-defined-by-fs-driverah ]h"]placement defined by fs driverah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hAutomatic placementh]hAutomatic placement}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA hhhhhMubh)}(hX$Automatic placement uses the built in defaults to place the ecc bytes in the spare area. If filesystem data have to be stored / read into the spare area then the calling function must provide a buffer. The buffer size per page is determined by the oobfree array in the nand_oobinfo structure.h]hX$Automatic placement uses the built in defaults to place the ecc bytes in the spare area. If filesystem data have to be stored / read into the spare area then the calling function must provide a buffer. The buffer size per page is determined by the oobfree array in the nand_oobinfo structure.}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA hhubh)}(hmIf the spare area buffer is NULL then only the ECC placement is done according to the default builtin scheme.h]hmIf the spare area buffer is NULL then only the ECC placement is done according to the default builtin scheme.}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA hhubeh}(h]automatic-placementah ]h"]automatic placementah$]h&]uh1hhj hhhhhMubeh}(h]spare-area-auto-placementah ]h"]spare area (auto)placementah$]h&]uh1hhjhhhhhMYubh)}(hhh](h)}(h(Spare area autoplacement default schemesh]h(Spare area autoplacement default schemes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ hhhhhMubh)}(hhh](h)}(h256 byte pagesizeh]h256 byte pagesize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1j hj ubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]h)}(hOffseth]hOffset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hContenth]hContent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hCommenth]hComment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j hj ubhtbody)}(hhh](j )}(hhh](j )}(hhh]h)}(h0x00h]h0x00}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ ubah}(h]h ]h"]h$]h&]uh1j hj, ubj )}(hhh]h)}(h ECC byte 0h]h ECC byte 0}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjF ubah}(h]h ]h"]h$]h&]uh1j hj, ubj )}(hhh]h)}(hError correction code byte 0h]hError correction code byte 0}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj] ubah}(h]h ]h"]h$]h&]uh1j hj, ubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x01h]h0x01}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj} ubah}(h]h ]h"]h$]h&]uh1j hjz ubj )}(hhh]h)}(h ECC byte 1h]h ECC byte 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hjz ubj )}(hhh]h)}(hError correction code byte 1h]hError correction code byte 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hjz ubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x02h]h0x02}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ECC byte 2h]h ECC byte 2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hError correction code byte 2h]hError correction code byte 2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x03h]h0x03}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h Autoplace 0h]h Autoplace 0}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x04h]h0x04}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjYubah}(h]h ]h"]h$]h&]uh1j hjVubj )}(hhh]h)}(h Autoplace 1h]h Autoplace 1}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjpubah}(h]h ]h"]h$]h&]uh1j hjVubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x05h]h0x05}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hBad block markerh]hBad block marker}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reservedh]hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x06h]h0x06}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h Autoplace 2h]h Autoplace 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj) ubj )}(hhh](j )}(hhh]h)}(h0x07h]h0x07}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh]h)}(h Autoplace 3h]h Autoplace 3}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj$ubeh}(h]h ]h"]h$]h&]uh1j hj) ubeh}(h]h ]h"]h$]h&]uh1j' hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hj ubah}(h]h ]h"]h$]h&]uh1j hj hhhhhNubeh}(h] byte-pagesizeah ]h"]256 byte pagesizeah$]h&]uh1hhj~ hhhhhMubh)}(hhh](h)}(h512 byte pagesizeh]h512 byte pagesize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubj )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK.uh1j hjubj )}(hhh]j )}(hhh](j )}(hhh]h)}(hOffseth]hOffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hContenth]hContent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hCommenth]hComment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j hjubj( )}(hhh](j )}(hhh](j )}(hhh]h)}(h0x00h]h0x00}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 0h]h ECC byte 0}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hDError correction code byte 0 of the lower 256 Byte data in this pageh]hDError correction code byte 0 of the lower 256 Byte data in this page}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x01h]h0x01}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_ubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(h ECC byte 1h]h ECC byte 1}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjvubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(hHError correction code byte 1 of the lower 256 Bytes of data in this pageh]hHError correction code byte 1 of the lower 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj\ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x02h]h0x02}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 2h]h ECC byte 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 2 of the lower 256 Bytes of data in this pageh]hHError correction code byte 2 of the lower 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x03h]h0x03}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 3h]h ECC byte 3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 0 of the upper 256 Bytes of data in this pageh]hHError correction code byte 0 of the upper 256 Bytes of data in this page}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x04h]h0x04}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIubah}(h]h ]h"]h$]h&]uh1j hjFubj )}(hhh]h)}(hreservedh]hreserved}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj`ubah}(h]h ]h"]h$]h&]uh1j hjFubj )}(hhh]h)}(hreservedh]hreserved}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjwubah}(h]h ]h"]h$]h&]uh1j hjFubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x05h]h0x05}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hBad block markerh]hBad block marker}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reservedh]hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x06h]h0x06}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 4h]h ECC byte 4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 1 of the upper 256 Bytes of data in this pageh]hHError correction code byte 1 of the upper 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h0x07h]h0x07}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh]h)}(h ECC byte 5h]h ECC byte 5}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjJubah}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh]h)}(hHError correction code byte 2 of the upper 256 Bytes of data in this pageh]hHError correction code byte 2 of the upper 256 Bytes of data in this page}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjaubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h 0x08 - 0x0Fh]h 0x08 - 0x0F}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj~ubj )}(hhh]h)}(hAutoplace 0 - 7h]hAutoplace 0 - 7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj~ubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j' hjubeh}(h]h ]h"]h$]h&]colsKuh1j hjubah}(h]h ]h"]h$]h&]uh1j hjhhhhhNubeh}(h]id1ah ]h"]512 byte pagesizeah$]h&]uh1hhj~ hhhhhMubh)}(hhh](h)}(h2048 byte pagesizeh]h2048 byte pagesize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubj )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK0uh1j hjubj )}(hhh]j )}(hhh](j )}(hhh]h)}(hOffseth]hOffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hContenth]hContent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hCommenth]hComment}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j hjubj( )}(hhh](j )}(hhh](j )}(hhh]h)}(h0x00h]h0x00}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjkubah}(h]h ]h"]h$]h&]uh1j hjhubj )}(hhh]h)}(hBad block markerh]hBad block marker}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjhubj )}(hhh]h)}(hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reservedh]hIf any bit in this byte is zero, then this block is bad. This applies only to the first page in a block. In the remaining pages this byte is reserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x01h]h0x01}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hReservedh]hReserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hReservedh]hReserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h 0x02-0x27h]h 0x02-0x27}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hAutoplace 0 - 37h]hAutoplace 0 - 37}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x28h]h0x28}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjGubah}(h]h ]h"]h$]h&]uh1j hjDubj )}(hhh]h)}(h ECC byte 0h]h ECC byte 0}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^ubah}(h]h ]h"]h$]h&]uh1j hjDubj )}(hhh]h)}(hDError correction code byte 0 of the first 256 Byte data in this pageh]hDError correction code byte 0 of the first 256 Byte data in this page}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuubah}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x29h]h0x29}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 1h]h ECC byte 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 1 of the first 256 Bytes of data in this pageh]hHError correction code byte 1 of the first 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Ah]h0x2A}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 2h]h ECC byte 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hEError correction code byte 2 of the first 256 Bytes data in this pageh]hEError correction code byte 2 of the first 256 Bytes data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Bh]h0x2B}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh]h)}(h ECC byte 3h]h ECC byte 3}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjHubah}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh]h)}(hIError correction code byte 0 of the second 256 Bytes of data in this pageh]hIError correction code byte 0 of the second 256 Bytes of data in this page}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_ubah}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Ch]h0x2C}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubj )}(hhh]h)}(h ECC byte 4h]h ECC byte 4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubj )}(hhh]h)}(hIError correction code byte 1 of the second 256 Bytes of data in this pageh]hIError correction code byte 1 of the second 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Dh]h0x2D}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 5h]h ECC byte 5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIError correction code byte 2 of the second 256 Bytes of data in this pageh]hIError correction code byte 2 of the second 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Eh]h0x2E}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 6h]h ECC byte 6}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 0 of the third 256 Bytes of data in this pageh]hHError correction code byte 0 of the third 256 Bytes of data in this page}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x2Fh]h0x2F}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiubah}(h]h ]h"]h$]h&]uh1j hjfubj )}(hhh]h)}(h ECC byte 7h]h ECC byte 7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjfubj )}(hhh]h)}(hHError correction code byte 1 of the third 256 Bytes of data in this pageh]hHError correction code byte 1 of the third 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjfubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x30h]h0x30}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 8h]h ECC byte 8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 2 of the third 256 Bytes of data in this pageh]hHError correction code byte 2 of the third 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x31h]h0x31}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 9h]h ECC byte 9}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIError correction code byte 0 of the fourth 256 Bytes of data in this pageh]hIError correction code byte 0 of the fourth 256 Bytes of data in this page}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x32h]h0x32}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjSubah}(h]h ]h"]h$]h&]uh1j hjPubj )}(hhh]h)}(h ECC byte 10h]h ECC byte 10}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjjubah}(h]h ]h"]h$]h&]uh1j hjPubj )}(hhh]h)}(hIError correction code byte 1 of the fourth 256 Bytes of data in this pageh]hIError correction code byte 1 of the fourth 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjPubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x33h]h0x33}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 11h]h ECC byte 11}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIError correction code byte 2 of the fourth 256 Bytes of data in this pageh]hIError correction code byte 2 of the fourth 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x34h]h0x34}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 12h]h ECC byte 12}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 0 of the fifth 256 Bytes of data in this pageh]hHError correction code byte 0 of the fifth 256 Bytes of data in this page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x35h]h0x35}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj=ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(h ECC byte 13h]h ECC byte 13}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjTubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(hHError correction code byte 1 of the fifth 256 Bytes of data in this pageh]hHError correction code byte 1 of the fifth 256 Bytes of data in this page}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjkubah}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x36h]h0x36}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 14h]h ECC byte 14}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 2 of the fifth 256 Bytes of data in this pageh]hHError correction code byte 2 of the fifth 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x37h]h0x37}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 15h]h ECC byte 15}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hHError correction code byte 0 of the sixth 256 Bytes of data in this pageh]hHError correction code byte 0 of the sixth 256 Bytes of data in this page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x38h]h0x38}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh]h)}(h ECC byte 16h]h ECC byte 16}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh]h)}(hHError correction code byte 1 of the sixth 256 Bytes of data in this pageh]hHError correction code byte 1 of the sixth 256 Bytes of data in this page}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1j hj$ubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x39h]h0x39}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuubah}(h]h ]h"]h$]h&]uh1j hjrubj )}(hhh]h)}(h ECC byte 17h]h ECC byte 17}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjrubj )}(hhh]h)}(hHError correction code byte 2 of the sixth 256 Bytes of data in this pageh]hHError correction code byte 2 of the sixth 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjrubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Ah]h0x3A}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 18h]h ECC byte 18}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hJError correction code byte 0 of the seventh 256 Bytes of data in this pageh]hJError correction code byte 0 of the seventh 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Bh]h0x3B}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 19h]h ECC byte 19}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hJError correction code byte 1 of the seventh 256 Bytes of data in this pageh]hJError correction code byte 1 of the seventh 256 Bytes of data in this page}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Ch]h0x3C}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_ubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(h ECC byte 20h]h ECC byte 20}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjvubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(hJError correction code byte 2 of the seventh 256 Bytes of data in this pageh]hJError correction code byte 2 of the seventh 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj\ubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Dh]h0x3D}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 21h]h ECC byte 21}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIError correction code byte 0 of the eighth 256 Bytes of data in this pageh]hIError correction code byte 0 of the eighth 256 Bytes of data in this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Eh]h0x3E}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ECC byte 22h]h ECC byte 22}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hIError correction code byte 1 of the eighth 256 Bytes of data in this pageh]hIError correction code byte 1 of the eighth 256 Bytes of data in this page}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j )}(hhh]h)}(h0x3Fh]h0x3F}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIubah}(h]h ]h"]h$]h&]uh1j hjFubj )}(hhh]h)}(h ECC byte 23h]h ECC byte 23}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj`ubah}(h]h ]h"]h$]h&]uh1j hjFubj )}(hhh]h)}(hIError correction code byte 2 of the eighth 256 Bytes of data in this pageh]hIError correction code byte 2 of the eighth 256 Bytes of data in this page}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjwubah}(h]h ]h"]h$]h&]uh1j hjFubeh}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1j' hjubeh}(h]h ]h"]h$]h&]colsKuh1j hjubah}(h]h ]h"]h$]h&]uh1j hjhhhhhNubeh}(h]id2ah ]h"]2048 byte pagesizeah$]h&]uh1hhj~ hhhhhMubeh}(h](spare-area-autoplacement-default-schemesah ]h"](spare area autoplacement default schemesah$]h&]uh1hhjhhhhhMubeh}(h]advanced-board-driver-functionsah ]h"]advanced board driver functionsah$]h&]uh1hhhhhhhhM'ubh)}(hhh](h)}(hFilesystem supporth]hFilesystem support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM"ubh)}(hXThe NAND driver provides all necessary functions for a filesystem via the MTD interface.h]hXThe NAND driver provides all necessary functions for a filesystem via the MTD interface.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjhhubh)}(hXTFilesystems must be aware of the NAND peculiarities and restrictions. One major restrictions of NAND Flash is, that you cannot write as often as you want to a page. The consecutive writes to a page, before erasing it again, are restricted to 1-3 writes, depending on the manufacturers specifications. This applies similar to the spare area.h]hXTFilesystems must be aware of the NAND peculiarities and restrictions. One major restrictions of NAND Flash is, that you cannot write as often as you want to a page. The consecutive writes to a page, before erasing it again, are restricted to 1-3 writes, depending on the manufacturers specifications. This applies similar to the spare area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hjhhubh)}(hTherefore NAND aware filesystems must either write in page size chunks or hold a writebuffer to collect smaller writes until they sum up to pagesize. Available NAND aware filesystems: JFFS2, YAFFS.h]hTherefore NAND aware filesystems must either write in page size chunks or hold a writebuffer to collect smaller writes until they sum up to pagesize. Available NAND aware filesystems: JFFS2, YAFFS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjhhubh)}(hThe spare area usage to store filesystem data is controlled by the spare area placement functionality which is described in one of the earlier chapters.h]hThe spare area usage to store filesystem data is controlled by the spare area placement functionality which is described in one of the earlier chapters.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hjhhubeh}(h]filesystem-supportah ]h"]filesystem supportah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hToolsh]hTools}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM6ubh)}(hHThe MTD project provides a couple of helpful tools to handle NAND Flash.h]hHThe MTD project provides a couple of helpful tools to handle NAND Flash.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hjhhubj)}(hhh](j)}(h=flasherase, flasheraseall: Erase and format FLASH partitions h]h)}(hhjbubah}(h]h ]h"]h$]h&]uh1jhj/hhhhhNubeh}(h]h ]h"]h$]h&]j8j9uh1jhhhM:hjhhubh)}(hThese tools are aware of the NAND restrictions. Please use those tools instead of complaining about errors which are caused by non NAND aware access methods.h]hThese tools are aware of the NAND restrictions. Please use those tools instead of complaining about errors which are caused by non NAND aware access methods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjhhubeh}(h]toolsah ]h"]toolsah$]h&]uh1hhhhhhhhM6ubh)}(hhh](h)}(h Constantsh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMEubh)}(hTThis chapter describes the constants which might be relevant for a driver developer.h]hTThis chapter describes the constants which might be relevant for a driver developer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMGhjhhubh)}(hhh](h)}(hChip option constantsh]hChip option constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMKubh)}(hhh](h)}(hConstants for chip id tableh]hConstants for chip id table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMNubh)}(hfThese constants are defined in rawnand.h. They are OR-ed together to describe the chip functionality::h]heThese constants are defined in rawnand.h. They are OR-ed together to describe the chip functionality:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhjhhubj_)}(hXW/* Buswitdh is 16 bit */ #define NAND_BUSWIDTH_16 0x00000002 /* Device supports partial programming without padding */ #define NAND_NO_PADDING 0x00000004 /* Chip has cache program function */ #define NAND_CACHEPRG 0x00000008 /* Chip has copy back function */ #define NAND_COPYBACK 0x00000010 /* AND Chip which has 4 banks and a confusing page / block * assignment. See Renesas datasheet for further information */ #define NAND_IS_AND 0x00000020 /* Chip has a array of 4 pages which can be read without * additional ready /busy waits */ #define NAND_4PAGE_ARRAY 0x00000040h]hXW/* Buswitdh is 16 bit */ #define NAND_BUSWIDTH_16 0x00000002 /* Device supports partial programming without padding */ #define NAND_NO_PADDING 0x00000004 /* Chip has cache program function */ #define NAND_CACHEPRG 0x00000008 /* Chip has copy back function */ #define NAND_COPYBACK 0x00000010 /* AND Chip which has 4 banks and a confusing page / block * assignment. See Renesas datasheet for further information */ #define NAND_IS_AND 0x00000020 /* Chip has a array of 4 pages which can be read without * additional ready /busy waits */ #define NAND_4PAGE_ARRAY 0x00000040}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMShjhhubeh}(h]constants-for-chip-id-tableah ]h"]constants for chip id tableah$]h&]uh1hhjhhhhhMNubh)}(hhh](h)}(hConstants for runtime optionsh]hConstants for runtime options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMdubh)}(haThese constants are defined in rawnand.h. They are OR-ed together to describe the functionality::h]h`These constants are defined in rawnand.h. They are OR-ed together to describe the functionality:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhjhhubj_)}(hX/* The hw ecc generator provides a syndrome instead a ecc value on read * This can only work if we have the ecc bytes directly behind the * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */ #define NAND_HWECC_SYNDROME 0x00020000h]hX/* The hw ecc generator provides a syndrome instead a ecc value on read * This can only work if we have the ecc bytes directly behind the * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */ #define NAND_HWECC_SYNDROME 0x00020000}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMihjhhubeh}(h]constants-for-runtime-optionsah ]h"]constants for runtime optionsah$]h&]uh1hhjhhhhhMdubeh}(h]chip-option-constantsah ]h"]chip option constantsah$]h&]uh1hhjhhhhhMKubh)}(hhh](h)}(hECC selection constantsh]hECC selection constants}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hhhhhMpubh)}(h1Use these constants to select the ECC algorithm::h]h0Use these constants to select the ECC algorithm:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhj8hhubj_)}(hX/* No ECC. Usage is not recommended ! */ #define NAND_ECC_NONE 0 /* Software ECC 3 byte ECC per 256 Byte data */ #define NAND_ECC_SOFT 1 /* Hardware ECC 3 byte ECC per 256 Byte data */ #define NAND_ECC_HW3_256 2 /* Hardware ECC 3 byte ECC per 512 Byte data */ #define NAND_ECC_HW3_512 3 /* Hardware ECC 6 byte ECC per 512 Byte data */ #define NAND_ECC_HW6_512 4 /* Hardware ECC 8 byte ECC per 512 Byte data */ #define NAND_ECC_HW8_512 6h]hX/* No ECC. Usage is not recommended ! */ #define NAND_ECC_NONE 0 /* Software ECC 3 byte ECC per 256 Byte data */ #define NAND_ECC_SOFT 1 /* Hardware ECC 3 byte ECC per 256 Byte data */ #define NAND_ECC_HW3_256 2 /* Hardware ECC 3 byte ECC per 512 Byte data */ #define NAND_ECC_HW3_512 3 /* Hardware ECC 6 byte ECC per 512 Byte data */ #define NAND_ECC_HW6_512 4 /* Hardware ECC 8 byte ECC per 512 Byte data */ #define NAND_ECC_HW8_512 6}hjWsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMthj8hhubeh}(h]ecc-selection-constantsah ]h"]ecc selection constantsah$]h&]uh1hhjhhhhhMpubh)}(hhh](h)}(h"Hardware control related constantsh]h"Hardware control related constants}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhMubh)}(h|These constants describe the requested hardware access function when the boardspecific hardware control function is called::h]h{These constants describe the requested hardware access function when the boardspecific hardware control function is called:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjmhhubj_)}(hX/* Select the chip by setting nCE to low */ #define NAND_CTL_SETNCE 1 /* Deselect the chip by setting nCE to high */ #define NAND_CTL_CLRNCE 2 /* Select the command latch by setting CLE to high */ #define NAND_CTL_SETCLE 3 /* Deselect the command latch by setting CLE to low */ #define NAND_CTL_CLRCLE 4 /* Select the address latch by setting ALE to high */ #define NAND_CTL_SETALE 5 /* Deselect the address latch by setting ALE to low */ #define NAND_CTL_CLRALE 6 /* Set write protection by setting WP to high. Not used! */ #define NAND_CTL_SETWP 7 /* Clear write protection by setting WP to low. Not used! */ #define NAND_CTL_CLRWP 8h]hX/* Select the chip by setting nCE to low */ #define NAND_CTL_SETNCE 1 /* Deselect the chip by setting nCE to high */ #define NAND_CTL_CLRNCE 2 /* Select the command latch by setting CLE to high */ #define NAND_CTL_SETCLE 3 /* Deselect the command latch by setting CLE to low */ #define NAND_CTL_CLRCLE 4 /* Select the address latch by setting ALE to high */ #define NAND_CTL_SETALE 5 /* Deselect the address latch by setting ALE to low */ #define NAND_CTL_CLRALE 6 /* Set write protection by setting WP to high. Not used! */ #define NAND_CTL_SETWP 7 /* Clear write protection by setting WP to low. Not used! */ #define NAND_CTL_CLRWP 8}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMhjmhhubeh}(h]"hardware-control-related-constantsah ]h"]"hardware control related constantsah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h!Bad block table related constantsh]h!Bad block table related constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hKThese constants describe the options used for bad block table descriptors::h]hJThese constants describe the options used for bad block table descriptors:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj_)}(hX/* Options for the bad block table descriptors */ /* The number of bits used per block in the bbt on the device */ #define NAND_BBT_NRBITS_MSK 0x0000000F #define NAND_BBT_1BIT 0x00000001 #define NAND_BBT_2BIT 0x00000002 #define NAND_BBT_4BIT 0x00000004 #define NAND_BBT_8BIT 0x00000008 /* The bad block table is in the last good block of the device */ #define NAND_BBT_LASTBLOCK 0x00000010 /* The bbt is at the given page, else we must scan for the bbt */ #define NAND_BBT_ABSPAGE 0x00000020 /* bbt is stored per chip on multichip devices */ #define NAND_BBT_PERCHIP 0x00000080 /* bbt has a version counter at offset veroffs */ #define NAND_BBT_VERSION 0x00000100 /* Create a bbt if none axists */ #define NAND_BBT_CREATE 0x00000200 /* Write bbt if necessary */ #define NAND_BBT_WRITE 0x00001000 /* Read and write back block contents when writing bbt */ #define NAND_BBT_SAVECONTENT 0x00002000h]hX/* Options for the bad block table descriptors */ /* The number of bits used per block in the bbt on the device */ #define NAND_BBT_NRBITS_MSK 0x0000000F #define NAND_BBT_1BIT 0x00000001 #define NAND_BBT_2BIT 0x00000002 #define NAND_BBT_4BIT 0x00000004 #define NAND_BBT_8BIT 0x00000008 /* The bad block table is in the last good block of the device */ #define NAND_BBT_LASTBLOCK 0x00000010 /* The bbt is at the given page, else we must scan for the bbt */ #define NAND_BBT_ABSPAGE 0x00000020 /* bbt is stored per chip on multichip devices */ #define NAND_BBT_PERCHIP 0x00000080 /* bbt has a version counter at offset veroffs */ #define NAND_BBT_VERSION 0x00000100 /* Create a bbt if none axists */ #define NAND_BBT_CREATE 0x00000200 /* Write bbt if necessary */ #define NAND_BBT_WRITE 0x00001000 /* Read and write back block contents when writing bbt */ #define NAND_BBT_SAVECONTENT 0x00002000}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^hhhMhjhhubeh}(h]!bad-block-table-related-constantsah ]h"]!bad block table related constantsah$]h&]uh1hhjhhhhhMubeh}(h] constantsah ]h"] constantsah$]h&]uh1hhhhhhhhMEubh)}(hhh](h)}(h Structuresh]h Structures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hX&This chapter contains the autogenerated documentation of the structures which are used in the NAND driver and might be relevant for a driver developer. Each struct member has a short description which is marked with an [XXX] identifier. See the chapter "Documentation hints" for an explanation.h]hX*This chapter contains the autogenerated documentation of the structures which are used in the NAND driver and might be relevant for a driver developer. Each struct member has a short description which is marked with an [XXX] identifier. See the chapter “Documentation hints” for an explanation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlenand_parameters (C struct)c.nand_parametershNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(hnand_parametersh]hdesc_signature_line)}(hstruct nand_parametersh](hdesc_sig_keyword)}(hstructh]hstruct}(hj"hhhNhNubah}(h]h ]kah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKubhdesc_sig_space)}(h h]h }(hj4hhhNhNubah}(h]h ]wah"]h$]h&]uh1j2hjhhhj1hKubh desc_name)}(hnand_parametersh]h desc_sig_name)}(hjh]hnand_parameters}(hjKhhhNhNubah}(h]h ]nah"]h$]h&]uh1jIhjEubah}(h]h ](sig-namedescnameeh"]h$]h&]jnjouh1jChjhhhj1hKubeh}(h]h ]h"]h$]h&]jnjo add_permalinkuh1jsphinx_line_type declaratorhjhhhj1hKubah}(h]j ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhj1hKhjhhubh desc_content)}(hhh]h)}(h/NAND generic parameters from the parameter pageh]h/NAND generic parameters from the parameter page}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjwhhubah}(h]h ]h"]h$]h&]uh1juhjhhhj1hKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1jhhhjhNhNubh container)}(hX**Definition**:: struct nand_parameters { const char *model; bool supports_set_get_features; bool supports_read_cache; unsigned long set_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; unsigned long get_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; struct onfi_params *onfi; }; **Members** ``model`` Model name ``supports_set_get_features`` The NAND chip supports setting/getting features ``supports_read_cache`` The NAND chip supports read cache operations ``set_feature_list`` Bitmap of features that can be set ``get_feature_list`` Bitmap of features that can be get ``onfi`` ONFI specific parametersh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubj_)}(hX"struct nand_parameters { const char *model; bool supports_set_get_features; bool supports_read_cache; unsigned long set_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; unsigned long get_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; struct onfi_params *onfi; };h]hX"struct nand_parameters { const char *model; bool supports_set_get_features; bool supports_read_cache; unsigned long set_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; unsigned long get_feature_list[BITS_TO_LONGS(ONFI_FEATURE_NUMBER)]; struct onfi_params *onfi; };}hjsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubhdefinition_list)}(hhh](hdefinition_list_item)}(h``model`` Model name h](hterm)}(h ``model``h]hliteral)}(hjh]hmodel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubh definition)}(hhh]h)}(h Model nameh]h Model name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hN``supports_set_get_features`` The NAND chip supports setting/getting features h](j)}(h``supports_set_get_features``h]j)}(hj5h]hsupports_set_get_features}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj/ubj)}(hhh]h)}(h/The NAND chip supports setting/getting featuresh]h/The NAND chip supports setting/getting features}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjubj)}(hE``supports_read_cache`` The NAND chip supports read cache operations h](j)}(h``supports_read_cache``h]j)}(hjnh]hsupports_read_cache}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjhubj)}(hhh]h)}(h,The NAND chip supports read cache operationsh]h,The NAND chip supports read cache operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h8``set_feature_list`` Bitmap of features that can be set h](j)}(h``set_feature_list``h]j)}(hjh]hset_feature_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubj)}(hhh]h)}(h"Bitmap of features that can be seth]h"Bitmap of features that can be set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h8``get_feature_list`` Bitmap of features that can be get h](j)}(h``get_feature_list``h]j)}(hjh]hget_feature_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjubj)}(hhh]h)}(h"Bitmap of features that can be geth]h"Bitmap of features that can be get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``onfi`` ONFI specific parametersh](j)}(h``onfi``h]j)}(hj h]honfi}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj ubj)}(hhh]h)}(hONFI specific parametersh]hONFI specific parameters}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj/ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj. hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_id (C struct) c.nand_idhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_idh]j)}(hstruct nand_idh](j!)}(hj$h]hstruct}(hjs hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjo hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKubj3)}(h h]h }(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjo hhhj hKubjD)}(hnand_idh]jJ)}(hjm h]hnand_id}(hj hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjo hhhj hKubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjk hhhj hKubah}(h]jf ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj hKhjh hhubjv)}(hhh]h)}(hNAND id structureh]hNAND id structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj hhubah}(h]h ]h"]h$]h&]uh1juhjh hhhj hKubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(h**Definition**:: struct nand_id { u8 data[NAND_MAX_ID_LEN]; int len; }; **Members** ``data`` buffer containing the id bytes. ``len`` ID length.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj ubj_)}(h>struct nand_id { u8 data[NAND_MAX_ID_LEN]; int len; };h]h>struct nand_id { u8 data[NAND_MAX_ID_LEN]; int len; };}hj sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj ubh)}(h **Members**h]j)}(hj!h]hMembers}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj ubj)}(hhh](j)}(h)``data`` buffer containing the id bytes. h](j)}(h``data``h]j)}(hj"!h]hdata}(hj$!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj !ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhj!ubj)}(hhh]h)}(hbuffer containing the id bytes.h]hbuffer containing the id bytes.}(hj;!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7!hKhj8!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj7!hKhj!ubj)}(h``len`` ID length.h](j)}(h``len``h]j)}(hj[!h]hlen}(hj]!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY!ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjU!ubj)}(hhh]h)}(h ID length.h]h ID length.}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhKhjq!ubah}(h]h ]h"]h$]h&]uh1jhjU!ubeh}(h]h ]h"]h$]h&]uh1jhjp!hKhj!ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_ecc_step_info (C struct)c.nand_ecc_step_infohNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_ecc_step_infoh]j)}(hstruct nand_ecc_step_infoh](j!)}(hj$h]hstruct}(hj!hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!hhhj!hMubjD)}(hnand_ecc_step_infoh]jJ)}(hj!h]hnand_ecc_step_info}(hj!hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj!ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj!hhhj!hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj!hhhj!hMubah}(h]j!ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj!hMhj!hhubjv)}(hhh]h)}(h"ECC step information of ECC engineh]h"ECC step information of ECC engine}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj!hhubah}(h]h ]h"]h$]h&]uh1juhj!hhhj!hMubeh}(h]h ](jstructeh"]h$]h&]jjjj"jj"jjjuh1jhhhjhNhNubj)}(hX **Definition**:: struct nand_ecc_step_info { int stepsize; const int *strengths; int nstrengths; }; **Members** ``stepsize`` data bytes per ECC step ``strengths`` array of supported strengths ``nstrengths`` number of supported strengthsh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh:}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj"ubj_)}(h^struct nand_ecc_step_info { int stepsize; const int *strengths; int nstrengths; };h]h^struct nand_ecc_step_info { int stepsize; const int *strengths; int nstrengths; };}hj4"sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj"ubh)}(h **Members**h]j)}(hjE"h]hMembers}(hjG"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC"ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj"ubj)}(hhh](j)}(h%``stepsize`` data bytes per ECC step h](j)}(h ``stepsize``h]j)}(hjd"h]hstepsize}(hjf"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj^"ubj)}(hhh]h)}(hdata bytes per ECC steph]hdata bytes per ECC step}(hj}"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy"hMhjz"ubah}(h]h ]h"]h$]h&]uh1jhj^"ubeh}(h]h ]h"]h$]h&]uh1jhjy"hMhj["ubj)}(h+``strengths`` array of supported strengths h](j)}(h ``strengths``h]j)}(hj"h]h strengths}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj"ubj)}(hhh]h)}(harray of supported strengthsh]harray of supported strengths}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj["ubj)}(h,``nstrengths`` number of supported strengthsh](j)}(h``nstrengths``h]j)}(hj"h]h nstrengths}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj"ubj)}(hhh]h)}(hnumber of supported strengthsh]hnumber of supported strengths}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj["ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_ecc_caps (C struct)c.nand_ecc_capshNtauh1jhjhhhNhNubj)}(hhh](j)}(h nand_ecc_capsh]j)}(hstruct nand_ecc_capsh](j!)}(hj$h]hstruct}(hj0#hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,#hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM ubj3)}(h h]h }(hj>#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,#hhhj=#hM ubjD)}(h nand_ecc_capsh]jJ)}(hj*#h]h nand_ecc_caps}(hjP#hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjL#ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj,#hhhj=#hM ubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj(#hhhj=#hM ubah}(h]j##ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj=#hM hj%#hhubjv)}(hhh]h)}(hcapability of ECC engineh]hcapability of ECC engine}(hjr#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjo#hhubah}(h]h ]h"]h$]h&]uh1juhj%#hhhj=#hM ubeh}(h]h ](jstructeh"]h$]h&]jjjj#jj#jjjuh1jhhhjhNhNubj)}(hXb**Definition**:: struct nand_ecc_caps { const struct nand_ecc_step_info *stepinfos; int nstepinfos; int (*calc_ecc_bytes)(int step_size, int strength); }; **Members** ``stepinfos`` array of ECC step information ``nstepinfos`` number of ECC step information ``calc_ecc_bytes`` driver's hook to calculate ECC bytes per steph](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh:}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj#ubj_)}(hstruct nand_ecc_caps { const struct nand_ecc_step_info *stepinfos; int nstepinfos; int (*calc_ecc_bytes)(int step_size, int strength); };h]hstruct nand_ecc_caps { const struct nand_ecc_step_info *stepinfos; int nstepinfos; int (*calc_ecc_bytes)(int step_size, int strength); };}hj#sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj#ubh)}(h **Members**h]j)}(hj#h]hMembers}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj#ubj)}(hhh](j)}(h,``stepinfos`` array of ECC step information h](j)}(h ``stepinfos``h]j)}(hj#h]h stepinfos}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj#ubj)}(hhh]h)}(harray of ECC step informationh]harray of ECC step information}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubj)}(h.``nstepinfos`` number of ECC step information h](j)}(h``nstepinfos``h]j)}(hj$h]h nstepinfos}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj$ubj)}(hhh]h)}(hnumber of ECC step informationh]hnumber of ECC step information}(hj1$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-$hMhj.$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj-$hMhj#ubj)}(h@``calc_ecc_bytes`` driver's hook to calculate ECC bytes per steph](j)}(h``calc_ecc_bytes``h]j)}(hjQ$h]hcalc_ecc_bytes}(hjS$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjK$ubj)}(hhh]h)}(h-driver's hook to calculate ECC bytes per steph]h/driver’s hook to calculate ECC bytes per step}(hjj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjg$ubah}(h]h ]h"]h$]h&]uh1jhjK$ubeh}(h]h ]h"]h$]h&]uh1jhjf$hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_ecc_ctrl (C struct)c.nand_ecc_ctrlhNtauh1jhjhhhNhNubj)}(hhh](j)}(h nand_ecc_ctrlh]j)}(hstruct nand_ecc_ctrlh](j!)}(hj$h]hstruct}(hj$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$hhhj$hMubjD)}(h nand_ecc_ctrlh]jJ)}(hj$h]h nand_ecc_ctrl}(hj$hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj$ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj$hhhj$hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj$hhhj$hMubah}(h]j$ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj$hMhj$hhubjv)}(hhh]h)}(hControl structure for ECCh]hControl structure for ECC}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM)hj$hhubah}(h]h ]h"]h$]h&]uh1juhj$hhhj$hMubeh}(h]h ](jstructeh"]h$]h&]jjjj%jj%jjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct nand_ecc_ctrl { enum nand_ecc_engine_type engine_type; enum nand_ecc_placement placement; enum nand_ecc_algo algo; int steps; int size; int bytes; int total; int strength; int prepad; int postpad; unsigned int options; u8 *calc_buf; u8 *code_buf; void (*hwctl)(struct nand_chip *chip, int mode); int (*calculate)(struct nand_chip *chip, const uint8_t *dat, uint8_t *ecc_code); int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc); int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*read_page)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*read_subpage)(struct nand_chip *chip, uint32_t offs, uint32_t len, uint8_t *buf, int page); int (*write_subpage)(struct nand_chip *chip, uint32_t offset,uint32_t data_len, const uint8_t *data_buf, int oob_required, int page); int (*write_page)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*write_oob_raw)(struct nand_chip *chip, int page); int (*read_oob_raw)(struct nand_chip *chip, int page); int (*read_oob)(struct nand_chip *chip, int page); int (*write_oob)(struct nand_chip *chip, int page); }; **Members** ``engine_type`` ECC engine type ``placement`` OOB bytes placement ``algo`` ECC algorithm ``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 ``strength`` max number of correctible bits per ECC step ``prepad`` padding information for syndrome based ECC generators ``postpad`` padding information for syndrome based ECC generators ``options`` ECC specific options (see NAND_ECC_XXX flags defined above) ``calc_buf`` buffer for calculated ECC, size is oobsize. ``code_buf`` buffer for ECC read from flash, size is oobsize. ``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). Should return a positive number representing the number of corrected bitflips, -EBADMSG if the number of bitflips exceed ECC strength, or any other error code if the error is not directly related to correction. If -EBADMSG is returned the input buffers should be left untouched. ``read_page_raw`` function to read a raw page without ECC. This function should hide the specific layout used by the ECC controller and always return contiguous in-band and out-of-band data even if they're not stored contiguously on the NAND chip (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data). ``write_page_raw`` function to write a raw page without ECC. This function should hide the specific layout used by the ECC controller and consider the passed data as contiguous in-band and out-of-band data. ECC controller is responsible for doing the appropriate transformations to adapt to its specific layout (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data). ``read_page`` function to read a page according to the ECC generator requirements; returns maximum number of bitflips corrected in any single ECC step, -EIO hw error ``read_subpage`` function to read parts of the page covered by ECC; returns same as read_page() ``write_subpage`` function to write parts of the page covered by ECC. ``write_page`` function to write a page according to the ECC generator requirements. ``write_oob_raw`` function to write chip OOB data without ECC ``read_oob_raw`` function to read chip OOB data without ECC ``read_oob`` function to read chip OOB data ``write_oob`` function to write chip OOB datah](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubh:}(hj %hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM-hj %ubj_)}(hXjstruct nand_ecc_ctrl { enum nand_ecc_engine_type engine_type; enum nand_ecc_placement placement; enum nand_ecc_algo algo; int steps; int size; int bytes; int total; int strength; int prepad; int postpad; unsigned int options; u8 *calc_buf; u8 *code_buf; void (*hwctl)(struct nand_chip *chip, int mode); int (*calculate)(struct nand_chip *chip, const uint8_t *dat, uint8_t *ecc_code); int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc); int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*read_page)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*read_subpage)(struct nand_chip *chip, uint32_t offs, uint32_t len, uint8_t *buf, int page); int (*write_subpage)(struct nand_chip *chip, uint32_t offset,uint32_t data_len, const uint8_t *data_buf, int oob_required, int page); int (*write_page)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*write_oob_raw)(struct nand_chip *chip, int page); int (*read_oob_raw)(struct nand_chip *chip, int page); int (*read_oob)(struct nand_chip *chip, int page); int (*write_oob)(struct nand_chip *chip, int page); };h]hXjstruct nand_ecc_ctrl { enum nand_ecc_engine_type engine_type; enum nand_ecc_placement placement; enum nand_ecc_algo algo; int steps; int size; int bytes; int total; int strength; int prepad; int postpad; unsigned int options; u8 *calc_buf; u8 *code_buf; void (*hwctl)(struct nand_chip *chip, int mode); int (*calculate)(struct nand_chip *chip, const uint8_t *dat, uint8_t *ecc_code); int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc); int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*read_page)(struct nand_chip *chip, uint8_t *buf, int oob_required, int page); int (*read_subpage)(struct nand_chip *chip, uint32_t offs, uint32_t len, uint8_t *buf, int page); int (*write_subpage)(struct nand_chip *chip, uint32_t offset,uint32_t data_len, const uint8_t *data_buf, int oob_required, int page); int (*write_page)(struct nand_chip *chip, const uint8_t *buf, int oob_required, int page); int (*write_oob_raw)(struct nand_chip *chip, int page); int (*read_oob_raw)(struct nand_chip *chip, int page); int (*read_oob)(struct nand_chip *chip, int page); int (*write_oob)(struct nand_chip *chip, int page); };}hj*%sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM/hj %ubh)}(h **Members**h]j)}(hj;%h]hMembers}(hj=%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9%ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMLhj %ubj)}(hhh](j)}(h ``engine_type`` ECC engine type h](j)}(h``engine_type``h]j)}(hjZ%h]h engine_type}(hj\%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM+hjT%ubj)}(hhh]h)}(hECC engine typeh]hECC engine type}(hjs%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo%hM+hjp%ubah}(h]h ]h"]h$]h&]uh1jhjT%ubeh}(h]h ]h"]h$]h&]uh1jhjo%hM+hjQ%ubj)}(h"``placement`` OOB bytes placement h](j)}(h ``placement``h]j)}(hj%h]h placement}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM,hj%ubj)}(hhh]h)}(hOOB bytes placementh]hOOB bytes placement}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM,hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM,hjQ%ubj)}(h``algo`` ECC algorithm h](j)}(h``algo``h]j)}(hj%h]halgo}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM-hj%ubj)}(hhh]h)}(h ECC algorithmh]h ECC algorithm}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM-hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM-hjQ%ubj)}(h'``steps`` number of ECC steps per page h](j)}(h ``steps``h]j)}(hj&h]hsteps}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM.hj%ubj)}(hhh]h)}(hnumber of ECC steps per pageh]hnumber of ECC steps per page}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM.hj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj&hM.hjQ%ubj)}(h!``size`` data bytes per ECC step h](j)}(h``size``h]j)}(hj>&h]hsize}(hj@&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM/hj8&ubj)}(hhh]h)}(hdata bytes per ECC steph]hdata bytes per ECC step}(hjW&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS&hM/hjT&ubah}(h]h ]h"]h$]h&]uh1jhj8&ubeh}(h]h ]h"]h$]h&]uh1jhjS&hM/hjQ%ubj)}(h``bytes`` ECC bytes per step h](j)}(h ``bytes``h]j)}(hjw&h]hbytes}(hjy&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM0hjq&ubj)}(hhh]h)}(hECC bytes per steph]hECC bytes per step}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM0hj&ubah}(h]h ]h"]h$]h&]uh1jhjq&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM0hjQ%ubj)}(h-``total`` total number of ECC bytes per page h](j)}(h ``total``h]j)}(hj&h]htotal}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM2hj&ubj)}(hhh]h)}(h"total number of ECC bytes per pageh]h"total number of ECC bytes per page}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM2hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM2hjQ%ubj)}(h9``strength`` max number of correctible bits per ECC step h](j)}(h ``strength``h]j)}(hj&h]hstrength}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM1hj&ubj)}(hhh]h)}(h+max number of correctible bits per ECC steph]h+max number of correctible bits per ECC step}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM1hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM1hjQ%ubj)}(hA``prepad`` padding information for syndrome based ECC generators h](j)}(h ``prepad``h]j)}(hj"'h]hprepad}(hj$'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM3hj'ubj)}(hhh]h)}(h5padding information for syndrome based ECC generatorsh]h5padding information for syndrome based ECC generators}(hj;'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7'hM3hj8'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj7'hM3hjQ%ubj)}(hB``postpad`` padding information for syndrome based ECC generators h](j)}(h ``postpad``h]j)}(hj['h]hpostpad}(hj]'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM4hjU'ubj)}(hhh]h)}(h5padding information for syndrome based ECC generatorsh]h5padding information for syndrome based ECC generators}(hjt'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp'hM4hjq'ubah}(h]h ]h"]h$]h&]uh1jhjU'ubeh}(h]h ]h"]h$]h&]uh1jhjp'hM4hjQ%ubj)}(hH``options`` ECC specific options (see NAND_ECC_XXX flags defined above) h](j)}(h ``options``h]j)}(hj'h]hoptions}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM5hj'ubj)}(hhh]h)}(h;ECC specific options (see NAND_ECC_XXX flags defined above)h]h;ECC specific options (see NAND_ECC_XXX flags defined above)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM5hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM5hjQ%ubj)}(h9``calc_buf`` buffer for calculated ECC, size is oobsize. h](j)}(h ``calc_buf``h]j)}(hj'h]hcalc_buf}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM6hj'ubj)}(hhh]h)}(h+buffer for calculated ECC, size is oobsize.h]h+buffer for calculated ECC, size is oobsize.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM6hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM6hjQ%ubj)}(h>``code_buf`` buffer for ECC read from flash, size is oobsize. h](j)}(h ``code_buf``h]j)}(hj(h]hcode_buf}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM7hj(ubj)}(hhh]h)}(h0buffer for ECC read from flash, size is oobsize.h]h0buffer for ECC read from flash, size is oobsize.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM7hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM7hjQ%ubj)}(hl``hwctl`` function to control hardware ECC generator. Must only be provided if an hardware ECC is available h](j)}(h ``hwctl``h]j)}(hj?(h]hhwctl}(hjA(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM9hj9(ubj)}(hhh]h)}(hafunction to control hardware ECC generator. Must only be provided if an hardware ECC is availableh]hafunction to control hardware ECC generator. Must only be provided if an hardware ECC is available}(hjX(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM8hjU(ubah}(h]h ]h"]h$]h&]uh1jhj9(ubeh}(h]h ]h"]h$]h&]uh1jhjT(hM9hjQ%ubj)}(hI``calculate`` function for ECC calculation or readback from ECC hardware h](j)}(h ``calculate``h]j)}(hjy(h]h calculate}(hj{(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM:hjs(ubj)}(hhh]h)}(h:function for ECC calculation or readback from ECC hardwareh]h:function for ECC calculation or readback from ECC hardware}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM:hj(ubah}(h]h ]h"]h$]h&]uh1jhjs(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM:hjQ%ubj)}(hXc``correct`` function for ECC correction, matching to ECC generator (sw/hw). Should return a positive number representing the number of corrected bitflips, -EBADMSG if the number of bitflips exceed ECC strength, or any other error code if the error is not directly related to correction. If -EBADMSG is returned the input buffers should be left untouched. h](j)}(h ``correct``h]j)}(hj(h]hcorrect}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMAhj(ubj)}(hhh]h)}(hXVfunction for ECC correction, matching to ECC generator (sw/hw). Should return a positive number representing the number of corrected bitflips, -EBADMSG if the number of bitflips exceed ECC strength, or any other error code if the error is not directly related to correction. If -EBADMSG is returned the input buffers should be left untouched.h]hXVfunction for ECC correction, matching to ECC generator (sw/hw). Should return a positive number representing the number of corrected bitflips, -EBADMSG if the number of bitflips exceed ECC strength, or any other error code if the error is not directly related to correction. If -EBADMSG is returned the input buffers should be left untouched.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM;hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMAhjQ%ubj)}(hXG``read_page_raw`` function to read a raw page without ECC. This function should hide the specific layout used by the ECC controller and always return contiguous in-band and out-of-band data even if they're not stored contiguously on the NAND chip (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data). h](j)}(h``read_page_raw``h]j)}(hj(h]h read_page_raw}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMHhj(ubj)}(hhh]h)}(hX4function to read a raw page without ECC. This function should hide the specific layout used by the ECC controller and always return contiguous in-band and out-of-band data even if they're not stored contiguously on the NAND chip (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data).h]hX6function to read a raw page without ECC. This function should hide the specific layout used by the ECC controller and always return contiguous in-band and out-of-band data even if they’re not stored contiguously on the NAND chip (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMBhj)ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj)hMHhjQ%ubj)}(hX``write_page_raw`` function to write a raw page without ECC. This function should hide the specific layout used by the ECC controller and consider the passed data as contiguous in-band and out-of-band data. ECC controller is responsible for doing the appropriate transformations to adapt to its specific layout (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data). h](j)}(h``write_page_raw``h]j)}(hj&)h]hwrite_page_raw}(hj()hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMPhj )ubj)}(hhh]h)}(hXsfunction to write a raw page without ECC. This function should hide the specific layout used by the ECC controller and consider the passed data as contiguous in-band and out-of-band data. ECC controller is responsible for doing the appropriate transformations to adapt to its specific layout (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data).h]hXsfunction to write a raw page without ECC. This function should hide the specific layout used by the ECC controller and consider the passed data as contiguous in-band and out-of-band data. ECC controller is responsible for doing the appropriate transformations to adapt to its specific layout (e.g. NAND_ECC_PLACEMENT_INTERLEAVED interleaves in-band and out-of-band data).}(hj?)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMIhj<)ubah}(h]h ]h"]h$]h&]uh1jhj )ubeh}(h]h ]h"]h$]h&]uh1jhj;)hMPhjQ%ubj)}(h``read_page`` function to read a page according to the ECC generator requirements; returns maximum number of bitflips corrected in any single ECC step, -EIO hw error h](j)}(h ``read_page``h]j)}(hj`)h]h read_page}(hjb)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMShjZ)ubj)}(hhh]h)}(hfunction to read a page according to the ECC generator requirements; returns maximum number of bitflips corrected in any single ECC step, -EIO hw errorh]hfunction to read a page according to the ECC generator requirements; returns maximum number of bitflips corrected in any single ECC step, -EIO hw error}(hjy)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMQhjv)ubah}(h]h ]h"]h$]h&]uh1jhjZ)ubeh}(h]h ]h"]h$]h&]uh1jhju)hMShjQ%ubj)}(h```read_subpage`` function to read parts of the page covered by ECC; returns same as read_page() h](j)}(h``read_subpage``h]j)}(hj)h]h read_subpage}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMUhj)ubj)}(hhh]h)}(hNfunction to read parts of the page covered by ECC; returns same as read_page()h]hNfunction to read parts of the page covered by ECC; returns same as read_page()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMThj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMUhjQ%ubj)}(hF``write_subpage`` function to write parts of the page covered by ECC. h](j)}(h``write_subpage``h]j)}(hj)h]h write_subpage}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMVhj)ubj)}(hhh]h)}(h3function to write parts of the page covered by ECC.h]h3function to write parts of the page covered by ECC.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMVhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMVhjQ%ubj)}(hU``write_page`` function to write a page according to the ECC generator requirements. h](j)}(h``write_page``h]j)}(hj *h]h write_page}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj *ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhj*ubj)}(hhh]h)}(hEfunction to write a page according to the ECC generator requirements.h]hEfunction to write a page according to the ECC generator requirements.}(hj&*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMWhj#*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj"*hMXhjQ%ubj)}(h>``write_oob_raw`` function to write chip OOB data without ECC h](j)}(h``write_oob_raw``h]j)}(hjG*h]h write_oob_raw}(hjI*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMYhjA*ubj)}(hhh]h)}(h+function to write chip OOB data without ECCh]h+function to write chip OOB data without ECC}(hj`*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\*hMYhj]*ubah}(h]h ]h"]h$]h&]uh1jhjA*ubeh}(h]h ]h"]h$]h&]uh1jhj\*hMYhjQ%ubj)}(h<``read_oob_raw`` function to read chip OOB data without ECC h](j)}(h``read_oob_raw``h]j)}(hj*h]h read_oob_raw}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMZhjz*ubj)}(hhh]h)}(h*function to read chip OOB data without ECCh]h*function to read chip OOB data without ECC}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMZhj*ubah}(h]h ]h"]h$]h&]uh1jhjz*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMZhjQ%ubj)}(h,``read_oob`` function to read chip OOB data h](j)}(h ``read_oob``h]j)}(hj*h]hread_oob}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM[hj*ubj)}(hhh]h)}(hfunction to read chip OOB datah]hfunction to read chip OOB data}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hM[hj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hM[hjQ%ubj)}(h-``write_oob`` function to write chip OOB datah](j)}(h ``write_oob``h]j)}(hj*h]h write_oob}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM[hj*ubj)}(hhh]h)}(hfunction to write chip OOB datah]hfunction to write chip OOB data}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM\hj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hM[hjQ%ubeh}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_sdr_timings (C struct)c.nand_sdr_timingshNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_sdr_timingsh]j)}(hstruct nand_sdr_timingsh](j!)}(hj$h]hstruct}(hjL+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjH+hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMbubj3)}(h h]h }(hjZ+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjH+hhhjY+hMbubjD)}(hnand_sdr_timingsh]jJ)}(hjF+h]hnand_sdr_timings}(hjl+hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjh+ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjH+hhhjY+hMbubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjD+hhhjY+hMbubah}(h]j?+ah ](jmjneh"]h$]h&]jrjs)jthuh1jhjY+hMbhjA+hhubjv)}(hhh]h)}(hSDR NAND chip timingsh]hSDR NAND chip timings}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1juhjA+hhhjY+hMbubeh}(h]h ](jstructeh"]h$]h&]jjjj+jj+jjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct nand_sdr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tALH_min; u32 tADL_min; u32 tALS_min; u32 tAR_min; u32 tCEA_max; u32 tCEH_min; u32 tCH_min; u32 tCHZ_max; u32 tCLH_min; u32 tCLR_min; u32 tCLS_min; u32 tCOH_min; u32 tCS_min; u32 tDH_min; u32 tDS_min; u32 tFEAT_max; u32 tIR_min; u32 tITC_max; u32 tRC_min; u32 tREA_max; u32 tREH_min; u32 tRHOH_min; u32 tRHW_min; u32 tRHZ_max; u32 tRLOH_min; u32 tRP_min; u32 tRR_min; u64 tRST_max; u32 tWB_max; u32 tWC_min; u32 tWH_min; u32 tWHR_min; u32 tWP_min; u32 tWW_min; }; **Members** ``tBERS_max`` Block erase time ``tCCS_min`` Change column setup time ``tPROG_max`` Page program time ``tR_max`` Page read time ``tALH_min`` ALE hold time ``tADL_min`` ALE to data loading time ``tALS_min`` ALE setup time ``tAR_min`` ALE to RE# delay ``tCEA_max`` CE# access time ``tCEH_min`` CE# high hold time ``tCH_min`` CE# hold time ``tCHZ_max`` CE# high to output hi-Z ``tCLH_min`` CLE hold time ``tCLR_min`` CLE to RE# delay ``tCLS_min`` CLE setup time ``tCOH_min`` CE# high to output hold ``tCS_min`` CE# setup time ``tDH_min`` Data hold time ``tDS_min`` Data setup time ``tFEAT_max`` Busy time for Set Features and Get Features ``tIR_min`` Output hi-Z to RE# low ``tITC_max`` Interface and Timing Mode Change time ``tRC_min`` RE# cycle time ``tREA_max`` RE# access time ``tREH_min`` RE# high hold time ``tRHOH_min`` RE# high to output hold ``tRHW_min`` RE# high to WE# low ``tRHZ_max`` RE# high to output hi-Z ``tRLOH_min`` RE# low to output hold ``tRP_min`` RE# pulse width ``tRR_min`` Ready to RE# low (data only) ``tRST_max`` Device reset time, measured from the falling edge of R/B# to the rising edge of R/B#. ``tWB_max`` WE# high to SR[6] low ``tWC_min`` WE# cycle time ``tWH_min`` WE# high hold time ``tWHR_min`` WE# high to RE# low ``tWP_min`` WE# pulse width ``tWW_min`` WP# transition to WE# lowh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh:}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj+ubj_)}(hXstruct nand_sdr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tALH_min; u32 tADL_min; u32 tALS_min; u32 tAR_min; u32 tCEA_max; u32 tCEH_min; u32 tCH_min; u32 tCHZ_max; u32 tCLH_min; u32 tCLR_min; u32 tCLS_min; u32 tCOH_min; u32 tCS_min; u32 tDH_min; u32 tDS_min; u32 tFEAT_max; u32 tIR_min; u32 tITC_max; u32 tRC_min; u32 tREA_max; u32 tREH_min; u32 tRHOH_min; u32 tRHW_min; u32 tRHZ_max; u32 tRLOH_min; u32 tRP_min; u32 tRR_min; u64 tRST_max; u32 tWB_max; u32 tWC_min; u32 tWH_min; u32 tWHR_min; u32 tWP_min; u32 tWW_min; };h]hXstruct nand_sdr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tALH_min; u32 tADL_min; u32 tALS_min; u32 tAR_min; u32 tCEA_max; u32 tCEH_min; u32 tCH_min; u32 tCHZ_max; u32 tCLH_min; u32 tCLR_min; u32 tCLS_min; u32 tCOH_min; u32 tCS_min; u32 tDH_min; u32 tDS_min; u32 tFEAT_max; u32 tIR_min; u32 tITC_max; u32 tRC_min; u32 tREA_max; u32 tREH_min; u32 tRHOH_min; u32 tRHW_min; u32 tRHZ_max; u32 tRLOH_min; u32 tRP_min; u32 tRR_min; u64 tRST_max; u32 tWB_max; u32 tWC_min; u32 tWH_min; u32 tWHR_min; u32 tWP_min; u32 tWW_min; };}hj+sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj+ubh)}(h **Members**h]j)}(hj+h]hMembers}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj+ubj)}(hhh](j)}(h``tBERS_max`` Block erase time h](j)}(h ``tBERS_max``h]j)}(hj+h]h tBERS_max}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj+ubj)}(hhh]h)}(hBlock erase timeh]hBlock erase time}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(h&``tCCS_min`` Change column setup time h](j)}(h ``tCCS_min``h]j)}(hj4,h]htCCS_min}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj.,ubj)}(hhh]h)}(hChange column setup timeh]hChange column setup time}(hjM,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI,hMhjJ,ubah}(h]h ]h"]h$]h&]uh1jhj.,ubeh}(h]h ]h"]h$]h&]uh1jhjI,hMhj+ubj)}(h ``tPROG_max`` Page program time h](j)}(h ``tPROG_max``h]j)}(hjm,h]h tPROG_max}(hjo,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjg,ubj)}(hhh]h)}(hPage program timeh]hPage program time}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjg,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(h``tR_max`` Page read time h](j)}(h ``tR_max``h]j)}(hj,h]htR_max}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj,ubj)}(hhh]h)}(hPage read timeh]hPage read time}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(h``tALH_min`` ALE hold time h](j)}(h ``tALH_min``h]j)}(hj,h]htALH_min}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj,ubj)}(hhh]h)}(h ALE hold timeh]h ALE hold time}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(h&``tADL_min`` ALE to data loading time h](j)}(h ``tADL_min``h]j)}(hj-h]htADL_min}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj-ubj)}(hhh]h)}(hALE to data loading timeh]hALE to data loading time}(hj1-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj--hMhj.-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj--hMhj+ubj)}(h``tALS_min`` ALE setup time h](j)}(h ``tALS_min``h]j)}(hjQ-h]htALS_min}(hjS-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjK-ubj)}(hhh]h)}(hALE setup timeh]hALE setup time}(hjj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf-hMhjg-ubah}(h]h ]h"]h$]h&]uh1jhjK-ubeh}(h]h ]h"]h$]h&]uh1jhjf-hMhj+ubj)}(h``tAR_min`` ALE to RE# delay h](j)}(h ``tAR_min``h]j)}(hj-h]htAR_min}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj-ubj)}(hhh]h)}(hALE to RE# delayh]hALE to RE# delay}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj+ubj)}(h``tCEA_max`` CE# access time h](j)}(h ``tCEA_max``h]j)}(hj-h]htCEA_max}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj-ubj)}(hhh]h)}(hCE# access timeh]hCE# access time}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj+ubj)}(h ``tCEH_min`` CE# high hold time h](j)}(h ``tCEH_min``h]j)}(hj-h]htCEH_min}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj-ubj)}(hhh]h)}(hCE# high hold timeh]hCE# high hold time}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj+ubj)}(h``tCH_min`` CE# hold time h](j)}(h ``tCH_min``h]j)}(hj5.h]htCH_min}(hj7.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/.ubj)}(hhh]h)}(h CE# hold timeh]h CE# hold time}(hjN.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ.hMhjK.ubah}(h]h ]h"]h$]h&]uh1jhj/.ubeh}(h]h ]h"]h$]h&]uh1jhjJ.hMhj+ubj)}(h%``tCHZ_max`` CE# high to output hi-Z h](j)}(h ``tCHZ_max``h]j)}(hjn.h]htCHZ_max}(hjp.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjh.ubj)}(hhh]h)}(hCE# high to output hi-Zh]hCE# high to output hi-Z}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjh.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj+ubj)}(h``tCLH_min`` CLE hold time h](j)}(h ``tCLH_min``h]j)}(hj.h]htCLH_min}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj.ubj)}(hhh]h)}(h CLE hold timeh]h CLE hold time}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj+ubj)}(h``tCLR_min`` CLE to RE# delay h](j)}(h ``tCLR_min``h]j)}(hj.h]htCLR_min}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj.ubj)}(hhh]h)}(hCLE to RE# delayh]hCLE to RE# delay}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj+ubj)}(h``tCLS_min`` CLE setup time h](j)}(h ``tCLS_min``h]j)}(hj/h]htCLS_min}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/ubj)}(hhh]h)}(hCLE setup timeh]hCLE setup time}(hj2/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj./hMhj//ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj./hMhj+ubj)}(h%``tCOH_min`` CE# high to output hold h](j)}(h ``tCOH_min``h]j)}(hjR/h]htCOH_min}(hjT/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjL/ubj)}(hhh]h)}(hCE# high to output holdh]hCE# high to output hold}(hjk/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg/hMhjh/ubah}(h]h ]h"]h$]h&]uh1jhjL/ubeh}(h]h ]h"]h$]h&]uh1jhjg/hMhj+ubj)}(h``tCS_min`` CE# setup time h](j)}(h ``tCS_min``h]j)}(hj/h]htCS_min}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/ubj)}(hhh]h)}(hCE# setup timeh]hCE# setup time}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj+ubj)}(h``tDH_min`` Data hold time h](j)}(h ``tDH_min``h]j)}(hj/h]htDH_min}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/ubj)}(hhh]h)}(hData hold timeh]hData hold time}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj+ubj)}(h``tDS_min`` Data setup time h](j)}(h ``tDS_min``h]j)}(hj/h]htDS_min}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/ubj)}(hhh]h)}(hData setup timeh]hData setup time}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj+ubj)}(h:``tFEAT_max`` Busy time for Set Features and Get Features h](j)}(h ``tFEAT_max``h]j)}(hj60h]h tFEAT_max}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj40ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj00ubj)}(hhh]h)}(h+Busy time for Set Features and Get Featuresh]h+Busy time for Set Features and Get Features}(hjO0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK0hMhjL0ubah}(h]h ]h"]h$]h&]uh1jhj00ubeh}(h]h ]h"]h$]h&]uh1jhjK0hMhj+ubj)}(h#``tIR_min`` Output hi-Z to RE# low h](j)}(h ``tIR_min``h]j)}(hjo0h]htIR_min}(hjq0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhji0ubj)}(hhh]h)}(hOutput hi-Z to RE# lowh]hOutput hi-Z to RE# low}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhji0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj+ubj)}(h3``tITC_max`` Interface and Timing Mode Change time h](j)}(h ``tITC_max``h]j)}(hj0h]htITC_max}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj0ubj)}(hhh]h)}(h%Interface and Timing Mode Change timeh]h%Interface and Timing Mode Change time}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj+ubj)}(h``tRC_min`` RE# cycle time h](j)}(h ``tRC_min``h]j)}(hj0h]htRC_min}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj0ubj)}(hhh]h)}(hRE# cycle timeh]hRE# cycle time}(hVj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj+ubj)}(h``tREA_max`` RE# access time h](j)}(h ``tREA_max``h]j)}(hj1h]htREA_max}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1ubj)}(hhh]h)}(hRE# access timeh]hRE# access time}(hj31hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/1hMhj01ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj/1hMhj+ubj)}(h ``tREH_min`` RE# high hold time h](j)}(h ``tREH_min``h]j)}(hjS1h]htREH_min}(hjU1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjM1ubj)}(hhh]h)}(hRE# high hold timeh]hRE# high hold time}(hjl1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh1hMhji1ubah}(h]h ]h"]h$]h&]uh1jhjM1ubeh}(h]h ]h"]h$]h&]uh1jhjh1hMhj+ubj)}(h&``tRHOH_min`` RE# high to output hold h](j)}(h ``tRHOH_min``h]j)}(hj1h]h tRHOH_min}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1ubj)}(hhh]h)}(hRE# high to output holdh]hRE# high to output hold}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj+ubj)}(h!``tRHW_min`` RE# high to WE# low h](j)}(h ``tRHW_min``h]j)}(hj1h]htRHW_min}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1ubj)}(hhh]h)}(hRE# high to WE# lowh]hRE# high to WE# low}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj+ubj)}(h%``tRHZ_max`` RE# high to output hi-Z h](j)}(h ``tRHZ_max``h]j)}(hj1h]htRHZ_max}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1ubj)}(hhh]h)}(hRE# high to output hi-Zh]hRE# high to output hi-Z}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj+ubj)}(h%``tRLOH_min`` RE# low to output hold h](j)}(h ``tRLOH_min``h]j)}(hj72h]h tRLOH_min}(hj92hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj52ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj12ubj)}(hhh]h)}(hRE# low to output holdh]hRE# low to output hold}(hjP2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL2hMhjM2ubah}(h]h ]h"]h$]h&]uh1jhj12ubeh}(h]h ]h"]h$]h&]uh1jhjL2hMhj+ubj)}(h``tRP_min`` RE# pulse width h](j)}(h ``tRP_min``h]j)}(hjp2h]htRP_min}(hjr2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjj2ubj)}(hhh]h)}(hRE# pulse widthh]hRE# pulse width}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj+ubj)}(h)``tRR_min`` Ready to RE# low (data only) h](j)}(h ``tRR_min``h]j)}(hj2h]htRR_min}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj2ubj)}(hhh]h)}(hReady to RE# low (data only)h]hReady to RE# low (data only)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj+ubj)}(hc``tRST_max`` Device reset time, measured from the falling edge of R/B# to the rising edge of R/B#. h](j)}(h ``tRST_max``h]j)}(hj2h]htRST_max}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj2ubj)}(hhh]h)}(hUDevice reset time, measured from the falling edge of R/B# to the rising edge of R/B#.h]hUDevice reset time, measured from the falling edge of R/B# to the rising edge of R/B#.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj+ubj)}(h"``tWB_max`` WE# high to SR[6] low h](j)}(h ``tWB_max``h]j)}(hj3h]htWB_max}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj3ubj)}(hhh]h)}(hWE# high to SR[6] lowh]hWE# high to SR[6] low}(hj53hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj13hMhj23ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj13hMhj+ubj)}(h``tWC_min`` WE# cycle time h](j)}(h ``tWC_min``h]j)}(hjU3h]htWC_min}(hjW3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjO3ubj)}(hhh]h)}(hWE# cycle timeh]hWE# cycle time}(hjn3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj3hMhjk3ubah}(h]h ]h"]h$]h&]uh1jhjO3ubeh}(h]h ]h"]h$]h&]uh1jhjj3hMhj+ubj)}(h``tWH_min`` WE# high hold time h](j)}(h ``tWH_min``h]j)}(hj3h]htWH_min}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj3ubj)}(hhh]h)}(hWE# high hold timeh]hWE# high hold time}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj+ubj)}(h!``tWHR_min`` WE# high to RE# low h](j)}(h ``tWHR_min``h]j)}(hj3h]htWHR_min}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj3ubj)}(hhh]h)}(hWE# high to RE# lowh]hWE# high to RE# low}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj+ubj)}(h``tWP_min`` WE# pulse width h](j)}(h ``tWP_min``h]j)}(hj4h]htWP_min}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj3ubj)}(hhh]h)}(hWE# pulse widthh]hWE# pulse width}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj+ubj)}(h%``tWW_min`` WP# transition to WE# lowh](j)}(h ``tWW_min``h]j)}(hj94h]htWW_min}(hj;4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj74ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj34ubj)}(hhh]h)}(hWP# transition to WE# lowh]hWP# transition to WE# low}(hjR4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjO4ubah}(h]h ]h"]h$]h&]uh1jhj34ubeh}(h]h ]h"]h$]h&]uh1jhjN4hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hj|4h]h Description}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz4ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hX#This struct defines the timing requirements of a SDR NAND chip. These information can be found in every NAND datasheets and the timings meaning are described in the ONFI specifications: https://media-www.micron.com/-/media/client/onfi/specs/onfi_3_1_spec.pdf (chapter 4.15 Timing Parameters)h](hThis struct defines the timing requirements of a SDR NAND chip. These information can be found in every NAND datasheets and the timings meaning are described in the ONFI specifications: }(hj4hhhNhNubh reference)}(hHhttps://media-www.micron.com/-/media/client/onfi/specs/onfi_3_1_spec.pdfh]hHhttps://media-www.micron.com/-/media/client/onfi/specs/onfi_3_1_spec.pdf}(hj4hhhNhNubah}(h]h ]h"]h$]h&]refurij4uh1j4hj4ubh! (chapter 4.15 Timing Parameters)}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(h/All these timings are expressed in picoseconds.h]h/All these timings are expressed in picoseconds.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_nvddr_timings (C struct)c.nand_nvddr_timingshNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_nvddr_timingsh]j)}(hstruct nand_nvddr_timingsh](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj4hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4hhhj4hMubjD)}(hnand_nvddr_timingsh]jJ)}(hj4h]hnand_nvddr_timings}(hj4hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj4ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj4hhhj4hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj4hhhj4hMubah}(h]j4ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj4hMhj4hhubjv)}(hhh]h)}(hNV-DDR NAND chip timingsh]hNV-DDR NAND chip timings}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj5hhubah}(h]h ]h"]h$]h&]uh1juhj4hhhj4hMubeh}(h]h ](jstructeh"]h$]h&]jjjj85jj85jjjuh1jhhhjhNhNubj)}(hX] **Definition**:: struct nand_nvddr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tAC_min; u32 tAC_max; u32 tADL_min; u32 tCAD_min; u32 tCAH_min; u32 tCALH_min; u32 tCALS_min; u32 tCAS_min; u32 tCEH_min; u32 tCH_min; u32 tCK_min; u32 tCS_min; u32 tDH_min; u32 tDQSCK_min; u32 tDQSCK_max; u32 tDQSD_min; u32 tDQSD_max; u32 tDQSHZ_max; u32 tDQSQ_max; u32 tDS_min; u32 tDSC_min; u32 tFEAT_max; u32 tITC_max; u32 tQHS_max; u32 tRHW_min; u32 tRR_min; u32 tRST_max; u32 tWB_max; u32 tWHR_min; u32 tWRCK_min; u32 tWW_min; }; **Members** ``tBERS_max`` Block erase time ``tCCS_min`` Change column setup time ``tPROG_max`` Page program time ``tR_max`` Page read time ``tAC_min`` Access window of DQ[7:0] from CLK ``tAC_max`` Access window of DQ[7:0] from CLK ``tADL_min`` ALE to data loading time ``tCAD_min`` Command, Address, Data delay ``tCAH_min`` Command/Address DQ hold time ``tCALH_min`` W/R_n, CLE and ALE hold time ``tCALS_min`` W/R_n, CLE and ALE setup time ``tCAS_min`` Command/address DQ setup time ``tCEH_min`` CE# high hold time ``tCH_min`` CE# hold time ``tCK_min`` Average clock cycle time ``tCS_min`` CE# setup time ``tDH_min`` Data hold time ``tDQSCK_min`` Start of the access window of DQS from CLK ``tDQSCK_max`` End of the access window of DQS from CLK ``tDQSD_min`` Min W/R_n low to DQS/DQ driven by device ``tDQSD_max`` Max W/R_n low to DQS/DQ driven by device ``tDQSHZ_max`` W/R_n high to DQS/DQ tri-state by device ``tDQSQ_max`` DQS-DQ skew, DQS to last DQ valid, per access ``tDS_min`` Data setup time ``tDSC_min`` DQS cycle time ``tFEAT_max`` Busy time for Set Features and Get Features ``tITC_max`` Interface and Timing Mode Change time ``tQHS_max`` Data hold skew factor ``tRHW_min`` Data output cycle to command, address, or data input cycle ``tRR_min`` Ready to RE# low (data only) ``tRST_max`` Device reset time, measured from the falling edge of R/B# to the rising edge of R/B#. ``tWB_max`` WE# high to SR[6] low ``tWHR_min`` WE# high to RE# low ``tWRCK_min`` W/R_n low to data output cycle ``tWW_min`` WP# transition to WE# lowh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjD5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@5ubh:}(hj@5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj<5ubj_)}(hXstruct nand_nvddr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tAC_min; u32 tAC_max; u32 tADL_min; u32 tCAD_min; u32 tCAH_min; u32 tCALH_min; u32 tCALS_min; u32 tCAS_min; u32 tCEH_min; u32 tCH_min; u32 tCK_min; u32 tCS_min; u32 tDH_min; u32 tDQSCK_min; u32 tDQSCK_max; u32 tDQSD_min; u32 tDQSD_max; u32 tDQSHZ_max; u32 tDQSQ_max; u32 tDS_min; u32 tDSC_min; u32 tFEAT_max; u32 tITC_max; u32 tQHS_max; u32 tRHW_min; u32 tRR_min; u32 tRST_max; u32 tWB_max; u32 tWHR_min; u32 tWRCK_min; u32 tWW_min; };h]hXstruct nand_nvddr_timings { u64 tBERS_max; u32 tCCS_min; u64 tPROG_max; u64 tR_max; u32 tAC_min; u32 tAC_max; u32 tADL_min; u32 tCAD_min; u32 tCAH_min; u32 tCALH_min; u32 tCALS_min; u32 tCAS_min; u32 tCEH_min; u32 tCH_min; u32 tCK_min; u32 tCS_min; u32 tDH_min; u32 tDQSCK_min; u32 tDQSCK_max; u32 tDQSD_min; u32 tDQSD_max; u32 tDQSHZ_max; u32 tDQSQ_max; u32 tDS_min; u32 tDSC_min; u32 tFEAT_max; u32 tITC_max; u32 tQHS_max; u32 tRHW_min; u32 tRR_min; u32 tRST_max; u32 tWB_max; u32 tWHR_min; u32 tWRCK_min; u32 tWW_min; };}hj]5sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj<5ubh)}(h **Members**h]j)}(hjn5h]hMembers}(hjp5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl5ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj<5ubj)}(hhh](j)}(h``tBERS_max`` Block erase time h](j)}(h ``tBERS_max``h]j)}(hj5h]h tBERS_max}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj5ubj)}(hhh]h)}(hBlock erase timeh]hBlock erase time}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h&``tCCS_min`` Change column setup time h](j)}(h ``tCCS_min``h]j)}(hj5h]htCCS_min}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj5ubj)}(hhh]h)}(hChange column setup timeh]hChange column setup time}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h ``tPROG_max`` Page program time h](j)}(h ``tPROG_max``h]j)}(hj5h]h tPROG_max}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj5ubj)}(hhh]h)}(hPage program timeh]hPage program time}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h``tR_max`` Page read time h](j)}(h ``tR_max``h]j)}(hj86h]htR_max}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj66ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj26ubj)}(hhh]h)}(hPage read timeh]hPage read time}(hjQ6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM6hMhjN6ubah}(h]h ]h"]h$]h&]uh1jhj26ubeh}(h]h ]h"]h$]h&]uh1jhjM6hMhj5ubj)}(h.``tAC_min`` Access window of DQ[7:0] from CLK h](j)}(h ``tAC_min``h]j)}(hjq6h]htAC_min}(hjs6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjk6ubj)}(hhh]h)}(h!Access window of DQ[7:0] from CLKh]h!Access window of DQ[7:0] from CLK}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjk6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h.``tAC_max`` Access window of DQ[7:0] from CLK h](j)}(h ``tAC_max``h]j)}(hj6h]htAC_max}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj6ubj)}(hhh]h)}(h!Access window of DQ[7:0] from CLKh]h!Access window of DQ[7:0] from CLK}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h&``tADL_min`` ALE to data loading time h](j)}(h ``tADL_min``h]j)}(hj6h]htADL_min}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj6ubj)}(hhh]h)}(hALE to data loading timeh]hALE to data loading time}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h*``tCAD_min`` Command, Address, Data delay h](j)}(h ``tCAD_min``h]j)}(hj7h]htCAD_min}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj7ubj)}(hhh]h)}(hCommand, Address, Data delayh]hCommand, Address, Data delay}(hj57hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj17hMhj27ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj17hMhj5ubj)}(h*``tCAH_min`` Command/Address DQ hold time h](j)}(h ``tCAH_min``h]j)}(hjU7h]htCAH_min}(hjW7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjO7ubj)}(hhh]h)}(hCommand/Address DQ hold timeh]hCommand/Address DQ hold time}(hjn7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj7hMhjk7ubah}(h]h ]h"]h$]h&]uh1jhjO7ubeh}(h]h ]h"]h$]h&]uh1jhjj7hMhj5ubj)}(h+``tCALH_min`` W/R_n, CLE and ALE hold time h](j)}(h ``tCALH_min``h]j)}(hj7h]h tCALH_min}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj7ubj)}(hhh]h)}(hW/R_n, CLE and ALE hold timeh]hW/R_n, CLE and ALE hold time}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj5ubj)}(h,``tCALS_min`` W/R_n, CLE and ALE setup time h](j)}(h ``tCALS_min``h]j)}(hj7h]h tCALS_min}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj7ubj)}(hhh]h)}(hW/R_n, CLE and ALE setup timeh]hW/R_n, CLE and ALE setup time}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj5ubj)}(h+``tCAS_min`` Command/address DQ setup time h](j)}(h ``tCAS_min``h]j)}(hj8h]htCAS_min}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj7ubj)}(hhh]h)}(hCommand/address DQ setup timeh]hCommand/address DQ setup time}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj5ubj)}(h ``tCEH_min`` CE# high hold time h](j)}(h ``tCEH_min``h]j)}(hj98h]htCEH_min}(hj;8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj78ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj38ubj)}(hhh]h)}(hCE# high hold timeh]hCE# high hold time}(hjR8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN8hMhjO8ubah}(h]h ]h"]h$]h&]uh1jhj38ubeh}(h]h ]h"]h$]h&]uh1jhjN8hMhj5ubj)}(h``tCH_min`` CE# hold time h](j)}(h ``tCH_min``h]j)}(hjr8h]htCH_min}(hjt8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp8ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjl8ubj)}(hhh]h)}(h CE# hold timeh]h CE# hold time}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjl8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj5ubj)}(h%``tCK_min`` Average clock cycle time h](j)}(h ``tCK_min``h]j)}(hj8h]htCK_min}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj8ubj)}(hhh]h)}(hAverage clock cycle timeh]hAverage clock cycle time}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj5ubj)}(h``tCS_min`` CE# setup time h](j)}(h ``tCS_min``h]j)}(hj8h]htCS_min}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj8ubj)}(hhh]h)}(hCE# setup timeh]hCE# setup time}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj5ubj)}(h``tDH_min`` Data hold time h](j)}(h ``tDH_min``h]j)}(hj9h]htDH_min}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj9ubj)}(hhh]h)}(hData hold timeh]hData hold time}(hj69hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj29hMhj39ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj29hMhj5ubj)}(h:``tDQSCK_min`` Start of the access window of DQS from CLK h](j)}(h``tDQSCK_min``h]j)}(hjV9h]h tDQSCK_min}(hjX9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjP9ubj)}(hhh]h)}(h*Start of the access window of DQS from CLKh]h*Start of the access window of DQS from CLK}(hjo9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk9hMhjl9ubah}(h]h ]h"]h$]h&]uh1jhjP9ubeh}(h]h ]h"]h$]h&]uh1jhjk9hMhj5ubj)}(h8``tDQSCK_max`` End of the access window of DQS from CLK h](j)}(h``tDQSCK_max``h]j)}(hj9h]h tDQSCK_max}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj9ubj)}(hhh]h)}(h(End of the access window of DQS from CLKh]h(End of the access window of DQS from CLK}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj5ubj)}(h7``tDQSD_min`` Min W/R_n low to DQS/DQ driven by device h](j)}(h ``tDQSD_min``h]j)}(hj9h]h tDQSD_min}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj9ubj)}(hhh]h)}(h(Min W/R_n low to DQS/DQ driven by deviceh]h(Min W/R_n low to DQS/DQ driven by device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj5ubj)}(h7``tDQSD_max`` Max W/R_n low to DQS/DQ driven by device h](j)}(h ``tDQSD_max``h]j)}(hj:h]h tDQSD_max}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj9ubj)}(hhh]h)}(h(Max W/R_n low to DQS/DQ driven by deviceh]h(Max W/R_n low to DQS/DQ driven by device}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj5ubj)}(h8``tDQSHZ_max`` W/R_n high to DQS/DQ tri-state by device h](j)}(h``tDQSHZ_max``h]j)}(hj::h]h tDQSHZ_max}(hj<:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj4:ubj)}(hhh]h)}(h(W/R_n high to DQS/DQ tri-state by deviceh]h(W/R_n high to DQS/DQ tri-state by device}(hjS:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO:hMhjP:ubah}(h]h ]h"]h$]h&]uh1jhj4:ubeh}(h]h ]h"]h$]h&]uh1jhjO:hMhj5ubj)}(h<``tDQSQ_max`` DQS-DQ skew, DQS to last DQ valid, per access h](j)}(h ``tDQSQ_max``h]j)}(hjs:h]h tDQSQ_max}(hju:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjm:ubj)}(hhh]h)}(h-DQS-DQ skew, DQS to last DQ valid, per accessh]h-DQS-DQ skew, DQS to last DQ valid, per access}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjm:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj5ubj)}(h``tDS_min`` Data setup time h](j)}(h ``tDS_min``h]j)}(hj:h]htDS_min}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj:ubj)}(hhh]h)}(hData setup timeh]hData setup time}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj5ubj)}(h``tDSC_min`` DQS cycle time h](j)}(h ``tDSC_min``h]j)}(hj:h]htDSC_min}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj:ubj)}(hhh]h)}(hDQS cycle timeh]hDQS cycle time}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj5ubj)}(h:``tFEAT_max`` Busy time for Set Features and Get Features h](j)}(h ``tFEAT_max``h]j)}(hj;h]h tFEAT_max}(hj ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj;ubj)}(hhh]h)}(h+Busy time for Set Features and Get Featuresh]h+Busy time for Set Features and Get Features}(hj7;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3;hMhj4;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj3;hMhj5ubj)}(h3``tITC_max`` Interface and Timing Mode Change time h](j)}(h ``tITC_max``h]j)}(hjW;h]htITC_max}(hjY;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjQ;ubj)}(hhh]h)}(h%Interface and Timing Mode Change timeh]h%Interface and Timing Mode Change time}(hjp;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl;hMhjm;ubah}(h]h ]h"]h$]h&]uh1jhjQ;ubeh}(h]h ]h"]h$]h&]uh1jhjl;hMhj5ubj)}(h#``tQHS_max`` Data hold skew factor h](j)}(h ``tQHS_max``h]j)}(hj;h]htQHS_max}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj;ubj)}(hhh]h)}(hData hold skew factorh]hData hold skew factor}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj5ubj)}(hH``tRHW_min`` Data output cycle to command, address, or data input cycle h](j)}(h ``tRHW_min``h]j)}(hj;h]htRHW_min}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj;ubj)}(hhh]h)}(h:Data output cycle to command, address, or data input cycleh]h:Data output cycle to command, address, or data input cycle}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj5ubj)}(h)``tRR_min`` Ready to RE# low (data only) h](j)}(h ``tRR_min``h]j)}(hj<h]htRR_min}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj;ubj)}(hhh]h)}(hReady to RE# low (data only)h]hReady to RE# low (data only)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj5ubj)}(hc``tRST_max`` Device reset time, measured from the falling edge of R/B# to the rising edge of R/B#. h](j)}(h ``tRST_max``h]j)}(hj;<h]htRST_max}(hj=<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj5<ubj)}(hhh]h)}(hUDevice reset time, measured from the falling edge of R/B# to the rising edge of R/B#.h]hUDevice reset time, measured from the falling edge of R/B# to the rising edge of R/B#.}(hjT<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hjQ<ubah}(h]h ]h"]h$]h&]uh1jhj5<ubeh}(h]h ]h"]h$]h&]uh1jhjP<hM hj5ubj)}(h"``tWB_max`` WE# high to SR[6] low h](j)}(h ``tWB_max``h]j)}(hju<h]htWB_max}(hjw<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hjo<ubj)}(hhh]h)}(hWE# high to SR[6] lowh]hWE# high to SR[6] low}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jhjo<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hj5ubj)}(h!``tWHR_min`` WE# high to RE# low h](j)}(h ``tWHR_min``h]j)}(hj<h]htWHR_min}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj<ubj)}(hhh]h)}(hWE# high to RE# lowh]hWE# high to RE# low}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hj5ubj)}(h-``tWRCK_min`` W/R_n low to data output cycle h](j)}(h ``tWRCK_min``h]j)}(hj<h]h tWRCK_min}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj<ubj)}(hhh]h)}(hW/R_n low to data output cycleh]hW/R_n low to data output cycle}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hj5ubj)}(h%``tWW_min`` WP# transition to WE# lowh](j)}(h ``tWW_min``h]j)}(hj =h]htWW_min}(hj"=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM hj=ubj)}(hhh]h)}(hWP# transition to WE# lowh]hWP# transition to WE# low}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj6=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj5=hM hj5ubeh}(h]h ]h"]h$]h&]uh1jhj<5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjc=h]h Description}(hje=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja=ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hX'This struct defines the timing requirements of a NV-DDR NAND data interface. These information can be found in every NAND datasheets and the timings meaning are described in the ONFI specifications: https://media-www.micron.com/-/media/client/onfi/specs/onfi_4_1_gold.pdf (chapter 4.18.2 NV-DDR)h](hThis struct defines the timing requirements of a NV-DDR NAND data interface. These information can be found in every NAND datasheets and the timings meaning are described in the ONFI specifications: }(hjy=hhhNhNubj4)}(hHhttps://media-www.micron.com/-/media/client/onfi/specs/onfi_4_1_gold.pdfh]hHhttps://media-www.micron.com/-/media/client/onfi/specs/onfi_4_1_gold.pdf}(hj=hhhNhNubah}(h]h ]h"]h$]h&]refurij=uh1j4hjy=ubh (chapter 4.18.2 NV-DDR)}(hjy=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(h/All these timings are expressed in picoseconds.h]h/All these timings are expressed in picoseconds.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_interface_type (C enum)c.nand_interface_typehNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_interface_typeh]j)}(henum nand_interface_typeh](j!)}(henumh]henum}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=hhhj=hMubjD)}(hnand_interface_typeh]jJ)}(hj=h]hnand_interface_type}(hj=hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj=ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj=hhhj=hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj=hhhj=hMubah}(h]j=ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj=hMhj=hhubjv)}(hhh]h)}(hNAND interface typeh]hNAND interface type}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMRhj>hhubah}(h]h ]h"]h$]h&]uh1juhj=hhhj=hMubeh}(h]h ](jenumeh"]h$]h&]jjjj>jj>jjjuh1jhhhjhNhNubj)}(hq**Constants** ``NAND_SDR_IFACE`` Single Data Rate interface ``NAND_NVDDR_IFACE`` Double Data Rate interfaceh](h)}(h **Constants**h]j)}(hj(>h]h Constants}(hj*>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&>ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMVhj">ubj)}(hhh](j)}(h.``NAND_SDR_IFACE`` Single Data Rate interface h](j)}(h``NAND_SDR_IFACE``h]j)}(hjG>h]hNAND_SDR_IFACE}(hjI>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE>ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMYhjA>ubj)}(hhh]h)}(hSingle Data Rate interfaceh]hSingle Data Rate interface}(hj`>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\>hMYhj]>ubah}(h]h ]h"]h$]h&]uh1jhjA>ubeh}(h]h ]h"]h$]h&]uh1jhj\>hMYhj>>ubj)}(h/``NAND_NVDDR_IFACE`` Double Data Rate interfaceh](j)}(h``NAND_NVDDR_IFACE``h]j)}(hj>h]hNAND_NVDDR_IFACE}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~>ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM[hjz>ubj)}(hhh]h)}(hDouble Data Rate interfaceh]hDouble Data Rate interface}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM\hj>ubah}(h]h ]h"]h$]h&]uh1jhjz>ubeh}(h]h ]h"]h$]h&]uh1jhj>hM[hj>>ubeh}(h]h ]h"]h$]h&]uh1jhj">ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j  nand_interface_config (C struct)c.nand_interface_confighNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_interface_configh]j)}(hstruct nand_interface_configh](j!)}(hj$h]hstruct}(hj>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMbubj3)}(h h]h }(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>hhhj>hMbubjD)}(hnand_interface_configh]jJ)}(hj>h]hnand_interface_config}(hj>hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj>ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj>hhhj>hMbubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj>hhhj>hMbubah}(h]j>ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj>hMbhj>hhubjv)}(hhh]h)}(hNAND interface timingh]hNAND interface timing}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM\hj?hhubah}(h]h ]h"]h$]h&]uh1juhj>hhhj>hMbubeh}(h]h ](jstructeh"]h$]h&]jjjj4?jj4?jjjuh1jhhhjhNhNubj)}(hXT**Definition**:: struct nand_interface_config { enum nand_interface_type type; struct nand_timings { unsigned int mode; union { struct nand_sdr_timings sdr; struct nand_nvddr_timings nvddr; }; } timings; }; **Members** ``type`` type of the timing ``timings`` The timing information ``timings.mode`` Timing mode as defined in the specification ``{unnamed_union}`` anonymous ``timings.sdr`` Use it when **type** is ``NAND_SDR_IFACE``. ``timings.nvddr`` Use it when **type** is ``NAND_NVDDR_IFACE``.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj@?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj``buf.out`` buffer to read from when writing to the NAND chip h](j)}(h ``buf.out``h]j)}(hjKh]hbuf.out}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjKubj)}(hhh]h)}(h1buffer to read from when writing to the NAND chiph]h1buffer to read from when writing to the NAND chip}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjJubj)}(h!``force_8bit`` force 8-bit accessh](j)}(h``force_8bit``h]j)}(hjKh]h force_8bit}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjKubj)}(hhh]h)}(hforce 8-bit accessh]hforce 8-bit access}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hPlease note that "in" and "out" are inverted from the ONFI specification and are from the controller perspective, so a "in" is a read from the NAND chip while a "out" is a write to the NAND chip.h]hPlease note that “in” and “out” are inverted from the ONFI specification and are from the controller perspective, so a “in” is a read from the NAND chip while a “out” is a write to the NAND chip.}(hj(LhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j  nand_op_waitrdy_instr (C struct)c.nand_op_waitrdy_instrhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_op_waitrdy_instrh]j)}(hstruct nand_op_waitrdy_instrh](j!)}(hj$h]hstruct}(hjPLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLLhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj^LhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjLLhhhj]LhMubjD)}(hnand_op_waitrdy_instrh]jJ)}(hjJLh]hnand_op_waitrdy_instr}(hjpLhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjlLubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjLLhhhj]LhMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjHLhhhj]LhMubah}(h]jCLah ](jmjneh"]h$]h&]jrjs)jthuh1jhj]LhMhjELhhubjv)}(hhh]h)}(h&Definition of a wait ready instructionh]h&Definition of a wait ready instruction}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLhhubah}(h]h ]h"]h$]h&]uh1juhjELhhhj]LhMubeh}(h]h ](jstructeh"]h$]h&]jjjjLjjLjjjuh1jhhhjhNhNubj)}(h**Definition**:: struct nand_op_waitrdy_instr { unsigned int timeout_ms; }; **Members** ``timeout_ms`` maximum delay while waiting for the ready/busy pin in msh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh:}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLubj_)}(h>struct nand_op_waitrdy_instr { unsigned int timeout_ms; };h]h>struct nand_op_waitrdy_instr { unsigned int timeout_ms; };}hjLsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLubh)}(h **Members**h]j)}(hjLh]hMembers}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLubj)}(hhh]j)}(hG``timeout_ms`` maximum delay while waiting for the ready/busy pin in msh](j)}(h``timeout_ms``h]j)}(hjLh]h timeout_ms}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLubj)}(hhh]h)}(h8maximum delay while waiting for the ready/busy pin in msh]h8maximum delay while waiting for the ready/busy pin in ms}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjMubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_op_instr_type (C enum)c.nand_op_instr_typehNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_op_instr_typeh]j)}(henum nand_op_instr_typeh](j!)}(hj=h]henum}(hjYMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUMhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hjgMhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUMhhhjfMhMubjD)}(hnand_op_instr_typeh]jJ)}(hjSMh]hnand_op_instr_type}(hjyMhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjuMubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjUMhhhjfMhMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjQMhhhjfMhMubah}(h]jLMah ](jmjneh"]h$]h&]jrjs)jthuh1jhjfMhMhjNMhhubjv)}(hhh]h)}(h#Definition of all instruction typesh]h#Definition of all instruction types}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1juhjNMhhhjfMhMubeh}(h]h ](jenumeh"]h$]h&]jjjjMjjMjjjuh1jhhhjhNhNubj)}(hX**Constants** ``NAND_OP_CMD_INSTR`` command instruction ``NAND_OP_ADDR_INSTR`` address instruction ``NAND_OP_DATA_IN_INSTR`` data in instruction ``NAND_OP_DATA_OUT_INSTR`` data out instruction ``NAND_OP_WAITRDY_INSTR`` wait ready instructionh](h)}(h **Constants**h]j)}(hjMh]h Constants}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjMubj)}(hhh](j)}(h*``NAND_OP_CMD_INSTR`` command instruction h](j)}(h``NAND_OP_CMD_INSTR``h]j)}(hjMh]hNAND_OP_CMD_INSTR}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjMubj)}(hhh]h)}(hcommand instructionh]hcommand instruction}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(h+``NAND_OP_ADDR_INSTR`` address instruction h](j)}(h``NAND_OP_ADDR_INSTR``h]j)}(hjNh]hNAND_OP_ADDR_INSTR}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjNubj)}(hhh]h)}(haddress instructionh]haddress instruction}(hj.NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*NhMhj+Nubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhj*NhMhjMubj)}(h.``NAND_OP_DATA_IN_INSTR`` data in instruction h](j)}(h``NAND_OP_DATA_IN_INSTR``h]j)}(hjNNh]hNAND_OP_DATA_IN_INSTR}(hjPNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjHNubj)}(hhh]h)}(hdata in instructionh]hdata in instruction}(hjgNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcNhMhjdNubah}(h]h ]h"]h$]h&]uh1jhjHNubeh}(h]h ]h"]h$]h&]uh1jhjcNhMhjMubj)}(h0``NAND_OP_DATA_OUT_INSTR`` data out instruction h](j)}(h``NAND_OP_DATA_OUT_INSTR``h]j)}(hjNh]hNAND_OP_DATA_OUT_INSTR}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjNubj)}(hhh]h)}(hdata out instructionh]hdata out instruction}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubj)}(h0``NAND_OP_WAITRDY_INSTR`` wait ready instructionh](j)}(h``NAND_OP_WAITRDY_INSTR``h]j)}(hjNh]hNAND_OP_WAITRDY_INSTR}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjNubj)}(hhh]h)}(hwait ready instructionh]hwait ready instruction}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_op_instr (C struct)c.nand_op_instrhNtauh1jhjhhhNhNubj)}(hhh](j)}(h nand_op_instrh]j)}(hstruct nand_op_instrh](j!)}(hj$h]hstruct}(hjOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj(OhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOhhhj'OhMubjD)}(h nand_op_instrh]jJ)}(hjOh]h nand_op_instr}(hj:OhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj6Oubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjOhhhj'OhMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjOhhhj'OhMubah}(h]j Oah ](jmjneh"]h$]h&]jrjs)jthuh1jhj'OhMhjOhhubjv)}(hhh]h)}(hInstruction objecth]hInstruction object}(hj\OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjYOhhubah}(h]h ]h"]h$]h&]uh1juhjOhhhj'OhMubeh}(h]h ](jstructeh"]h$]h&]jjjjtOjjtOjjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct nand_op_instr { enum nand_op_instr_type type; union { struct nand_op_cmd_instr cmd; struct nand_op_addr_instr addr; struct nand_op_data_instr data; struct nand_op_waitrdy_instr waitrdy; } ctx; unsigned int delay_ns; }; **Members** ``type`` the instruction type ``ctx`` extra data associated to the instruction. You'll have to use the appropriate element depending on **type** ``ctx.cmd`` use it if **type** is ``NAND_OP_CMD_INSTR`` ``ctx.addr`` use it if **type** is ``NAND_OP_ADDR_INSTR`` ``ctx.data`` use it if **type** is ``NAND_OP_DATA_IN_INSTR`` or ``NAND_OP_DATA_OUT_INSTR`` ``ctx.waitrdy`` use it if **type** is ``NAND_OP_WAITRDY_INSTR`` ``delay_ns`` delay the controller should apply after the instruction has been issued on the bus. Most modern controllers have internal timings control logic, and in this case, the controller driver can ignore this field.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Oubh:}(hj|OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxOubj_)}(hXstruct nand_op_instr { enum nand_op_instr_type type; union { struct nand_op_cmd_instr cmd; struct nand_op_addr_instr addr; struct nand_op_data_instr data; struct nand_op_waitrdy_instr waitrdy; } ctx; unsigned int delay_ns; };h]hXstruct nand_op_instr { enum nand_op_instr_type type; union { struct nand_op_cmd_instr cmd; struct nand_op_addr_instr addr; struct nand_op_data_instr data; struct nand_op_waitrdy_instr waitrdy; } ctx; unsigned int delay_ns; };}hjOsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxOubh)}(h **Members**h]j)}(hjOh]hMembers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxOubj)}(hhh](j)}(h``type`` the instruction type h](j)}(h``type``h]j)}(hjOh]htype}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjOubj)}(hhh]h)}(hthe instruction typeh]hthe instruction type}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjOubj)}(hs``ctx`` extra data associated to the instruction. You'll have to use the appropriate element depending on **type** h](j)}(h``ctx``h]j)}(hjPh]hctx}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjOubj)}(hhh]h)}(hjextra data associated to the instruction. You'll have to use the appropriate element depending on **type**h](hdextra data associated to the instruction. You’ll have to use the appropriate element depending on }(hjPhhhNhNubj)}(h**type**h]htype}(hj#PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjOubj)}(h8``ctx.cmd`` use it if **type** is ``NAND_OP_CMD_INSTR`` h](j)}(h ``ctx.cmd``h]j)}(hjJPh]hctx.cmd}(hjLPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHPubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjDPubj)}(hhh]h)}(h+use it if **type** is ``NAND_OP_CMD_INSTR``h](h use it if }(hjcPhhhNhNubj)}(h**type**h]htype}(hjkPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcPubh is }(hjcPhhhNhNubj)}(h``NAND_OP_CMD_INSTR``h]hNAND_OP_CMD_INSTR}(hj}PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcPubeh}(h]h ]h"]h$]h&]uh1hhj_PhMhj`Pubah}(h]h ]h"]h$]h&]uh1jhjDPubeh}(h]h ]h"]h$]h&]uh1jhj_PhMhjOubj)}(h:``ctx.addr`` use it if **type** is ``NAND_OP_ADDR_INSTR`` h](j)}(h ``ctx.addr``h]j)}(hjPh]hctx.addr}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjPubj)}(hhh]h)}(h,use it if **type** is ``NAND_OP_ADDR_INSTR``h](h use it if }(hjPhhhNhNubj)}(h**type**h]htype}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh is }(hjPhhhNhNubj)}(h``NAND_OP_ADDR_INSTR``h]hNAND_OP_ADDR_INSTR}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjOubj)}(h[``ctx.data`` use it if **type** is ``NAND_OP_DATA_IN_INSTR`` or ``NAND_OP_DATA_OUT_INSTR`` h](j)}(h ``ctx.data``h]j)}(hjPh]hctx.data}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjPubj)}(hhh]h)}(hMuse it if **type** is ``NAND_OP_DATA_IN_INSTR`` or ``NAND_OP_DATA_OUT_INSTR``h](h use it if }(hjQhhhNhNubj)}(h**type**h]htype}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh is }(hjQhhhNhNubj)}(h``NAND_OP_DATA_IN_INSTR``h]hNAND_OP_DATA_IN_INSTR}(hj/QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh or }(hjQhhhNhNubj)}(h``NAND_OP_DATA_OUT_INSTR``h]hNAND_OP_DATA_OUT_INSTR}(hjAQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(h@``ctx.waitrdy`` use it if **type** is ``NAND_OP_WAITRDY_INSTR`` h](j)}(h``ctx.waitrdy``h]j)}(hjhQh]h ctx.waitrdy}(hjjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjbQubj)}(hhh]h)}(h/use it if **type** is ``NAND_OP_WAITRDY_INSTR``h](h use it if }(hjQhhhNhNubj)}(h**type**h]htype}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh is }(hjQhhhNhNubj)}(h``NAND_OP_WAITRDY_INSTR``h]hNAND_OP_WAITRDY_INSTR}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1hhj}QhMhj~Qubah}(h]h ]h"]h$]h&]uh1jhjbQubeh}(h]h ]h"]h$]h&]uh1jhj}QhMhjOubj)}(h``delay_ns`` delay the controller should apply after the instruction has been issued on the bus. Most modern controllers have internal timings control logic, and in this case, the controller driver can ignore this field.h](j)}(h ``delay_ns``h]j)}(hjQh]hdelay_ns}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjQubj)}(hhh]h)}(hdelay the controller should apply after the instruction has been issued on the bus. Most modern controllers have internal timings control logic, and in this case, the controller driver can ignore this field.h]hdelay the controller should apply after the instruction has been issued on the bus. Most modern controllers have internal timings control logic, and in this case, the controller driver can ignore this field.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubeh}(h]h ]h"]h$]h&]uh1jhjxOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_subop (C struct) c.nand_subophNtauh1jhjhhhNhNubj)}(hhh](j)}(h nand_suboph]j)}(hstruct nand_suboph](j!)}(hj$h]hstruct}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjRhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj)RhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRhhhj(RhMubjD)}(h nand_suboph]jJ)}(hjRh]h nand_subop}(hj;RhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj7Rubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjRhhhj(RhMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjRhhhj(RhMubah}(h]jRah ](jmjneh"]h$]h&]jrjs)jthuh1jhj(RhMhjRhhubjv)}(hhh]h)}(ha sub operationh]ha sub operation}(hj]RhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMMhjZRhhubah}(h]h ]h"]h$]h&]uh1juhjRhhhj(RhMubeh}(h]h ](jstructeh"]h$]h&]jjjjuRjjuRjjjuh1jhhhjhNhNubj)}(hX>**Definition**:: struct nand_subop { unsigned int cs; const struct nand_op_instr *instrs; unsigned int ninstrs; unsigned int first_instr_start_off; unsigned int last_instr_end_off; }; **Members** ``cs`` the CS line to select for this NAND sub-operation ``instrs`` array of instructions ``ninstrs`` length of the **instrs** array ``first_instr_start_off`` offset to start from for the first instruction of the sub-operation ``last_instr_end_off`` offset to end at (excluded) for the last instruction of the sub-operationh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Rubh:}(hj}RhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMQhjyRubj_)}(hstruct nand_subop { unsigned int cs; const struct nand_op_instr *instrs; unsigned int ninstrs; unsigned int first_instr_start_off; unsigned int last_instr_end_off; };h]hstruct nand_subop { unsigned int cs; const struct nand_op_instr *instrs; unsigned int ninstrs; unsigned int first_instr_start_off; unsigned int last_instr_end_off; };}hjRsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMShjyRubh)}(h **Members**h]j)}(hjRh]hMembers}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM[hjyRubj)}(hhh](j)}(h9``cs`` the CS line to select for this NAND sub-operation h](j)}(h``cs``h]j)}(hjRh]hcs}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMOhjRubj)}(hhh]h)}(h1the CS line to select for this NAND sub-operationh]h1the CS line to select for this NAND sub-operation}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMOhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMOhjRubj)}(h!``instrs`` array of instructions h](j)}(h ``instrs``h]j)}(hjSh]hinstrs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMPhjRubj)}(hhh]h)}(harray of instructionsh]harray of instructions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMPhjSubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjShMPhjRubj)}(h+``ninstrs`` length of the **instrs** array h](j)}(h ``ninstrs``h]j)}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Subah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMQhj6Subj)}(hhh]h)}(hlength of the **instrs** arrayh](hlength of the }(hjUShhhNhNubj)}(h **instrs**h]hinstrs}(hj]ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUSubh array}(hjUShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQShMQhjRSubah}(h]h ]h"]h$]h&]uh1jhj6Subeh}(h]h ]h"]h$]h&]uh1jhjQShMQhjRubj)}(h^``first_instr_start_off`` offset to start from for the first instruction of the sub-operation h](j)}(h``first_instr_start_off``h]j)}(hjSh]hfirst_instr_start_off}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMShjSubj)}(hhh]h)}(hCoffset to start from for the first instruction of the sub-operationh]hCoffset to start from for the first instruction of the sub-operation}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMRhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMShjRubj)}(h```last_instr_end_off`` offset to end at (excluded) for the last instruction of the sub-operationh](j)}(h``last_instr_end_off``h]j)}(hjSh]hlast_instr_end_off}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMThjSubj)}(hhh]h)}(hIoffset to end at (excluded) for the last instruction of the sub-operationh]hIoffset to end at (excluded) for the last instruction of the sub-operation}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMThjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMThjRubeh}(h]h ]h"]h$]h&]uh1jhjyRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhjhhubh)}(heBoth **first_instr_start_off** and **last_instr_end_off** only apply to data or address instructions.h](hBoth }(hjThhhNhNubj)}(h**first_instr_start_off**h]hfirst_instr_start_off}(hj!ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh and }(hjThhhNhNubj)}(h**last_instr_end_off**h]hlast_instr_end_off}(hj3ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh, only apply to data or address instructions.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMVhjhhubh)}(hWhen an operation cannot be handled as is by the NAND controller, it will be split by the parser into sub-operations which will be passed to the controller driver.h]hWhen an operation cannot be handled as is by the NAND controller, it will be split by the parser into sub-operations which will be passed to the controller driver.}(hjLThhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMYhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j *nand_op_parser_addr_constraints (C struct)!c.nand_op_parser_addr_constraintshNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_op_parser_addr_constraintsh]j)}(h&struct nand_op_parser_addr_constraintsh](j!)}(hj$h]hstruct}(hjtThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjpThhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM`ubj3)}(h h]h }(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpThhhjThM`ubjD)}(hnand_op_parser_addr_constraintsh]jJ)}(hjnTh]hnand_op_parser_addr_constraints}(hjThhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjTubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjpThhhjThM`ubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjlThhhjThM`ubah}(h]jgTah ](jmjneh"]h$]h&]jrjs)jthuh1jhjThM`hjiThhubjv)}(hhh]h)}(h$Constraints for address instructionsh]h$Constraints for address instructions}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMohjThhubah}(h]h ]h"]h$]h&]uh1juhjiThhhjThM`ubeh}(h]h ](jstructeh"]h$]h&]jjjjTjjTjjjuh1jhhhjhNhNubj)}(h**Definition**:: struct nand_op_parser_addr_constraints { unsigned int maxcycles; }; **Members** ``maxcycles`` maximum number of address cycles the controller can issue in a single steph](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh:}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMshjTubj_)}(hGstruct nand_op_parser_addr_constraints { unsigned int maxcycles; };h]hGstruct nand_op_parser_addr_constraints { unsigned int maxcycles; };}hjTsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMuhjTubh)}(h **Members**h]j)}(hjUh]hMembers}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMyhjTubj)}(hhh]j)}(hX``maxcycles`` maximum number of address cycles the controller can issue in a single steph](j)}(h ``maxcycles``h]j)}(hj#Uh]h maxcycles}(hj%UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Uubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMqhjUubj)}(hhh]h)}(hJmaximum number of address cycles the controller can issue in a single steph]hJmaximum number of address cycles the controller can issue in a single step}(hjexec() hook is called so that the controller driver can issue the operation on the bus.h]hXA pattern is a list of elements, each element reprensenting one instruction with its constraints. The pattern itself is used by the core to match NAND chip operation with NAND controller operations. Once a match between a NAND controller operation pattern and a NAND chip operation (or a sub-set of a NAND operation) is found, the pattern ->exec() hook is called so that the controller driver can issue the operation on the bus.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hController drivers should declare as many patterns as they support and pass this list of patterns (created with the help of the following macro) to the nand_op_parser_exec_op() helper.h]hController drivers should declare as many patterns as they support and pass this list of patterns (created with the help of the following macro) to the nand_op_parser_exec_op() helper.}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_op_parser (C struct)c.nand_op_parserhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_op_parserh]j)}(hstruct nand_op_parserh](j!)}(hj$h]hstruct}(hj5ZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1Zhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hjCZhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ZhhhjBZhMubjD)}(hnand_op_parserh]jJ)}(hj/Zh]hnand_op_parser}(hjUZhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjQZubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj1ZhhhjBZhMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj-ZhhhjBZhMubah}(h]j(Zah ](jmjneh"]h$]h&]jrjs)jthuh1jhjBZhMhj*Zhhubjv)}(hhh]h)}(h+NAND controller operation parser descriptorh]h+NAND controller operation parser descriptor}(hjwZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjtZhhubah}(h]h ]h"]h$]h&]uh1juhj*ZhhhjBZhMubeh}(h]h ](jstructeh"]h$]h&]jjjjZjjZjjjuh1jhhhjhNhNubj)}(h**Definition**:: struct nand_op_parser { const struct nand_op_parser_pattern *patterns; unsigned int npatterns; }; **Members** ``patterns`` array of supported patterns ``npatterns`` length of the **patterns** arrayh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh:}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjZubj_)}(histruct nand_op_parser { const struct nand_op_parser_pattern *patterns; unsigned int npatterns; };h]histruct nand_op_parser { const struct nand_op_parser_pattern *patterns; unsigned int npatterns; };}hjZsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjZubh)}(h **Members**h]j)}(hjZh]hMembers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjZubj)}(hhh](j)}(h)``patterns`` array of supported patterns h](j)}(h ``patterns``h]j)}(hjZh]hpatterns}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjZubj)}(hhh]h)}(harray of supported patternsh]harray of supported patterns}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(h.``npatterns`` length of the **patterns** arrayh](j)}(h ``npatterns``h]j)}(hj[h]h npatterns}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj[ubj)}(hhh]h)}(h length of the **patterns** arrayh](hlength of the }(hj6[hhhNhNubj)}(h **patterns**h]hpatterns}(hj>[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6[ubh array}(hj6[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj3[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj2[hMhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjr[h]h Description}(hjt[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp[ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hThe parser descriptor is just an array of supported patterns which will be iterated by nand_op_parser_exec_op() everytime it tries to execute an NAND operation (or tries to determine if a specific operation is supported).h]hThe parser descriptor is just an array of supported patterns which will be iterated by nand_op_parser_exec_op() everytime it tries to execute an NAND operation (or tries to determine if a specific operation is supported).}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hX'It is worth mentioning that patterns will be tested in their declaration order, and the first match will be taken, so it's important to order patterns appropriately so that simple/inefficient patterns are placed at the end of the list. Usually, this is where you put single instruction patterns.h]hX)It is worth mentioning that patterns will be tested in their declaration order, and the first match will be taken, so it’s important to order patterns appropriately so that simple/inefficient patterns are placed at the end of the list. Usually, this is where you put single instruction patterns.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_operation (C struct)c.nand_operationhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_operationh]j)}(hstruct nand_operationh](j!)}(hj$h]hstruct}(hj[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj[hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[hhhj[hMubjD)}(hnand_operationh]jJ)}(hj[h]hnand_operation}(hj[hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj[ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj[hhhj[hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj[hhhj[hMubah}(h]j[ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj[hMhj[hhubjv)}(hhh]h)}(hNAND operation descriptorh]hNAND operation descriptor}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj[hhubah}(h]h ]h"]h$]h&]uh1juhj[hhhj[hMubeh}(h]h ](jstructeh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct nand_operation { unsigned int cs; bool deassert_wp; const struct nand_op_instr *instrs; unsigned int ninstrs; }; **Members** ``cs`` the CS line to select for this NAND operation ``deassert_wp`` set to true when the operation requires the WP pin to be de-asserted (ERASE, PROG, ...) ``instrs`` array of instructions to execute ``ninstrs`` length of the **instrs** arrayh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj%\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!\ubh:}(hj!\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubj_)}(hstruct nand_operation { unsigned int cs; bool deassert_wp; const struct nand_op_instr *instrs; unsigned int ninstrs; };h]hstruct nand_operation { unsigned int cs; bool deassert_wp; const struct nand_op_instr *instrs; unsigned int ninstrs; };}hj>\sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubh)}(h **Members**h]j)}(hjO\h]hMembers}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM\ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubj)}(hhh](j)}(h5``cs`` the CS line to select for this NAND operation h](j)}(h``cs``h]j)}(hjn\h]hcs}(hjp\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl\ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjh\ubj)}(hhh]h)}(h-the CS line to select for this NAND operationh]h-the CS line to select for this NAND operation}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhjh\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhje\ubj)}(hh``deassert_wp`` set to true when the operation requires the WP pin to be de-asserted (ERASE, PROG, ...) h](j)}(h``deassert_wp``h]j)}(hj\h]h deassert_wp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubj)}(hhh]h)}(hWset to true when the operation requires the WP pin to be de-asserted (ERASE, PROG, ...)h]hWset to true when the operation requires the WP pin to be de-asserted (ERASE, PROG, ...)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhje\ubj)}(h,``instrs`` array of instructions to execute h](j)}(h ``instrs``h]j)}(hj\h]hinstrs}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj\ubj)}(hhh]h)}(h array of instructions to executeh]h array of instructions to execute}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhje\ubj)}(h*``ninstrs`` length of the **instrs** arrayh](j)}(h ``ninstrs``h]j)}(hj]h]hninstrs}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj]ubj)}(hhh]h)}(hlength of the **instrs** arrayh](hlength of the }(hj3]hhhNhNubj)}(h **instrs**h]hinstrs}(hj;]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3]ubh array}(hj3]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj0]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj/]hMhje\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjo]h]h Description}(hjq]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm]ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubh)}(hFThe actual operation structure that will be passed to chip->exec_op().h]hFThe actual operation structure that will be passed to chip->exec_op().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_controller_ops (C struct)c.nand_controller_opshNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_controller_opsh]j)}(hstruct nand_controller_opsh](j!)}(hj$h]hstruct}(hj]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]hhhj]hMubjD)}(hnand_controller_opsh]jJ)}(hj]h]hnand_controller_ops}(hj]hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj]ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj]hhhj]hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj]hhhj]hMubah}(h]j]ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj]hMhj]hhubjv)}(hhh]h)}(hController operationsh]hController operations}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM4hj]hhubah}(h]h ]h"]h$]h&]uh1juhj]hhhj]hMubeh}(h]h ](jstructeh"]h$]h&]jjjj^jj^jjjuh1jhhhjhNhNubj)}(hX **Definition**:: struct nand_controller_ops { int (*attach_chip)(struct nand_chip *chip); void (*detach_chip)(struct nand_chip *chip); int (*exec_op)(struct nand_chip *chip,const struct nand_operation *op, bool check_only); int (*setup_interface)(struct nand_chip *chip, int chipnr, const struct nand_interface_config *conf); }; **Members** ``attach_chip`` this method is called after the NAND detection phase after flash ID and MTD fields such as erase size, page size and OOB size have been set up. ECC requirements are available if provided by the NAND chip or device tree. Typically used to choose the appropriate ECC configuration and allocate associated resources. This hook is optional. ``detach_chip`` free all resources allocated/claimed in nand_controller_ops->attach_chip(). This hook is optional. ``exec_op`` controller specific method to execute NAND operations. This method replaces chip->legacy.cmdfunc(), chip->legacy.{read,write}_{buf,byte,word}(), chip->legacy.dev_ready() and chip->legacy.waitfunc(). ``setup_interface`` setup the data interface and timing. If chipnr is set to ``NAND_DATA_IFACE_CHECK_ONLY`` this means the configuration should not be applied but only checked. This hook is optional.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh:}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM8hj ^ubj_)}(hXGstruct nand_controller_ops { int (*attach_chip)(struct nand_chip *chip); void (*detach_chip)(struct nand_chip *chip); int (*exec_op)(struct nand_chip *chip,const struct nand_operation *op, bool check_only); int (*setup_interface)(struct nand_chip *chip, int chipnr, const struct nand_interface_config *conf); };h]hXGstruct nand_controller_ops { int (*attach_chip)(struct nand_chip *chip); void (*detach_chip)(struct nand_chip *chip); int (*exec_op)(struct nand_chip *chip,const struct nand_operation *op, bool check_only); int (*setup_interface)(struct nand_chip *chip, int chipnr, const struct nand_interface_config *conf); };}hj,^sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM:hj ^ubh)}(h **Members**h]j)}(hj=^h]hMembers}(hj?^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;^ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMAhj ^ubj)}(hhh](j)}(hXa``attach_chip`` this method is called after the NAND detection phase after flash ID and MTD fields such as erase size, page size and OOB size have been set up. ECC requirements are available if provided by the NAND chip or device tree. Typically used to choose the appropriate ECC configuration and allocate associated resources. This hook is optional. h](j)}(h``attach_chip``h]j)}(hj\^h]h attach_chip}(hj^^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ^ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM=hjV^ubj)}(hhh]h)}(hXPthis method is called after the NAND detection phase after flash ID and MTD fields such as erase size, page size and OOB size have been set up. ECC requirements are available if provided by the NAND chip or device tree. Typically used to choose the appropriate ECC configuration and allocate associated resources. This hook is optional.h]hXPthis method is called after the NAND detection phase after flash ID and MTD fields such as erase size, page size and OOB size have been set up. ECC requirements are available if provided by the NAND chip or device tree. Typically used to choose the appropriate ECC configuration and allocate associated resources. This hook is optional.}(hju^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM7hjr^ubah}(h]h ]h"]h$]h&]uh1jhjV^ubeh}(h]h ]h"]h$]h&]uh1jhjq^hM=hjS^ubj)}(hs``detach_chip`` free all resources allocated/claimed in nand_controller_ops->attach_chip(). This hook is optional. h](j)}(h``detach_chip``h]j)}(hj^h]h detach_chip}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM@hj^ubj)}(hhh]h)}(hbfree all resources allocated/claimed in nand_controller_ops->attach_chip(). This hook is optional.h]hbfree all resources allocated/claimed in nand_controller_ops->attach_chip(). This hook is optional.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM>hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM@hjS^ubj)}(h``exec_op`` controller specific method to execute NAND operations. This method replaces chip->legacy.cmdfunc(), chip->legacy.{read,write}_{buf,byte,word}(), chip->legacy.dev_ready() and chip->legacy.waitfunc(). h](j)}(h ``exec_op``h]j)}(hj^h]hexec_op}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMDhj^ubj)}(hhh]h)}(hcontroller specific method to execute NAND operations. This method replaces chip->legacy.cmdfunc(), chip->legacy.{read,write}_{buf,byte,word}(), chip->legacy.dev_ready() and chip->legacy.waitfunc().h]hcontroller specific method to execute NAND operations. This method replaces chip->legacy.cmdfunc(), chip->legacy.{read,write}_{buf,byte,word}(), chip->legacy.dev_ready() and chip->legacy.waitfunc().}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMAhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMDhjS^ubj)}(h``setup_interface`` setup the data interface and timing. If chipnr is set to ``NAND_DATA_IFACE_CHECK_ONLY`` this means the configuration should not be applied but only checked. This hook is optional.h](j)}(h``setup_interface``h]j)}(hj _h]hsetup_interface}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMGhj_ubj)}(hhh]h)}(hsetup the data interface and timing. If chipnr is set to ``NAND_DATA_IFACE_CHECK_ONLY`` this means the configuration should not be applied but only checked. This hook is optional.h](h9setup the data interface and timing. If chipnr is set to }(hj#_hhhNhNubj)}(h``NAND_DATA_IFACE_CHECK_ONLY``h]hNAND_DATA_IFACE_CHECK_ONLY}(hj+_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#_ubh\ this means the configuration should not be applied but only checked. This hook is optional.}(hj#_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMEhj _ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMGhjS^ubeh}(h]h ]h"]h$]h&]uh1jhj ^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_controller (C struct)c.nand_controllerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_controllerh]j)}(hstruct nand_controllerh](j!)}(hj$h]hstruct}(hjv_hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjr_hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMNubj3)}(h h]h }(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjr_hhhj_hMNubjD)}(hnand_controllerh]jJ)}(hjp_h]hnand_controller}(hj_hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj_ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjr_hhhj_hMNubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjn_hhhj_hMNubah}(h]ji_ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj_hMNhjk_hhubjv)}(hhh]h)}(h,Structure used to describe a NAND controllerh]h,Structure used to describe a NAND controller}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMThj_hhubah}(h]h ]h"]h$]h&]uh1juhjk_hhhj_hMNubeh}(h]h ](jstructeh"]h$]h&]jjjj_jj_jjjuh1jhhhjhNhNubj)}(hX0**Definition**:: struct nand_controller { struct mutex lock; const struct nand_controller_ops *ops; struct { unsigned int data_only_read: 1; unsigned int cont_read: 1; } supported_op; bool controller_wp; }; **Members** ``lock`` lock used to serialize accesses to the NAND controller ``ops`` NAND controller operations. ``supported_op`` NAND controller known-to-be-supported operations, only writable by the core after initial checking. ``supported_op.data_only_read`` The controller supports reading more data from the bus without restarting an entire read operation nor changing the column. ``supported_op.cont_read`` The controller supports sequential cache reads. ``controller_wp`` the controller is in charge of handling the WP pin.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh:}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhj_ubj_)}(hstruct nand_controller { struct mutex lock; const struct nand_controller_ops *ops; struct { unsigned int data_only_read: 1; unsigned int cont_read: 1; } supported_op; bool controller_wp; };h]hstruct nand_controller { struct mutex lock; const struct nand_controller_ops *ops; struct { unsigned int data_only_read: 1; unsigned int cont_read: 1; } supported_op; bool controller_wp; };}hj_sbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMZhj_ubh)}(h **Members**h]j)}(hj`h]hMembers}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMdhj_ubj)}(hhh](j)}(h@``lock`` lock used to serialize accesses to the NAND controller h](j)}(h``lock``h]j)}(hj%`h]hlock}(hj'`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#`ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMWhj`ubj)}(hhh]h)}(h6lock used to serialize accesses to the NAND controllerh]h6lock used to serialize accesses to the NAND controller}(hj>`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:`hMWhj;`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj:`hMWhj`ubj)}(h$``ops`` NAND controller operations. h](j)}(h``ops``h]j)}(hj^`h]hops}(hj``hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\`ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhjX`ubj)}(hhh]h)}(hNAND controller operations.h]hNAND controller operations.}(hjw`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs`hMXhjt`ubah}(h]h ]h"]h$]h&]uh1jhjX`ubeh}(h]h ]h"]h$]h&]uh1jhjs`hMXhj`ubj)}(hu``supported_op`` NAND controller known-to-be-supported operations, only writable by the core after initial checking. h](j)}(h``supported_op``h]j)}(hj`h]h supported_op}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMZhj`ubj)}(hhh]h)}(hcNAND controller known-to-be-supported operations, only writable by the core after initial checking.h]hcNAND controller known-to-be-supported operations, only writable by the core after initial checking.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMYhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMZhj`ubj)}(h``supported_op.data_only_read`` The controller supports reading more data from the bus without restarting an entire read operation nor changing the column. h](j)}(h``supported_op.data_only_read``h]j)}(hj`h]hsupported_op.data_only_read}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM]hj`ubj)}(hhh]h)}(h{The controller supports reading more data from the bus without restarting an entire read operation nor changing the column.h]h{The controller supports reading more data from the bus without restarting an entire read operation nor changing the column.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM[hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM]hj`ubj)}(hK``supported_op.cont_read`` The controller supports sequential cache reads. h](j)}(h``supported_op.cont_read``h]j)}(hj ah]hsupported_op.cont_read}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj aubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM^hjaubj)}(hhh]h)}(h/The controller supports sequential cache reads.h]h/The controller supports sequential cache reads.}(hj$ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahM^hj!aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj ahM^hj`ubj)}(hE``controller_wp`` the controller is in charge of handling the WP pin.h](j)}(h``controller_wp``h]j)}(hjDah]h controller_wp}(hjFahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBaubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM^hj>aubj)}(hhh]h)}(h3the controller is in charge of handling the WP pin.h]h3the controller is in charge of handling the WP pin.}(hj]ahhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM_hjZaubah}(h]h ]h"]h$]h&]uh1jhj>aubeh}(h]h ]h"]h$]h&]uh1jhjYahM^hj`ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_legacy (C struct) c.nand_legacyhNtauh1jhjhhhNhNubj)}(hhh](j)}(h nand_legacyh]j)}(hstruct nand_legacyh](j!)}(hj$h]hstruct}(hjahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjahhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMeubj3)}(h h]h }(hjahhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjahhhjahMeubjD)}(h nand_legacyh]jJ)}(hjah]h nand_legacy}(hjahhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjaubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjahhhjahMeubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjahhhjahMeubah}(h]jaah ](jmjneh"]h$]h&]jrjs)jthuh1jhjahMehjahhubjv)}(hhh]h)}(hNAND chip legacy fields/hooksh]hNAND chip legacy fields/hooks}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMphjahhubah}(h]h ]h"]h$]h&]uh1juhjahhhjahMeubeh}(h]h ](jstructeh"]h$]h&]jjjjajjajjjuh1jhhhjhNhNubj)}(hX **Definition**:: struct nand_legacy { void __iomem *IO_ADDR_R; void __iomem *IO_ADDR_W; void (*select_chip)(struct nand_chip *chip, int cs); u8 (*read_byte)(struct nand_chip *chip); void (*write_byte)(struct nand_chip *chip, u8 byte); void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len); void (*read_buf)(struct nand_chip *chip, u8 *buf, int len); void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl); void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column, int page_addr); int (*dev_ready)(struct nand_chip *chip); int (*waitfunc)(struct nand_chip *chip); int (*block_bad)(struct nand_chip *chip, loff_t ofs); int (*block_markbad)(struct nand_chip *chip, loff_t ofs); int (*set_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int (*get_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int chip_delay; struct nand_controller dummy_controller; }; **Members** ``IO_ADDR_R`` address to read the 8 I/O lines of the flash device ``IO_ADDR_W`` address to write the 8 I/O lines of the flash device ``select_chip`` select/deselect a specific target/die ``read_byte`` read one byte from the chip ``write_byte`` write a single byte to the chip on the low 8 I/O lines ``write_buf`` write data from the buffer to the chip ``read_buf`` read data from the chip into the buffer ``cmd_ctrl`` hardware specific function for controlling ALE/CLE/nCE. Also used to write command and address ``cmdfunc`` hardware specific function for writing commands to the chip. ``dev_ready`` hardware specific function for accessing device ready/busy line. If set to NULL no access to ready/busy is available and the ready/busy information is read from the chip status register. ``waitfunc`` hardware specific function for wait on ready. ``block_bad`` check if a block is bad, using OOB markers ``block_markbad`` mark a block bad ``set_features`` set the NAND chip features ``get_features`` get the NAND chip features ``chip_delay`` chip dependent delay for transferring data from array to read regs (tR). ``dummy_controller`` dummy controller implementation for drivers that can only control a single chiph](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh:}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMthjaubj_)}(hXstruct nand_legacy { void __iomem *IO_ADDR_R; void __iomem *IO_ADDR_W; void (*select_chip)(struct nand_chip *chip, int cs); u8 (*read_byte)(struct nand_chip *chip); void (*write_byte)(struct nand_chip *chip, u8 byte); void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len); void (*read_buf)(struct nand_chip *chip, u8 *buf, int len); void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl); void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column, int page_addr); int (*dev_ready)(struct nand_chip *chip); int (*waitfunc)(struct nand_chip *chip); int (*block_bad)(struct nand_chip *chip, loff_t ofs); int (*block_markbad)(struct nand_chip *chip, loff_t ofs); int (*set_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int (*get_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int chip_delay; struct nand_controller dummy_controller; };h]hXstruct nand_legacy { void __iomem *IO_ADDR_R; void __iomem *IO_ADDR_W; void (*select_chip)(struct nand_chip *chip, int cs); u8 (*read_byte)(struct nand_chip *chip); void (*write_byte)(struct nand_chip *chip, u8 byte); void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len); void (*read_buf)(struct nand_chip *chip, u8 *buf, int len); void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl); void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column, int page_addr); int (*dev_ready)(struct nand_chip *chip); int (*waitfunc)(struct nand_chip *chip); int (*block_bad)(struct nand_chip *chip, loff_t ofs); int (*block_markbad)(struct nand_chip *chip, loff_t ofs); int (*set_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int (*get_features)(struct nand_chip *chip, int feature_addr, u8 *subfeature_para); int chip_delay; struct nand_controller dummy_controller; };}hjbsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMvhjaubh)}(h **Members**h]j)}(hj.bh]hMembers}(hj0bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,bubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjaubj)}(hhh](j)}(hB``IO_ADDR_R`` address to read the 8 I/O lines of the flash device h](j)}(h ``IO_ADDR_R``h]j)}(hjMbh]h IO_ADDR_R}(hjObhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKbubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMrhjGbubj)}(hhh]h)}(h3address to read the 8 I/O lines of the flash deviceh]h3address to read the 8 I/O lines of the flash device}(hjfbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbbhMrhjcbubah}(h]h ]h"]h$]h&]uh1jhjGbubeh}(h]h ]h"]h$]h&]uh1jhjbbhMrhjDbubj)}(hC``IO_ADDR_W`` address to write the 8 I/O lines of the flash device h](j)}(h ``IO_ADDR_W``h]j)}(hjbh]h IO_ADDR_W}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMshjbubj)}(hhh]h)}(h4address to write the 8 I/O lines of the flash deviceh]h4address to write the 8 I/O lines of the flash device}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMshjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMshjDbubj)}(h6``select_chip`` select/deselect a specific target/die h](j)}(h``select_chip``h]j)}(hjbh]h select_chip}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMthjbubj)}(hhh]h)}(h%select/deselect a specific target/dieh]h%select/deselect a specific target/die}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMthjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMthjDbubj)}(h*``read_byte`` read one byte from the chip h](j)}(h ``read_byte``h]j)}(hjbh]h read_byte}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMuhjbubj)}(hhh]h)}(hread one byte from the chiph]hread one byte from the chip}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj chMuhjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj chMuhjDbubj)}(hF``write_byte`` write a single byte to the chip on the low 8 I/O lines h](j)}(h``write_byte``h]j)}(hj1ch]h write_byte}(hj3chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/cubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMvhj+cubj)}(hhh]h)}(h6write a single byte to the chip on the low 8 I/O linesh]h6write a single byte to the chip on the low 8 I/O lines}(hjJchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFchMvhjGcubah}(h]h ]h"]h$]h&]uh1jhj+cubeh}(h]h ]h"]h$]h&]uh1jhjFchMvhjDbubj)}(h5``write_buf`` write data from the buffer to the chip h](j)}(h ``write_buf``h]j)}(hjjch]h write_buf}(hjlchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhcubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMwhjdcubj)}(hhh]h)}(h&write data from the buffer to the chiph]h&write data from the buffer to the chip}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMwhjcubah}(h]h ]h"]h$]h&]uh1jhjdcubeh}(h]h ]h"]h$]h&]uh1jhjchMwhjDbubj)}(h5``read_buf`` read data from the chip into the buffer h](j)}(h ``read_buf``h]j)}(hjch]hread_buf}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMxhjcubj)}(hhh]h)}(h'read data from the chip into the bufferh]h'read data from the chip into the buffer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMxhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMxhjDbubj)}(hl``cmd_ctrl`` hardware specific function for controlling ALE/CLE/nCE. Also used to write command and address h](j)}(h ``cmd_ctrl``h]j)}(hjch]hcmd_ctrl}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMzhjcubj)}(hhh]h)}(h^hardware specific function for controlling ALE/CLE/nCE. Also used to write command and addressh]h^hardware specific function for controlling ALE/CLE/nCE. Also used to write command and address}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMyhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMzhjDbubj)}(hI``cmdfunc`` hardware specific function for writing commands to the chip. h](j)}(h ``cmdfunc``h]j)}(hjdh]hcmdfunc}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM{hjdubj)}(hhh]h)}(h= 0 && cur_cs < nanddev_ntargets(). NAND Controller drivers should not modify this value, but they're allowed to read it. ``read_retries`` The number of read retry modes supported ``secure_regions`` Structure containing the secure regions info ``nr_secure_regions`` Number of secure regions ``cont_read`` Sequential page read internals ``cont_read.ongoing`` Whether a continuous read is ongoing or not ``cont_read.first_page`` Start of the continuous read operation ``cont_read.pause_page`` End of the current sequential cache read operation ``cont_read.last_page`` End of the continuous read operation ``controller`` The hardware controller structure which is shared among multiple independent devices ``ecc`` The ECC controller structure ``priv`` Chip private datah](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjpkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlkubh:}(hjlkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhkubj_)}(hXBstruct nand_chip { struct nand_device base; struct nand_id id; struct nand_parameters parameters; struct nand_manufacturer manufacturer; struct nand_chip_ops ops; struct nand_legacy legacy; unsigned int options; const struct nand_interface_config *current_interface_config; struct nand_interface_config *best_interface_config; unsigned int bbt_erase_shift; unsigned int bbt_options; unsigned int badblockpos; unsigned int badblockbits; struct nand_bbt_descr *bbt_td; struct nand_bbt_descr *bbt_md; struct nand_bbt_descr *badblock_pattern; u8 *bbt; unsigned int page_shift; unsigned int phys_erase_shift; unsigned int chip_shift; unsigned int pagemask; unsigned int subpagesize; u8 *data_buf; u8 *oob_poi; struct { unsigned int bitflips; int page; } pagecache; unsigned long buf_align; struct mutex lock; unsigned int suspended : 1; wait_queue_head_t resume_wq; int cur_cs; int read_retries; struct nand_secure_region *secure_regions; u8 nr_secure_regions; struct { bool ongoing; unsigned int first_page; unsigned int pause_page; unsigned int last_page; } cont_read; struct nand_controller *controller; struct nand_ecc_ctrl ecc; void *priv; };h]hXBstruct nand_chip { struct nand_device base; struct nand_id id; struct nand_parameters parameters; struct nand_manufacturer manufacturer; struct nand_chip_ops ops; struct nand_legacy legacy; unsigned int options; const struct nand_interface_config *current_interface_config; struct nand_interface_config *best_interface_config; unsigned int bbt_erase_shift; unsigned int bbt_options; unsigned int badblockpos; unsigned int badblockbits; struct nand_bbt_descr *bbt_td; struct nand_bbt_descr *bbt_md; struct nand_bbt_descr *badblock_pattern; u8 *bbt; unsigned int page_shift; unsigned int phys_erase_shift; unsigned int chip_shift; unsigned int pagemask; unsigned int subpagesize; u8 *data_buf; u8 *oob_poi; struct { unsigned int bitflips; int page; } pagecache; unsigned long buf_align; struct mutex lock; unsigned int suspended : 1; wait_queue_head_t resume_wq; int cur_cs; int read_retries; struct nand_secure_region *secure_regions; u8 nr_secure_regions; struct { bool ongoing; unsigned int first_page; unsigned int pause_page; unsigned int last_page; } cont_read; struct nand_controller *controller; struct nand_ecc_ctrl ecc; void *priv; };}hjksbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhkubh)}(h **Members**h]j)}(hjkh]hMembers}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhkubj)}(hhh](j)}(h.``base`` Inherit from the generic NAND device h](j)}(h``base``h]j)}(hjkh]hbase}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjkubj)}(hhh]h)}(h$Inherit from the generic NAND deviceh]h$Inherit from the generic NAND device}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(h``id`` Holds NAND ID h](j)}(h``id``h]j)}(hjkh]hid}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjkubj)}(hhh]h)}(h Holds NAND IDh]h Holds NAND ID}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(hF``parameters`` Holds generic parameters under an easily readable form h](j)}(h``parameters``h]j)}(hj+lh]h parameters}(hj-lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)lubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj%lubj)}(hhh]h)}(h6Holds generic parameters under an easily readable formh]h6Holds generic parameters under an easily readable form}(hjDlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@lhMhjAlubah}(h]h ]h"]h$]h&]uh1jhj%lubeh}(h]h ]h"]h$]h&]uh1jhj@lhMhjkubj)}(h*``manufacturer`` Manufacturer information h](j)}(h``manufacturer``h]j)}(hjdlh]h manufacturer}(hjflhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjblubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj^lubj)}(hhh]h)}(hManufacturer informationh]hManufacturer information}(hj}lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjylhMhjzlubah}(h]h ]h"]h$]h&]uh1jhj^lubeh}(h]h ]h"]h$]h&]uh1jhjylhMhjkubj)}(h``ops`` NAND chip operations h](j)}(h``ops``h]j)}(hjlh]hops}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjlubj)}(hhh]h)}(hNAND chip operationsh]hNAND chip operations}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(h``legacy`` All legacy fields/hooks. If you develop a new driver, don't even try to use any of these fields/hooks, and if you're modifying an existing driver that is using those fields/hooks, you should consider reworking the driver and avoid using them. h](j)}(h ``legacy``h]j)}(hjlh]hlegacy}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjlubj)}(hhh]h)}(hAll legacy fields/hooks. If you develop a new driver, don't even try to use any of these fields/hooks, and if you're modifying an existing driver that is using those fields/hooks, you should consider reworking the driver and avoid using them.h]hAll legacy fields/hooks. If you develop a new driver, don’t even try to use any of these fields/hooks, and if you’re modifying an existing driver that is using those fields/hooks, you should consider reworking the driver and avoid using them.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(h``options`` Various chip options. They can partly be set to inform nand_scan about special functionality. See the defines for further explanation. h](j)}(h ``options``h]j)}(hjmh]hoptions}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj mubj)}(hhh]h)}(hVarious chip options. They can partly be set to inform nand_scan about special functionality. See the defines for further explanation.h]hVarious chip options. They can partly be set to inform nand_scan about special functionality. See the defines for further explanation.}(hj)mhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj&mubah}(h]h ]h"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]uh1jhj%mhMhjkubj)}(hM``current_interface_config`` The currently used NAND interface configuration h](j)}(h``current_interface_config``h]j)}(hjJmh]hcurrent_interface_config}(hjLmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjDmubj)}(hhh]h)}(h/The currently used NAND interface configurationh]h/The currently used NAND interface configuration}(hjcmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_mhMhj`mubah}(h]h ]h"]h$]h&]uh1jhjDmubeh}(h]h ]h"]h$]h&]uh1jhj_mhMhjkubj)}(h``best_interface_config`` The best NAND interface configuration which fits both the NAND chip and NAND controller constraints. If unset, the default reset interface configuration must be used. h](j)}(h``best_interface_config``h]j)}(hjmh]hbest_interface_config}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj}mubj)}(hhh]h)}(hThe best NAND interface configuration which fits both the NAND chip and NAND controller constraints. If unset, the default reset interface configuration must be used.h]hThe best NAND interface configuration which fits both the NAND chip and NAND controller constraints. If unset, the default reset interface configuration must be used.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjmubah}(h]h ]h"]h$]h&]uh1jhj}mubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjkubj)}(h:``bbt_erase_shift`` Number of address bits in a bbt entry h](j)}(h``bbt_erase_shift``h]j)}(hjmh]hbbt_erase_shift}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjmubj)}(hhh]h)}(h%Number of address bits in a bbt entryh]h%Number of address bits in a bbt entry}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjkubj)}(h``bbt_options`` Bad block table specific options. All options used here must come from bbm.h. By default, these options will be copied to the appropriate nand_bbt_descr's. h](j)}(h``bbt_options``h]j)}(hjmh]h bbt_options}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjmubj)}(hhh]h)}(hBad block table specific options. All options used here must come from bbm.h. By default, these options will be copied to the appropriate nand_bbt_descr's.h]hBad block table specific options. All options used here must come from bbm.h. By default, these options will be copied to the appropriate nand_bbt_descr’s.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj nubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj nhMhjkubj)}(h:``badblockpos`` Bad block marker position in the oob area h](j)}(h``badblockpos``h]j)}(hj0nh]h badblockpos}(hj2nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.nubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj*nubj)}(hhh]h)}(h)Bad block marker position in the oob areah]h)Bad block marker position in the oob area}(hjInhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEnhMhjFnubah}(h]h ]h"]h$]h&]uh1jhj*nubeh}(h]h ]h"]h$]h&]uh1jhjEnhMhjkubj)}(h``badblockbits`` Minimum number of set bits in a good block's bad block marker position; i.e., BBM = 11110111b is good when badblockbits = 7 h](j)}(h``badblockbits``h]j)}(hjinh]h badblockbits}(hjknhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgnubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjcnubj)}(hhh]h)}(h{Minimum number of set bits in a good block's bad block marker position; i.e., BBM = 11110111b is good when badblockbits = 7h]h}Minimum number of set bits in a good block’s bad block marker position; i.e., BBM = 11110111b is good when badblockbits = 7}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjnubah}(h]h ]h"]h$]h&]uh1jhjcnubeh}(h]h ]h"]h$]h&]uh1jhj~nhMhjkubj)}(h7``bbt_td`` Bad block table descriptor for flash lookup h](j)}(h ``bbt_td``h]j)}(hjnh]hbbt_td}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjnubj)}(hhh]h)}(h+Bad block table descriptor for flash lookuph]h+Bad block table descriptor for flash lookup}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjkubj)}(h-``bbt_md`` Bad block table mirror descriptor h](j)}(h ``bbt_md``h]j)}(hjnh]hbbt_md}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjnubj)}(hhh]h)}(h!Bad block table mirror descriptorh]h!Bad block table mirror descriptor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjkubj)}(hL``badblock_pattern`` Bad block scan pattern used for initial bad block scan h](j)}(h``badblock_pattern``h]j)}(hjoh]hbadblock_pattern}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjoubj)}(hhh]h)}(h6Bad block scan pattern used for initial bad block scanh]h6Bad block scan pattern used for initial bad block scan}(hj.ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ohMhj+oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj*ohMhjkubj)}(h ``bbt`` Bad block table pointer h](j)}(h``bbt``h]j)}(hjNoh]hbbt}(hjPohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjHoubj)}(hhh]h)}(hBad block table pointerh]hBad block table pointer}(hjgohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcohMhjdoubah}(h]h ]h"]h$]h&]uh1jhjHoubeh}(h]h ]h"]h$]h&]uh1jhjcohMhjkubj)}(hF``page_shift`` Number of address bits in a page (column address bits) h](j)}(h``page_shift``h]j)}(hjoh]h page_shift}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjoubj)}(hhh]h)}(h6Number of address bits in a page (column address bits)h]h6Number of address bits in a page (column address bits)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjkubj)}(hE``phys_erase_shift`` Number of address bits in a physical eraseblock h](j)}(h``phys_erase_shift``h]j)}(hjoh]hphys_erase_shift}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjoubj)}(hhh]h)}(h/Number of address bits in a physical eraseblockh]h/Number of address bits in a physical eraseblock}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjkubj)}(h2``chip_shift`` Number of address bits in one chip h](j)}(h``chip_shift``h]j)}(hjoh]h chip_shift}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjoubj)}(hhh]h)}(h"Number of address bits in one chiph]h"Number of address bits in one chip}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjphMhjkubj)}(h=``pagemask`` Page number mask = number of (pages / chip) - 1 h](j)}(h ``pagemask``h]j)}(hj2ph]hpagemask}(hj4phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0pubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj,pubj)}(hhh]h)}(h/Page number mask = number of (pages / chip) - 1h]h/Page number mask = number of (pages / chip) - 1}(hjKphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGphMhjHpubah}(h]h ]h"]h$]h&]uh1jhj,pubeh}(h]h ]h"]h$]h&]uh1jhjGphMhjkubj)}(h&``subpagesize`` Holds the subpagesize h](j)}(h``subpagesize``h]j)}(hjkph]h subpagesize}(hjmphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjipubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjepubj)}(hhh]h)}(hHolds the subpagesizeh]hHolds the subpagesize}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjepubeh}(h]h ]h"]h$]h&]uh1jhjphMhjkubj)}(h<``data_buf`` Buffer for data, size is (page size + oobsize) h](j)}(h ``data_buf``h]j)}(hjph]hdata_buf}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjpubj)}(hhh]h)}(h.Buffer for data, size is (page size + oobsize)h]h.Buffer for data, size is (page size + oobsize)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjkubj)}(h8``oob_poi`` pointer on the OOB area covered by data_buf h](j)}(h ``oob_poi``h]j)}(hjph]hoob_poi}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjpubj)}(hhh]h)}(h+pointer on the OOB area covered by data_bufh]h+pointer on the OOB area covered by data_buf}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjkubj)}(h=``pagecache`` Structure containing page cache related fields h](j)}(h ``pagecache``h]j)}(hjqh]h pagecache}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjqubj)}(hhh]h)}(h.Structure containing page cache related fieldsh]h.Structure containing page cache related fields}(hj/qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+qhMhj,qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj+qhMhjkubj)}(h=``pagecache.bitflips`` Number of bitflips of the cached page h](j)}(h``pagecache.bitflips``h]j)}(hjOqh]hpagecache.bitflips}(hjQqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjIqubj)}(hhh]h)}(h%Number of bitflips of the cached pageh]h%Number of bitflips of the cached page}(hjhqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdqhMhjequbah}(h]h ]h"]h$]h&]uh1jhjIqubeh}(h]h ]h"]h$]h&]uh1jhjdqhMhjkubj)}(h\``pagecache.page`` Page number currently in the cache. -1 means no page is currently cached h](j)}(h``pagecache.page``h]j)}(hjqh]hpagecache.page}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjqubj)}(hhh]h)}(hHPage number currently in the cache. -1 means no page is currently cachedh]hHPage number currently in the cache. -1 means no page is currently cached}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjkubj)}(h>``buf_align`` Minimum buffer alignment required by a platform h](j)}(h ``buf_align``h]j)}(hjqh]h buf_align}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjqubj)}(hhh]h)}(h/Minimum buffer alignment required by a platformh]h/Minimum buffer alignment required by a platform}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjkubj)}(ha``lock`` Lock protecting the suspended field. Also used to serialize accesses to the NAND device h](j)}(h``lock``h]j)}(hjqh]hlock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjqubj)}(hhh]h)}(hWLock protecting the suspended field. Also used to serialize accesses to the NAND deviceh]hWLock protecting the suspended field. Also used to serialize accesses to the NAND device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjrubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjkubj)}(hE``suspended`` Set to 1 when the device is suspended, 0 when it's not h](j)}(h ``suspended``h]j)}(hj5rh]h suspended}(hj7rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3rubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj/rubj)}(hhh]h)}(h6Set to 1 when the device is suspended, 0 when it's noth]h8Set to 1 when the device is suspended, 0 when it’s not}(hjNrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJrhMhjKrubah}(h]h ]h"]h$]h&]uh1jhj/rubeh}(h]h ]h"]h$]h&]uh1jhjJrhMhjkubj)}(hD``resume_wq`` wait queue to sleep if rawnand is in suspended state. h](j)}(h ``resume_wq``h]j)}(hjnrh]h resume_wq}(hjprhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhrubj)}(hhh]h)}(h5wait queue to sleep if rawnand is in suspended state.h]h5wait queue to sleep if rawnand is in suspended state.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjhrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjkubj)}(h``cur_cs`` Currently selected target. -1 means no target selected, otherwise we should always have cur_cs >= 0 && cur_cs < nanddev_ntargets(). NAND Controller drivers should not modify this value, but they're allowed to read it. h](j)}(h ``cur_cs``h]j)}(hjrh]hcur_cs}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjrubj)}(hhh]h)}(hCurrently selected target. -1 means no target selected, otherwise we should always have cur_cs >= 0 && cur_cs < nanddev_ntargets(). NAND Controller drivers should not modify this value, but they're allowed to read it.h]hCurrently selected target. -1 means no target selected, otherwise we should always have cur_cs >= 0 && cur_cs < nanddev_ntargets(). NAND Controller drivers should not modify this value, but they’re allowed to read it.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjkubj)}(h:``read_retries`` The number of read retry modes supported h](j)}(h``read_retries``h]j)}(hjrh]h read_retries}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjrubj)}(hhh]h)}(h(The number of read retry modes supportedh]h(The number of read retry modes supported}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjkubj)}(h@``secure_regions`` Structure containing the secure regions info h](j)}(h``secure_regions``h]j)}(hjsh]hsecure_regions}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjsubj)}(hhh]h)}(h,Structure containing the secure regions infoh]h,Structure containing the secure regions info}(hj3shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/shMhj0subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj/shMhjkubj)}(h/``nr_secure_regions`` Number of secure regions h](j)}(h``nr_secure_regions``h]j)}(hjSsh]hnr_secure_regions}(hjUshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjMsubj)}(hhh]h)}(hNumber of secure regionsh]hNumber of secure regions}(hjlshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhshMhjisubah}(h]h ]h"]h$]h&]uh1jhjMsubeh}(h]h ]h"]h$]h&]uh1jhjhshMhjkubj)}(h-``cont_read`` Sequential page read internals h](j)}(h ``cont_read``h]j)}(hjsh]h cont_read}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjsubj)}(hhh]h)}(hSequential page read internalsh]hSequential page read internals}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjkubj)}(hB``cont_read.ongoing`` Whether a continuous read is ongoing or not h](j)}(h``cont_read.ongoing``h]j)}(hjsh]hcont_read.ongoing}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjsubj)}(hhh]h)}(h+Whether a continuous read is ongoing or noth]h+Whether a continuous read is ongoing or not}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjkubj)}(h@``cont_read.first_page`` Start of the continuous read operation h](j)}(h``cont_read.first_page``h]j)}(hjsh]hcont_read.first_page}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjsubj)}(hhh]h)}(h&Start of the continuous read operationh]h&Start of the continuous read operation}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhjkubj)}(hL``cont_read.pause_page`` End of the current sequential cache read operation h](j)}(h``cont_read.pause_page``h]j)}(hj7th]hcont_read.pause_page}(hj9thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5tubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1tubj)}(hhh]h)}(h2End of the current sequential cache read operationh]h2End of the current sequential cache read operation}(hjPthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLthMhjMtubah}(h]h ]h"]h$]h&]uh1jhj1tubeh}(h]h ]h"]h$]h&]uh1jhjLthMhjkubj)}(h=``cont_read.last_page`` End of the continuous read operation h](j)}(h``cont_read.last_page``h]j)}(hjpth]hcont_read.last_page}(hjrthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjntubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjjtubj)}(hhh]h)}(h$End of the continuous read operationh]h$End of the continuous read operation}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjkubj)}(hd``controller`` The hardware controller structure which is shared among multiple independent devices h](j)}(h``controller``h]j)}(hjth]h controller}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjtubj)}(hhh]h)}(hTThe hardware controller structure which is shared among multiple independent devicesh]hTThe hardware controller structure which is shared among multiple independent devices}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjkubj)}(h%``ecc`` The ECC controller structure h](j)}(h``ecc``h]j)}(hjth]hecc}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjtubj)}(hhh]h)}(hThe ECC controller structureh]hThe ECC controller structure}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjkubj)}(h``priv`` Chip private datah](j)}(h``priv``h]j)}(hjuh]hpriv}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjuubj)}(hhh]h)}(hChip private datah]hChip private data}(hj5uhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj2uubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhj1uhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjhkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j &nand_get_interface_config (C function)c.nand_get_interface_confighNtauh1jhjhhhNhNubj)}(hhh](j)}(hWconst struct nand_interface_config * nand_get_interface_config (struct nand_chip *chip)h]j)}(hUconst struct nand_interface_config *nand_get_interface_config(struct nand_chip *chip)h](j!)}(hjAh]hconst}(hjvuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjruhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMsubj3)}(h h]h }(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjruhhhjuhMsubj!)}(hj$h]hstruct}(hjuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjruhhhjuhMsubj3)}(h h]h }(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjruhhhjuhMsubh)}(hhh]jJ)}(hnand_interface_configh]hnand_interface_config}(hjuhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetjumodnameN classnameNjAjA)}jA]jA)}jAnand_get_interface_configsbc.nand_get_interface_configasbuh1hhjruhhhjuhMsubj3)}(h h]h }(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjruhhhjuhMsubjA)}(hjBh]h*}(hjuhhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhjruhhhjuhMsubjD)}(hnand_get_interface_configh]jJ)}(hjuh]hnand_get_interface_config}(hjuhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjuubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjruhhhjuhMsubjA)}(h(struct nand_chip *chip)h]jA)}(hstruct nand_chip *chiph](j!)}(hj$h]hstruct}(hj vhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvubj3)}(h h]h }(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjvubh)}(hhh]jJ)}(h nand_chiph]h nand_chip}(hj)vhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj&vubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetj+vmodnameN classnameNjAjA)}jA]juc.nand_get_interface_configasbuh1hhjvubj3)}(h h]h }(hjGvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjvubjA)}(hjBh]h*}(hjUvhhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhjvubjJ)}(hchiph]hchip}(hjbvhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjvubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjvubah}(h]h ]h"]h$]h&]jnjouh1jAhjruhhhjuhMsubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjnuhhhjuhMsubah}(h]jiuah ](jmjneh"]h$]h&]jrjs)jthuh1jhjuhMshjkuhhubjv)}(hhh]h)}(h;Retrieve the current interface configuration of a NAND chiph]h;Retrieve the current interface configuration of a NAND chip}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMohjvhhubah}(h]h ]h"]h$]h&]uh1juhjkuhhhjuhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jhhhjhNhNubj)}(h:**Parameters** ``struct nand_chip *chip`` The NAND chiph](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMshjvubj)}(hhh]j)}(h(``struct nand_chip *chip`` The NAND chiph](j)}(h``struct nand_chip *chip``h]j)}(hjvh]hstruct nand_chip *chip}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMuhjvubj)}(hhh]h)}(h The NAND chiph]h The NAND chip}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMqhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMuhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_flash_dev (C struct)c.nand_flash_devhNtauh1jhjhhhNhNubj)}(hhh](j)}(hnand_flash_devh]j)}(hstruct nand_flash_devh](j!)}(hj$h]hstruct}(hj'whhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#whhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMvubj3)}(h h]h }(hj5whhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#whhhj4whMvubjD)}(hnand_flash_devh]jJ)}(hj!wh]hnand_flash_dev}(hjGwhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjCwubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj#whhhj4whMvubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjwhhhj4whMvubah}(h]jwah ](jmjneh"]h$]h&]jrjs)jthuh1jhj4whMvhjwhhubjv)}(hhh]h)}(hNAND Flash Device ID Structureh]hNAND Flash Device ID Structure}(hjiwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjfwhhubah}(h]h ]h"]h$]h&]uh1juhjwhhhj4whMvubeh}(h]h ](jstructeh"]h$]h&]jjjjwjjwjjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct nand_flash_dev { char *name; union { struct { uint8_t mfr_id; uint8_t dev_id; }; uint8_t id[NAND_MAX_ID_LEN]; }; unsigned int pagesize; unsigned int chipsize; unsigned int erasesize; unsigned int options; uint16_t id_len; uint16_t oobsize; struct { uint16_t strength_ds; uint16_t step_ds; } ecc; }; **Members** ``name`` a human-readable name of the NAND chip ``{unnamed_union}`` anonymous ``{unnamed_struct}`` anonymous ``mfr_id`` manufacturer ID part of the full chip ID array (refers the same memory address as ``id[0]``) ``dev_id`` device ID part of the full chip ID array (refers the same memory address as ``id[1]``) ``id`` full device ID array ``pagesize`` size of the NAND page in bytes; if 0, then the real page size (as well as the eraseblock size) is determined from the extended NAND chip ID array) ``chipsize`` total chip size in MiB ``erasesize`` eraseblock size in bytes (determined from the extended ID if 0) ``options`` stores various chip bit options ``id_len`` The valid length of the **id**. ``oobsize`` OOB size ``ecc`` ECC correctability and step information from the datasheet. ``ecc.strength_ds`` The ECC correctability from the datasheet, same as the **ecc_strength_ds** in nand_chip{}. ``ecc.step_ds`` The ECC step required by the **ecc.strength_ds**, same as the **ecc_step_ds** in nand_chip{}, also from the datasheet. For example, the "4bit ECC for each 512Byte" can be set with NAND_ECC_INFO(4, 512).h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh:}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjwubj_)}(hXstruct nand_flash_dev { char *name; union { struct { uint8_t mfr_id; uint8_t dev_id; }; uint8_t id[NAND_MAX_ID_LEN]; }; unsigned int pagesize; unsigned int chipsize; unsigned int erasesize; unsigned int options; uint16_t id_len; uint16_t oobsize; struct { uint16_t strength_ds; uint16_t step_ds; } ecc; };h]hXstruct nand_flash_dev { char *name; union { struct { uint8_t mfr_id; uint8_t dev_id; }; uint8_t id[NAND_MAX_ID_LEN]; }; unsigned int pagesize; unsigned int chipsize; unsigned int erasesize; unsigned int options; uint16_t id_len; uint16_t oobsize; struct { uint16_t strength_ds; uint16_t step_ds; } ecc; };}hjwsbah}(h]h ]h"]h$]h&]jnjouh1j^h_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjwubh)}(h **Members**h]j)}(hjwh]hMembers}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjwubj)}(hhh](j)}(h0``name`` a human-readable name of the NAND chip h](j)}(h``name``h]j)}(hjwh]hname}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjwubj)}(hhh]h)}(h&a human-readable name of the NAND chiph]h&a human-readable name of the NAND chip}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjxh]h{unnamed_union}}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj xubj)}(hhh]h)}(h anonymoush]h anonymous}(hj(xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$xhMhj%xubah}(h]h ]h"]h$]h&]uh1jhj xubeh}(h]h ]h"]h$]h&]uh1jhj$xhMhjwubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]j)}(hjHxh]h{unnamed_struct}}(hjJxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjBxubj)}(hhh]h)}(h anonymoush]h anonymous}(hjaxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]xhMhj^xubah}(h]h ]h"]h$]h&]uh1jhjBxubeh}(h]h ]h"]h$]h&]uh1jhj]xhMhjwubj)}(hh``mfr_id`` manufacturer ID part of the full chip ID array (refers the same memory address as ``id[0]``) h](j)}(h ``mfr_id``h]j)}(hjxh]hmfr_id}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj{xubj)}(hhh]h)}(h\manufacturer ID part of the full chip ID array (refers the same memory address as ``id[0]``)h](hRmanufacturer ID part of the full chip ID array (refers the same memory address as }(hjxhhhNhNubj)}(h ``id[0]``h]hid[0]}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxubah}(h]h ]h"]h$]h&]uh1jhj{xubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjwubj)}(hb``dev_id`` device ID part of the full chip ID array (refers the same memory address as ``id[1]``) h](j)}(h ``dev_id``h]j)}(hjxh]hdev_id}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxubj)}(hhh]h)}(hVdevice ID part of the full chip ID array (refers the same memory address as ``id[1]``)h](hLdevice ID part of the full chip ID array (refers the same memory address as }(hjxhhhNhNubj)}(h ``id[1]``h]hid[1]}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjwubj)}(h``id`` full device ID array h](j)}(h``id``h]j)}(hjyh]hid}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjyubj)}(hhh]h)}(hfull device ID arrayh]hfull device ID array}(hj2yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.yhMhj/yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj.yhMhjwubj)}(h``pagesize`` size of the NAND page in bytes; if 0, then the real page size (as well as the eraseblock size) is determined from the extended NAND chip ID array) h](j)}(h ``pagesize``h]j)}(hjRyh]hpagesize}(hjTyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjLyubj)}(hhh]h)}(hsize of the NAND page in bytes; if 0, then the real page size (as well as the eraseblock size) is determined from the extended NAND chip ID array)h]hsize of the NAND page in bytes; if 0, then the real page size (as well as the eraseblock size) is determined from the extended NAND chip ID array)}(hjkyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjhyubah}(h]h ]h"]h$]h&]uh1jhjLyubeh}(h]h ]h"]h$]h&]uh1jhjgyhMhjwubj)}(h$``chipsize`` total chip size in MiB h](j)}(h ``chipsize``h]j)}(hjyh]hchipsize}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjyubj)}(hhh]h)}(htotal chip size in MiBh]htotal chip size in MiB}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjwubj)}(hN``erasesize`` eraseblock size in bytes (determined from the extended ID if 0) h](j)}(h ``erasesize``h]j)}(hjyh]h erasesize}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjyubj)}(hhh]h)}(h?eraseblock size in bytes (determined from the extended ID if 0)h]h?eraseblock size in bytes (determined from the extended ID if 0)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjwubj)}(h,``options`` stores various chip bit options h](j)}(h ``options``h]j)}(hjyh]hoptions}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjyubj)}(hhh]h)}(hstores various chip bit optionsh]hstores various chip bit options}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjwubj)}(h+``id_len`` The valid length of the **id**. h](j)}(h ``id_len``h]j)}(hj7zh]hid_len}(hj9zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5zubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj1zubj)}(hhh]h)}(hThe valid length of the **id**.h](hThe valid length of the }(hjPzhhhNhNubj)}(h**id**h]hid}(hjXzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPzubh.}(hjPzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLzhMhjMzubah}(h]h ]h"]h$]h&]uh1jhj1zubeh}(h]h ]h"]h$]h&]uh1jhjLzhMhjwubj)}(h``oobsize`` OOB size h](j)}(h ``oobsize``h]j)}(hjzh]hoobsize}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj|zubj)}(hhh]h)}(hOOB sizeh]hOOB size}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhj|zubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjwubj)}(hD``ecc`` ECC correctability and step information from the datasheet. h](j)}(h``ecc``h]j)}(hjzh]hecc}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjzubj)}(hhh]h)}(h;ECC correctability and step information from the datasheet.h]h;ECC correctability and step information from the datasheet.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjwubj)}(ho``ecc.strength_ds`` The ECC correctability from the datasheet, same as the **ecc_strength_ds** in nand_chip{}. h](j)}(h``ecc.strength_ds``h]j)}(hjzh]hecc.strength_ds}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjzubj)}(hhh]h)}(hZThe ECC correctability from the datasheet, same as the **ecc_strength_ds** in nand_chip{}.h](h7The ECC correctability from the datasheet, same as the }(hj {hhhNhNubj)}(h**ecc_strength_ds**h]hecc_strength_ds}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {ubh in nand_chip{}.}(hj {hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj {ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj {hMhjwubj)}(h``ecc.step_ds`` The ECC step required by the **ecc.strength_ds**, same as the **ecc_step_ds** in nand_chip{}, also from the datasheet. For example, the "4bit ECC for each 512Byte" can be set with NAND_ECC_INFO(4, 512).h](j)}(h``ecc.step_ds``h]j)}(hj@{h]h ecc.step_ds}(hjB{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>{ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj:{ubj)}(hhh]h)}(hThe ECC step required by the **ecc.strength_ds**, same as the **ecc_step_ds** in nand_chip{}, also from the datasheet. For example, the "4bit ECC for each 512Byte" can be set with NAND_ECC_INFO(4, 512).h](hThe ECC step required by the }(hjY{hhhNhNubj)}(h**ecc.strength_ds**h]hecc.strength_ds}(hja{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY{ubh, same as the }(hjY{hhhNhNubj)}(h**ecc_step_ds**h]h ecc_step_ds}(hjs{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY{ubh in nand_chip{}, also from the datasheet. For example, the “4bit ECC for each 512Byte” can be set with NAND_ECC_INFO(4, 512).}(hjY{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjV{ubah}(h]h ]h"]h$]h&]uh1jhj:{ubeh}(h]h ]h"]h$]h&]uh1jhjU{hMhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_opcode_8bits (C function)c.nand_opcode_8bitshNtauh1jhjhhhNhNubj)}(hhh](j)}(h,int nand_opcode_8bits (unsigned int command)h]j)}(h+int nand_opcode_8bits(unsigned int command)h](jIA)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj{hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMubj3)}(h h]h }(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{hhhj{hMubjD)}(hnand_opcode_8bitsh]jJ)}(hnand_opcode_8bitsh]hnand_opcode_8bits}(hj{hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj{ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj{hhhj{hMubjA)}(h(unsigned int command)h]jA)}(hunsigned int commandh](jIA)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj{ubj3)}(h h]h }(hj |hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubjIA)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj{ubj3)}(h h]h }(hj%|hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubjJ)}(hcommandh]hcommand}(hj3|hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj{ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhj{ubah}(h]h ]h"]h$]h&]jnjouh1jAhj{hhhj{hMubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj{hhhj{hMubah}(h]j{ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj{hMhj{hhubjv)}(hhh]h)}(hECheck if the opcode's address should be sent only on the lower 8 bitsh]hGCheck if the opcode’s address should be sent only on the lower 8 bits}(hj]|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjZ|hhubah}(h]h ]h"]h$]h&]uh1juhj{hhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjju|jju|jjjuh1jhhhjhNhNubj)}(h:**Parameters** ``unsigned int command`` opcode to checkh](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}|ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhjy|ubj)}(hhh]j)}(h(``unsigned int command`` opcode to checkh](j)}(h``unsigned int command``h]j)}(hj|h]hunsigned int command}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj|ubj)}(hhh]h)}(hopcode to checkh]hopcode to check}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhjy|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_get_data_buf (C function)c.nand_get_data_bufhNtauh1jhjhhhNhNubj)}(hhh](j)}(h1void * nand_get_data_buf (struct nand_chip *chip)h]j)}(h/void *nand_get_data_buf(struct nand_chip *chip)h](jIA)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj|hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMbubj3)}(h h]h }(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj|hhhj}hMbubjA)}(hjBh]h*}(hj}hhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhj|hhhj}hMbubjD)}(hnand_get_data_bufh]jJ)}(hnand_get_data_bufh]hnand_get_data_buf}(hj&}hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj"}ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj|hhhj}hMbubjA)}(h(struct nand_chip *chip)h]jA)}(hstruct nand_chip *chiph](j!)}(hj$h]hstruct}(hjB}hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>}ubj3)}(h h]h }(hjO}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>}ubh)}(hhh]jJ)}(h nand_chiph]h nand_chip}(hj`}hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj]}ubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetjb}modnameN classnameNjAjA)}jA]jA)}jAj(}sbc.nand_get_data_bufasbuh1hhj>}ubj3)}(h h]h }(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>}ubjA)}(hjBh]h*}(hj}hhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhj>}ubjJ)}(hchiph]hchip}(hj}hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj>}ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhj:}ubah}(h]h ]h"]h$]h&]jnjouh1jAhj|hhhj}hMbubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj|hhhj}hMbubah}(h]j|ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj}hMbhj|hhubjv)}(hhh]h)}(hGet the internal page bufferh]hGet the internal page buffer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMUhj}hhubah}(h]h ]h"]h$]h&]uh1juhj|hhhj}hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct nand_chip *chip`` NAND chip object **Description** Returns the pre-allocated page buffer after invalidating the cache. This function should be used by drivers that do not want to allocate their own bounce buffer and still need such a buffer for specific operations (most commonly when reading OOB data only). Be careful to never call this function in the write/write_oob path, because the core may have placed the data to be written out in this buffer. **Return** pointer to the page cache bufferh](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMYhj}ubj)}(hhh]j)}(h,``struct nand_chip *chip`` NAND chip object h](j)}(h``struct nand_chip *chip``h]j)}(hj~h]hstruct nand_chip *chip}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMVhj~ubj)}(hhh]h)}(hNAND chip objecth]hNAND chip object}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMVhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMVhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j)}(hjA~h]h Description}(hjC~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?~ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhj}ubh)}(hXReturns the pre-allocated page buffer after invalidating the cache. This function should be used by drivers that do not want to allocate their own bounce buffer and still need such a buffer for specific operations (most commonly when reading OOB data only).h]hXReturns the pre-allocated page buffer after invalidating the cache. This function should be used by drivers that do not want to allocate their own bounce buffer and still need such a buffer for specific operations (most commonly when reading OOB data only).}(hjW~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhMXhj}ubh)}(hBe careful to never call this function in the write/write_oob path, because the core may have placed the data to be written out in this buffer.h]hBe careful to never call this function in the write/write_oob path, because the core may have placed the data to be written out in this buffer.}(hjf~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM]hj}ubh)}(h **Return**h]j)}(hjw~h]hReturn}(hjy~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju~ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM`hj}ubh)}(h pointer to the page cache bufferh]h pointer to the page cache buffer}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:961: ./include/linux/mtd/rawnand.hhM`hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] structuresah ]h"] structuresah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hPublic Functions Providedh]hPublic Functions Provided}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hhhhhMubh)}(hThis chapter contains the autogenerated documentation of the NAND kernel API functions which are exported. Each function has a short description which is marked with an [XXX] identifier. See the chapter "Documentation hints" for an explanation.h]hThis chapter contains the autogenerated documentation of the NAND kernel API functions which are exported. Each function has a short description which is marked with an [XXX] identifier. See the chapter “Documentation hints” for an explanation.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_extract_bits (C function)c.nand_extract_bitshNtauh1jhj~hhhNhNubj)}(hhh](j)}(hovoid nand_extract_bits (u8 *dst, unsigned int dst_off, const u8 *src, unsigned int src_off, unsigned int nbits)h]j)}(hnvoid nand_extract_bits(u8 *dst, unsigned int dst_off, const u8 *src, unsigned int src_off, unsigned int nbits)h](jIA)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj~hhhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKubj3)}(h h]h }(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~hhhj~hKubjD)}(hnand_extract_bitsh]jJ)}(hnand_extract_bitsh]hnand_extract_bits}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChj~hhhj~hKubjA)}(hX(u8 *dst, unsigned int dst_off, const u8 *src, unsigned int src_off, unsigned int nbits)h](jA)}(hu8 *dsth](h)}(hhh]jJ)}(hu8h]hu8}(hj#hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetj%modnameN classnameNjAjA)}jA]jA)}jAjsbc.nand_extract_bitsasbuh1hhjubj3)}(h h]h }(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjA)}(hjBh]h*}(hjQhhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhjubjJ)}(hdsth]hdst}(hj^hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubjA)}(hunsigned int dst_offh](jIA)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhjsubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubjIA)}(hinth]hint}(hjhhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhjsubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubjJ)}(hdst_offh]hdst_off}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjsubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubjA)}(h const u8 *srch](j!)}(hjAh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubh)}(hhh]jJ)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetjmodnameN classnameNjAjA)}jA]j?c.nand_extract_bitsasbuh1hhjubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjA)}(hjBh]h*}(hjhhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhjubjJ)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubjA)}(hunsigned int src_offh](jIA)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj4ubj3)}(h h]h }(hjFhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4ubjIA)}(hinth]hint}(hjThhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj4ubj3)}(h h]h }(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4ubjJ)}(hsrc_offh]hsrc_off}(hjphhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj4ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubjA)}(hunsigned int nbitsh](jIA)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhjubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjIA)}(hinth]hint}(hjhhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhjubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjJ)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubeh}(h]h ]h"]h$]h&]jnjouh1jAhj~hhhj~hKubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihj~hhhj~hKubah}(h]j~ah ](jmjneh"]h$]h&]jrjs)jthuh1jhj~hKhj~hhubjv)}(hhh]h)}(h2Copy unaligned bits from one buffer to another oneh]h2Copy unaligned bits from one buffer to another one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKwhjhhubah}(h]h ]h"]h$]h&]uh1juhj~hhhj~hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj~hNhNubj)}(hXv**Parameters** ``u8 *dst`` destination buffer ``unsigned int dst_off`` bit offset at which the writing starts ``const u8 *src`` source buffer ``unsigned int src_off`` bit offset at which the reading starts ``unsigned int nbits`` number of bits to copy from **src** to **dst** **Description** Copy bits from one memory region to another (overlap authorized).h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chK{hjubj)}(hhh](j)}(h``u8 *dst`` destination buffer h](j)}(h ``u8 *dst``h]j)}(hj,h]hu8 *dst}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKxhj&ubj)}(hhh]h)}(hdestination bufferh]hdestination buffer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKxhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKxhj#ubj)}(h@``unsigned int dst_off`` bit offset at which the writing starts h](j)}(h``unsigned int dst_off``h]j)}(hjeh]hunsigned int dst_off}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKyhj_ubj)}(hhh]h)}(h&bit offset at which the writing startsh]h&bit offset at which the writing starts}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKyhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKyhj#ubj)}(h ``const u8 *src`` source buffer h](j)}(h``const u8 *src``h]j)}(hjh]h const u8 *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKzhjubj)}(hhh]h)}(h source bufferh]h source buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKzhj#ubj)}(h@``unsigned int src_off`` bit offset at which the reading starts h](j)}(h``unsigned int src_off``h]j)}(hjׁh]hunsigned int src_off}(hjفhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՁubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chK{hjсubj)}(hhh]h)}(h&bit offset at which the reading startsh]h&bit offset at which the reading starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK{hjubah}(h]h ]h"]h$]h&]uh1jhjсubeh}(h]h ]h"]h$]h&]uh1jhjhK{hj#ubj)}(hF``unsigned int nbits`` number of bits to copy from **src** to **dst** h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chK|hj ubj)}(hhh]h)}(h.number of bits to copy from **src** to **dst**h](hnumber of bits to copy from }(hj)hhhNhNubj)}(h**src**h]hsrc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh to }(hj)hhhNhNubj)}(h**dst**h]hdst}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1hhj%hK|hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hK|hj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chK~hjubh)}(hACopy bits from one memory region to another (overlap authorized).h]hACopy bits from one memory region to another (overlap authorized).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj~hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j nand_select_target (C function)c.nand_select_targethNtauh1jhj~hhhNhNubj)}(hhh](j)}(hAvoid nand_select_target (struct nand_chip *chip, unsigned int cs)h]j)}(h@void nand_select_target(struct nand_chip *chip, unsigned int cs)h](jIA)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhhjhKubjD)}(hnand_select_targeth]jJ)}(hnand_select_targeth]hnand_select_target}(hjтhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj͂ubah}(h]h ](j\j]eh"]h$]h&]jnjouh1jChjhhhjhKubjA)}(h)(struct nand_chip *chip, unsigned int cs)h](jA)}(hstruct nand_chip *chiph](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubh)}(hhh]jJ)}(h nand_chiph]h nand_chip}(hj hhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubah}(h]h ]h"]h$]h&] refdomainjreftypejA reftargetj modnameN classnameNjAjA)}jA]jA)}jAjӂsbc.nand_select_targetasbuh1hhjubj3)}(h h]h }(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjA)}(hjBh]h*}(hj9hhhNhNubah}(h]h ]j Bah"]h$]h&]uh1jAhjubjJ)}(hchiph]hchip}(hjFhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhjubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubjA)}(hunsigned int csh](jIA)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj[ubj3)}(h h]h }(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubjIA)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jUAah"]h$]h&]uh1jHAhj[ubj3)}(h h]h }(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubjJ)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jUah"]h$]h&]uh1jIhj[ubeh}(h]h ]h"]h$]h&]noemphjnjouh1jAhjubeh}(h]h ]h"]h$]h&]jnjouh1jAhjhhhjhKubeh}(h]h ]h"]h$]h&]jnjojguh1jjhjihjhhhjhKubah}(h]jah ](jmjneh"]h$]h&]jrjs)jthuh1jhjhKhjhhubjv)}(hhh]h)}(h!Select a NAND target (A.K.A. die)h]h!Select a NAND target (A.K.A. die)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhjhhubah}(h]h ]h"]h$]h&]uh1juhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjكjjكjjjuh1jhhhj~hNhNubj)}(hX-**Parameters** ``struct nand_chip *chip`` NAND chip object ``unsigned int cs`` the CS line to select. Note that this CS id is always from the chip PoV, not the controller one **Description** Select a NAND target so that further operations executed on **chip** go to the selected NAND target.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhj݃ubj)}(hhh](j)}(h,``struct nand_chip *chip`` NAND chip object h](j)}(h``struct nand_chip *chip``h]j)}(hjh]hstruct nand_chip *chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhjubj)}(hhh]h)}(hNAND chip objecth]hNAND chip object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(ht``unsigned int cs`` the CS line to select. Note that this CS id is always from the chip PoV, not the controller one h](j)}(h``unsigned int cs``h]j)}(hj;h]hunsigned int cs}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhj5ubj)}(hhh]h)}(h_the CS line to select. Note that this CS id is always from the chip PoV, not the controller oneh]h_the CS line to select. Note that this CS id is always from the chip PoV, not the controller one}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjubeh}(h]h ]h"]h$]h&]uh1jhj݃ubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/driver-api/mtdnand:972: ./drivers/mtd/nand/raw/nand_base.chKhj݃ubh)}(hdSelect a NAND target so that further operations executed on **chip** go to the selected NAND target.h](h