/* Reads the E2PROM data into main memory. Ensures that the checksum and header marker are valid. Returns 1 on success -1 on error.  */
static int initio_se2_rd_all(unsigned long base)
/* Reads the E2PROM data into main memory. Ensures that the checksum and header marker are valid. Returns 1 on success -1 on error.  */
static int initio_se2_rd_all(unsigned long base)
{
	int i;
	u16 chksum = 0;
	u16 *np;
	i91unvramp = &i91unvram;
	np = (u16 *) i91unvramp;
	for (i = 0; i < 32; i++)
		*np++ = initio_se2_rd(base, i);
	if (i91unvramp->NVM_Signature != INI_SIGNATURE)
		return -1;
	np = (u16 *) i91unvramp;
	for (i = 0; i < 31; i++)
		chksum += *np++;
	if (i91unvramp->NVM_CheckSum != chksum)
		return -1;
	return 1;
}