<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><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><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 id="API-struct-nand-flash-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct nand_flash_dev — NAND Flash Device ID Structure </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> struct nand_flash_dev { char * name; union {unnamed_union}; unsigned int pagesize; unsigned int chipsize; unsigned int erasesize; unsigned int options; uint16_t id_len; uint16_t oobsize; }; </pre></div><div class="refsect1"><a id="idm140070151505552"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p> a human-readable name of the NAND chip </p></dd><dt><span class="term">{unnamed_union}</span></dt><dd><p> anonymous </p></dd><dt><span class="term">pagesize</span></dt><dd><p> 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) </p></dd><dt><span class="term">chipsize</span></dt><dd><p> total chip size in MiB </p></dd><dt><span class="term">erasesize</span></dt><dd><p> eraseblock size in bytes (determined from the extended ID if 0) </p></dd><dt><span class="term">options</span></dt><dd><p> stores various chip bit options </p></dd><dt><span class="term">id_len</span></dt><dd><p> The valid length of the <em class="parameter"><code>id</code></em>. </p></dd><dt><span class="term">oobsize</span></dt><dd><p> OOB size </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>