MTD NAND Driver Programming Interface

Thomas Gleixner

This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

For more details see the file COPYING in the source distribution of Linux.


Table of Contents

1. Introduction
2. Known Bugs And Assumptions
3. Documentation hints
Function identifiers [XXX]
Struct member identifiers [XXX]
4. Basic board driver
Basic defines
Partition defines
Hardware control function
Device ready function
Init function
Exit function
5. Advanced board driver functions
Multiple chip control
Hardware ECC support
Functions and constants
Hardware ECC with syndrome calculation
Bad block table support
Flash based tables
User defined tables
Spare area (auto)placement
Placement defined by fs driver
Automatic placement
User space placement selection
Spare area autoplacement default schemes
256 byte pagesize
512 byte pagesize
2048 byte pagesize
6. Filesystem support
7. Tools
8. Constants
Chip option constants
Constants for chip id table
Constants for runtime options
ECC selection constants
Hardware control related constants
Bad block table related constants
9. Structures
10. Public Functions Provided
11. Internal Functions Provided
12. Credits