#ifndef _NAND_H
#define _NAND_H
#include <stdint.h>
#include "diskimage.h" 
#include "signode.h"
	
typedef struct NFPlane {
	uint8_t page_reg[528];
} NFPlane;

typedef struct NandFlash NandFlash;


#define NFCTRL_CLE	(1)
#define NFCTRL_nCE	(2)
#define NFCTRL_nWE	(4)
#define NFCTRL_ALE	(8)
NandFlash * NandFlash_New(const char *name);

#endif
