static int __pmac sm_erase_bank(int bank) 
static int sm_erase_bank(int bank) 
static int __pmac sm_erase_bank(int bank){	int stat, i;	unsigned long timeout;	u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;       	DBG("nvram: Sharp/Micron Erasing bank %d...\n", bank);	out_8(base, SM_FLASH_CMD_ERASE_SETUP);	out_8(base, SM_FLASH_CMD_ERASE_CONFIRM);	timeout = 0;	do {		if (++timeout > 1000000) {			printk(KERN_ERR "nvram: Sharp/Miron flash erase timeout !\n");			break;		}		out_8(base, SM_FLASH_CMD_READ_STATUS);		stat = in_8(base);	} while (!(stat & SM_FLASH_STATUS_DONE));	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] != 0xff) {			printk(KERN_ERR "nvram: Sharp/Micron flash erase 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