2009-01-17 15:05:13 +01:00
|
|
|
#ifndef __NAND_H__
|
|
|
|
#define __NAND_H__
|
|
|
|
|
|
|
|
#include "types.h"
|
2009-01-27 18:12:41 +01:00
|
|
|
#include "ipc.h"
|
2009-01-17 15:05:13 +01:00
|
|
|
|
|
|
|
void nand_irq(void);
|
|
|
|
|
|
|
|
void nand_send_command(u32 command, u32 bitmask, u32 flags, u32 num_bytes);
|
|
|
|
int nand_reset(void);
|
2009-02-01 10:34:11 +01:00
|
|
|
void nand_get_id(u8 *);
|
|
|
|
void nand_get_status(u8 *);
|
2009-01-17 15:05:13 +01:00
|
|
|
void nand_read_page(u32 pageno, void *data, void *ecc);
|
|
|
|
void nand_write_page(u32 pageno, void *data, void *ecc);
|
|
|
|
void nand_erase_block(u32 pageno);
|
2009-02-24 16:20:28 +01:00
|
|
|
void nand_wait(void);
|
2009-01-17 15:05:13 +01:00
|
|
|
|
|
|
|
void nand_read_cluster(u32 clusterno, void *data);
|
|
|
|
|
|
|
|
void nand_initialize();
|
|
|
|
|
2009-01-27 18:12:41 +01:00
|
|
|
void nand_ipc(volatile ipc_request *req);
|
|
|
|
|
2009-01-17 15:05:13 +01:00
|
|
|
#endif
|