Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > cf93d8a8acdcc6fe2225039da0502495 > files > 2817

kernel-doc-2.6.32-131.17.1.el6.centos.plus.noarch.rpm

<?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_bbt_descr</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&#160;9.&#160;Structures" /><link rel="prev" href="re06.html" title="struct nand_manufacturers" /><link rel="next" href="re08.html" title="struct platform_nand_chip" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct nand_bbt_descr</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re06.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;9.&#160;Structures</th><td width="20%" align="right">&#160;<a accesskey="n" href="re08.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct nand_bbt_descr"><a id="API-struct-nand-bbt-descr"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct nand_bbt_descr &#8212; 
     bad block table descriptor
 </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting">
struct nand_bbt_descr {
  int options;
  int pages[NAND_MAX_CHIPS];
  int offs;
  int veroffs;
  uint8_t version[NAND_MAX_CHIPS];
  int len;
  int maxblocks;
  int reserved_block_code;
  uint8_t * pattern;
};  </pre></div><div class="refsect1" title="Members"><a id="id2714790"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">options</span></dt><dd><p>
   options for this descriptor
      </p></dd><dt><span class="term">pages[NAND_MAX_CHIPS]</span></dt><dd><p>
   the page(s) where we find the bbt, used with option BBT_ABSPAGE
   when bbt is searched, then we store the found bbts pages here.
   Its an array and supports up to 8 chips now
      </p></dd><dt><span class="term">offs</span></dt><dd><p>
   offset of the pattern in the oob area of the page
      </p></dd><dt><span class="term">veroffs</span></dt><dd><p>
   offset of the bbt version counter in the oob are of the page
      </p></dd><dt><span class="term">version[NAND_MAX_CHIPS]</span></dt><dd><p>
   version read from the bbt page during scan
      </p></dd><dt><span class="term">len</span></dt><dd><p>
   length of the pattern, if 0 no pattern check is performed
      </p></dd><dt><span class="term">maxblocks</span></dt><dd><p>
   maximum number of blocks to search for a bbt. This number of
   blocks is reserved at the end of the device where the tables are
   written.
      </p></dd><dt><span class="term">reserved_block_code</span></dt><dd><p>
   if non-0, this pattern denotes a reserved (rather than
   bad) block in the stored bbt
      </p></dd><dt><span class="term">pattern</span></dt><dd><p>
   pattern to identify bad block table or factory marked good /
   bad blocks, can be NULL, if len = 0
      </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id2714911"></a><h2>Description</h2><p>
   Descriptor for the bad block table marker and the descriptor for the
   pattern which identifies good and bad blocks. The assumption is made
   that the pattern and the version count are always located in the oob area
   of the first block.
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re06.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch09.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="re08.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>struct nand_manufacturers</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span>struct platform_nand_chip</span></td></tr></table></div></body></html>