 /* Set Sync. Burst Read after probing */ if (this->mmcontrol) { printk(KERN_INFO "OneNAND Sync. Burst Read support\n"); this->read_bufferram = onenand_sync_read_bufferram; } 
int onenand_scan(struct mtd_info *mtd, int maxchips){	struct onenand_chip *this = mtd->priv;	if (!this->read_word)		this->read_word = onenand_readw;	if (!this->write_word)		this->write_word = onenand_writew;	if (!this->command)		this->command = onenand_command;	if (!this->wait)		this->wait = onenand_wait;	if (!this->read_bufferram)		this->read_bufferram = onenand_read_bufferram;	if (!this->write_bufferram)		this->write_bufferram = onenand_write_bufferram;	if (onenand_probe(mtd))		return -ENXIO;	this->state = FL_READY;	init_waitqueue_head(&this->wq);	spin_lock_init(&this->chip_lock);	switch (mtd->oobsize) {	case 64:		this->autooob = &onenand_oob_64;		break;	case 32:		this->autooob = &onenand_oob_32;		break;	default:		printk(KERN_WARNING "No OOB scheme defined for oobsize %d\n",			mtd->oobsize);		/* To prevent kernel oops */		this->autooob = &onenand_oob_32;		break;	}	memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo));		/* Fill in remaining MTD driver data */	mtd->type = MTD_NANDFLASH;	mtd->flags = MTD_CAP_NANDFLASH | MTD_ECC;	mtd->ecctype = MTD_ECC_SW;	mtd->erase = onenand_erase;	mtd->point = NULL;	mtd->unpoint = NULL;	mtd->read = onenand_read;	mtd->write = onenand_write;	mtd->read_ecc = onenand_read_ecc;	mtd->write_ecc = onenand_write_ecc;	mtd->read_oob = onenand_read_oob;	mtd->write_oob = onenand_write_oob;	mtd->readv = NULL;	mtd->readv_ecc = NULL;	mtd->writev = onenand_writev;	mtd->writev_ecc = onenand_writev_ecc;	mtd->sync = onenand_sync;	mtd->lock = NULL;	mtd->unlock = onenand_unlock;	mtd->suspend = NULL;	mtd->resume = NULL;	mtd->block_isbad = onenand_block_isbad;	mtd->block_markbad = onenand_block_markbad;	mtd->owner = THIS_MODULE;	/* Unlock whole block */	mtd->unlock(mtd, 0x0, this->chipsize);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/52b0eea73de05df33c51ca652e288a3ba1bba03b/onenand_base.c/clean/drivers/mtd/onenand/onenand_base.c