OpenCores
URL https://opencores.org/ocsvn/usb_nand_reader/usb_nand_reader/trunk

Subversion Repositories usb_nand_reader

[/] [usb_nand_reader/] [trunk/] [pc/] [include/] [nand_vendors.h] - Rev 2

Compare with Previous | Blame | View Log

#ifndef NAND_VENDORS_H
#define NAND_VENDORS_H
 
 
 
 
 
typedef struct
{
	int				bytesPerPage;
	int				oobPerPage;
	int 			pagesPerBlock;
	int 			blocksPerPlane;
	int				planesPerLun;
	int 			numLuns;
	int				addressCycles;
	int				busWidth;			// x8 or x16
	unsigned char	id[5];
	unsigned char	onfiSignature[4];
	unsigned char*	onfiParameterPage;
	unsigned char*	pageBuffer;
	char*			manufacturer;
	char*			device;
}nand_t, *pnand_t;
 
 
int 	get_nand_configuration(pnand_t nand);
void 	free_nand_info(pnand_t* nand);
void 	print_nand_configuration(pnand_t nand);
void 	dump_page(pnand_t nand);
void 	store_page(FILE* f, pnand_t nand);
 
#endif	/*	NAND_VENDORS_H	*/

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.