<?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>Chapter 8. Constants</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="index.html" title="MTD NAND Driver Programming Interface" /><link rel="prev" href="tools.html" title="Chapter 7. Tools" /><link rel="next" href="EEC_selection_constants.html" title="ECC selection constants" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 8. Constants</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="tools.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="EEC_selection_constants.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="defines"></a>Chapter 8. Constants</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="defines.html#Chip_option_constants">Chip option constants</a></span></dt><dd><dl><dt><span class="sect2"><a href="defines.html#Constants_for_chip_id_table">Constants for chip id table</a></span></dt><dt><span class="sect2"><a href="defines.html#Constants_for_runtime_options">Constants for runtime options</a></span></dt></dl></dd><dt><span class="sect1"><a href="EEC_selection_constants.html">ECC selection constants</a></span></dt><dt><span class="sect1"><a href="Hardware_control_related_constants.html">Hardware control related constants</a></span></dt><dt><span class="sect1"><a href="Bad_block_table_constants.html">Bad block table related constants</a></span></dt></dl></div><p> This chapter describes the constants which might be relevant for a driver developer. </p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="Chip_option_constants"></a>Chip option constants</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="defines.html#Constants_for_chip_id_table">Constants for chip id table</a></span></dt><dt><span class="sect2"><a href="defines.html#Constants_for_runtime_options">Constants for runtime options</a></span></dt></dl></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="Constants_for_chip_id_table"></a>Constants for chip id table</h3></div></div></div><p> These constants are defined in nand.h. They are ored together to describe the chip functionality. </p><pre class="programlisting"> /* 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 </pre><p> </p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="Constants_for_runtime_options"></a>Constants for runtime options</h3></div></div></div><p> These constants are defined in nand.h. They are ored together to describe the functionality. </p><pre class="programlisting"> /* 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 </pre><p> </p></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tools.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="EEC_selection_constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 7. Tools </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ECC selection constants</td></tr></table></div></body></html>