/* Update the E2PROM by wrting any changes into the E2PROM chip, rewriting the checksum.  */
static void initio_se2_update_all(unsigned long base)
/* Update the E2PROM by wrting any changes into the E2PROM chip, rewriting the checksum.  */
static void initio_se2_update_all(unsigned long base)
{
	int i;
	u16 chksum = 0;
	u16 *np, *np1;
	i91unvramp = &i91unvram;
	np = (u16 *) i91udftNvRam;
	for (i = 0; i < 31; i++)
		chksum += *np++;
	*np = chksum;
	initio_se2_ew_en(base);
	np = (u16 *) i91udftNvRam;
	np1 = (u16 *) i91unvramp;
	for (i = 0; i < 32; i++, np++, np1++) {
		if (*np != *np1)
			initio_se2_wr(base, i, *np);
	}
	initio_se2_ew_ds(base);
}