#include <vstypes.h>
#include <stdlib.h>
#include <physical.h>
Include dependency graph for vsNand.h:
Go to the source code of this file.
Data Structures | |
struct | FsNandPhys |
Defines | |
#define | NAND_OP_READ_SIGNATURE 0x90 |
#define | NAND_OP_READ_STATUS 0x70 |
#define | NAND_OP_READ_A 0x00 |
#define | NAND_OP_READ_C 0x50 |
#define | NAND_OP_COMMIT_DATA_ADDRESS 0x30 |
#define | NAND_OP_PREPARE_TO_PROGRAM 0x80 |
#define | NAND_OP_PERFORM_PROGRAM 0x10 |
Functions | |
s_int16 | FsPhNandErase (struct FsPhysical *p, s_int32 block) |
FsPhysical * | FsPhNandCreate (u_int16 param) |
s_int16 | FsPhNandDelete (struct FsPhysical *p) |
s_int16 | FsPhNandFreeBus (struct FsPhysical *p) |
s_int16 | FsPhNandReinitialize (struct FsPhysical *p) |
s_int16 | FsPhNandRead (struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta) |
s_int16 | FsPhNandWrite (struct FsPhysical *p, s_int32 firstPage, u_int16 pages, u_int16 *data, u_int16 *meta) |
s_int16 | NandCountBits (register __a u_int32 val) |
s_int16 | NandMingle (register __a u_int32 val) |
void | NandSwapBad (register __i0 u_int16 *spare) |
void | NandWaitIdle (void) |
Definition in file vsNand.h.
|
Nand Flash Opcode: Commit read address |
|
Nand Flash Opcode: Execute Programming |
|
Nand Flash Opcode: Prepare to Program |
|
Nand Flash Opcode: Read A - data area |
|
Nand Flash Opcode: Read C - spare area |
|
Nand Flash Opcode: Read Signature |
|
Nand Flash Opcode: Read Signature |
|
Creates a physical layer. |
|
Free resources allocated by FsPhNandCreate and release HW |
|
Erase the block that starts from page "block". |
|
Free hardware bus for possible other devices |
|
Read pages. If meta is non-NULL, will use error correction. To read both sector and spare areas without error correction, you need two reads: first read only sector datas (meta = NULL), then read only spares (data = NULL). |
|
Reinitialize bus |
|
Write pages. If meta is non-NULL, will generate error correction. |
|
Support: Count the number of 1-bits |
|
Support: takes every other bit from the value. |
|
Support: reorder large-page bad block indicators to be compatible with small-page bad block indicators. |
|
Support: Waits until the NAND FLASH interface is idle. |