<?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.75.2" /><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface" /><link rel="up" href="ch09.html" title="Chapter 9. Structures" /><link rel="prev" href="re04.html" title="struct nand_chip" /><link rel="next" href="re06.html" title="struct nand_manufacturers" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct nand_flash_dev</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re04.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Structures</th><td width="20%" align="right"> <a accesskey="n" href="re06.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct nand_flash_dev"><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" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct nand_flash_dev { char * name; int id; unsigned long pagesize; unsigned long chipsize; unsigned long erasesize; unsigned long options; }; </pre></div><div class="refsect1" title="Members"><a id="id3006942"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">name</span></dt><dd><p> Identify the device type </p></dd><dt><span class="term">id</span></dt><dd><p> device ID code </p></dd><dt><span class="term">pagesize</span></dt><dd><p> Pagesize in bytes. Either 256 or 512 or 0 If the pagesize is 0, then the real pagesize and the eraseize are determined from the extended id bytes in the chip </p></dd><dt><span class="term">chipsize</span></dt><dd><p> Total chipsize in Mega Bytes </p></dd><dt><span class="term">erasesize</span></dt><dd><p> Size of an erase block in the flash device. </p></dd><dt><span class="term">options</span></dt><dd><p> Bitfield to store chip relevant options </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="re04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch09.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>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>struct nand_manufacturers</span></td></tr></table></div></body></html>