Defines | Functions | Variables

lib/nand.c File Reference

#include "debug.h"
#include "nand.h"
#include "in_nand.h"
#include "stat.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
Include dependency graph for nand.c:

Go to the source code of this file.

Defines

#define NAND_FREE_PAGE   -1

Functions

_u8 bit_find (_u32 number)
int nand_open (void)
void nand_close ()
_t_sect nand_page_read (unsigned int blk_no, unsigned int page_no, unsigned int lsn, int optStat)
void nand_page_write (unsigned int blk_no, unsigned int page_no, unsigned int lsn, int optStat)
void nand_block_erase (unsigned int blk_no, int optStat)

Variables

struct config_nand config_nand
static struct blk_infonandblk = NULL
FILE * fp

Define Documentation

#define NAND_FREE_PAGE   -1

Definition at line 12 of file nand.c.


Function Documentation

_u8 bit_find ( _u32  number  ) 

Definition at line 22 of file nand.c.

Here is the caller graph for this function:

void nand_block_erase ( unsigned int  blk_no,
int  optStat 
)

Definition at line 170 of file nand.c.

Here is the caller graph for this function:

void nand_close (  ) 

Definition at line 82 of file nand.c.

Here is the caller graph for this function:

int nand_open ( void   ) 

Definition at line 37 of file nand.c.

Here is the call graph for this function:

Here is the caller graph for this function:

_t_sect nand_page_read ( unsigned int  blk_no,
unsigned int  page_no,
unsigned int  lsn,
int  optStat 
)

Definition at line 102 of file nand.c.

Here is the caller graph for this function:

void nand_page_write ( unsigned int  blk_no,
unsigned int  page_no,
unsigned int  lsn,
int  optStat 
)

Definition at line 135 of file nand.c.

Here is the caller graph for this function:


Variable Documentation

Definition at line 14 of file nand.c.

FILE* fp

Definition at line 17 of file nand.c.

struct blk_info* nandblk = NULL [static]

Definition at line 15 of file nand.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines