1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct nand_flash_dev</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="structs.html" title="Chapter 9. Structures"><link rel="prev" href="API-struct-nand-chip.html" title="struct nand_chip"><link rel="next" href="API-struct-nand-manufacturers.html" title="struct nand_manufacturers"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct nand_flash_dev</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-nand-chip.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-nand-manufacturers.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-nand-flash-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct nand_flash_dev — 2 NAND Flash Device ID Structure 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct nand_flash_dev { 5 char * name; 6 union ecc; 7 int onfi_timing_mode_default; 8}; </pre></div><div class="refsect1"><a name="idp1102689692"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p> 9 a human-readable name of the NAND chip 10 </p></dd><dt><span class="term">ecc</span></dt><dd><p> 11 ECC correctability and step information from the datasheet. 12 <em class="parameter"><code>ecc</code></em>.strength_ds: The ECC correctability from the datasheet, same as the 13 <em class="parameter"><code>ecc_strength_ds</code></em> in nand_chip{}. 14 <em class="parameter"><code>ecc</code></em>.step_ds: The ECC step required by the <em class="parameter"><code>ecc</code></em>.strength_ds, same as the 15 <em class="parameter"><code>ecc_step_ds</code></em> in nand_chip{}, also from the datasheet. 16 For example, the <span class="quote">“<span class="quote">4bit ECC for each 512Byte</span>”</span> can be set with 17 NAND_ECC_INFO(4, 512). 18 </p></dd><dt><span class="term">onfi_timing_mode_default</span></dt><dd><p> 19 the default ONFI timing mode entered after a NAND 20 reset. Should be deduced from timings described 21 in the datasheet. 22 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-nand-chip.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="structs.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-nand-manufacturers.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct nand_chip</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct nand_manufacturers</span></td></tr></table></div></body></html> 23