(void)tsleep(eeprom_va, PZERO-1, "eeprom", HZ/50);
(void)tsleep(eeprom_va, PZERO-1, "eeprom", hz/50);
static int ee_update(char *buf, int off, int cnt){	volatile char *ep;	char *bp;	if (eeprom_va == NULL)		return (ENXIO);	ep = eeprom_va + off;	bp = buf + off;	while (cnt > 0) {		/*		 * DO NOT WRITE IT UNLESS WE HAVE TO because the		 * EEPROM has a limited number of write cycles.		 * After some number of writes it just fails!		 */		if (*ep != *bp) {			*ep  = *bp;			/*			 * We have written the EEPROM, so now we must			 * sleep for at least 10 milliseconds while			 * holding the lock to prevent all access to			 * the EEPROM while it recovers.			 */			(void)tsleep(eeprom_va, PZERO-1, "eeprom", HZ/50);		}		/* Make sure the write worked. */		if (*ep != *bp)			return (EIO);		ep++;		bp++;		cnt--;	}	return(0);}