-/* $NetBSD: auxreg.c,v 1.8 1995/02/22 21:13:01 pk Exp $ */
+/* $NetBSD: auxreg.c,v 1.9 1995/12/11 12:45:16 pk Exp $ */
/*
* Copyright (c) 1992, 1993
struct confargs *ca = aux;
struct romaux *ra = &ca->ca_ra;
- auxio_reg = mapdev(ra->ra_reg, AUXREG_VA, 0, sizeof(long),
- ca->ca_bustype);
- if ((u_long)auxio_reg != AUXREG_VA)
- panic("unable to map auxreg");
+ (void)mapdev(ra->ra_reg, AUXREG_VA, 0, sizeof(long), ca->ca_bustype);
+ auxio_reg = AUXIO_REG;
printf("\n");
#ifdef BLINK
blink((caddr_t)0);
-/* $NetBSD: clock.c,v 1.25 1995/10/08 11:44:59 pk Exp $ */
+/* $NetBSD: clock.c,v 1.26 1995/12/11 12:45:18 pk Exp $ */
/*
* Copyright (c) 1992, 1993
printf("\n");
i7 = (volatile struct intersil7170 *) mapiodev(ra->ra_reg, 0,
- sizeof(*i7), ca->ca_bustype);
+ sizeof(*i7), ca->ca_bustype);
idp = &idprom;
h = idp->id_machine << 24;
printf("\n");
- eeprom_va = (char *)mapiodev(ra->ra_reg, 0, sizeof(struct eeprom),
+ eeprom_va = (char *)mapiodev(ra->ra_reg, 0, EEPROM_SIZE,
ca->ca_bustype);
eeprom_nvram = 0;
*/
cl = (struct clockreg *)mapiodev(ra->ra_reg, 0, 2 * NBPG,
ca->ca_bustype);
- pmap_changeprot(pmap_kernel(), (vm_offset_t)cl, VM_PROT_READ, 1);
- pmap_changeprot(pmap_kernel(), (vm_offset_t)cl + NBPG, VM_PROT_READ, 1);
+ pmap_changeprot(pmap_kernel(), (vm_offset_t)cl,
+ VM_PROT_READ, 1);
+ pmap_changeprot(pmap_kernel(), (vm_offset_t)cl + NBPG,
+ VM_PROT_READ, 1);
cl = (struct clockreg *)((int)cl + CLK_MK48T08_OFF);
} else {
/*
* we have a fixed virtual address for the timer, to make
* microtime() faster.
*/
- if ((int)mapdev(ra->ra_reg, TIMERREG_VA, 0, sizeof(struct timerreg),
- ca->ca_bustype) != TIMERREG_VA)
- panic("unable to map timer");
+ (void)mapdev(ra->ra_reg, TIMERREG_VA, 0, sizeof(struct timerreg),
+ ca->ca_bustype);
timerok = 1;
/* should link interrupt handlers here, rather than compiled-in? */
}