static int __pmac sm_write_bank(int bank, u8* datas) 
static int sm_write_bank(int bank, u8* datas) 
static int __pmac sm_write_bank(int bank, u8* datas){	int i, stat = 0;	unsigned long timeout;	u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;       	DBG("nvram: Sharp/Micron Writing bank %d...\n", bank);	for (i=0; i<NVRAM_SIZE; i++) {		out_8(base+i, SM_FLASH_CMD_WRITE_SETUP);		udelay(1);		out_8(base+i, datas[i]);		timeout = 0;		do {			if (++timeout > 1000000) {				printk(KERN_ERR "nvram: Sharp/Micron flash write timeout !\n");				break;			}			out_8(base, SM_FLASH_CMD_READ_STATUS);			stat = in_8(base);		} while (!(stat & SM_FLASH_STATUS_DONE));		if (!(stat & SM_FLASH_STATUS_DONE))			break;	}	out_8(base, SM_FLASH_CMD_CLEAR_STATUS);	out_8(base, SM_FLASH_CMD_RESET);	for (i=0; i<NVRAM_SIZE; i++)		if (base[i] != datas[i]) {			printk(KERN_ERR "nvram: Sharp/Micron flash write failed !\n");			return -ENXIO;		}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/aacaf9bd9646f6f611a08fca976411b6e5ddefe2/pmac_nvram.c/buggy/arch/ppc64/kernel/pmac_nvram.c