diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-04-27 23:21:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-04-27 23:21:07 +0000 |
commit | 68bd39a8215f0f8a94a812dd041e1f0257eadb4c (patch) | |
tree | 0cf3291275ed21e599146dea724c8f4c962a61db /sys/arch/mvme68k/dev/pcc.c | |
parent | d75a8327a6482df990b368070cf1e837f96bae60 (diff) |
Jumbo commit to fix all compilation warnings on mvme68k (add prototypes,
add casts, fix a few errors and typos in the process, etc)
Diffstat (limited to 'sys/arch/mvme68k/dev/pcc.c')
-rw-r--r-- | sys/arch/mvme68k/dev/pcc.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/arch/mvme68k/dev/pcc.c b/sys/arch/mvme68k/dev/pcc.c index 1f0d6411588..3bacda34bf2 100644 --- a/sys/arch/mvme68k/dev/pcc.c +++ b/sys/arch/mvme68k/dev/pcc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcc.c,v 1.8 2002/04/21 23:44:29 miod Exp $ */ +/* $OpenBSD: pcc.c,v 1.9 2002/04/27 23:21:05 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -62,7 +62,9 @@ struct pccsoftc { void pccattach(struct device *, struct device *, void *); int pccmatch(struct device *, void *, void *); -int pccabort(struct frame *); +int pccabort(void *); +int pcc_print(void *, const char *); +int pcc_scan(struct device *, void *, void *); struct cfattach pcc_ca = { sizeof(struct pccsoftc), pccmatch, pccattach @@ -79,7 +81,6 @@ pccmatch(parent, vcf, args) struct device *parent; void *vcf, *args; { - struct cfdata *cf = vcf; struct confargs *ca = args; /* the pcc only exist on vme147's */ @@ -109,7 +110,6 @@ pcc_scan(parent, child, args) { struct cfdata *cf = child; struct pccsoftc *sc = (struct pccsoftc *)parent; - struct confargs *ca = args; struct confargs oca; if (parent->dv_cfdata->cf_driver->cd_indirect) { @@ -143,7 +143,6 @@ pccattach(parent, self, args) { struct confargs *ca = args; struct pccsoftc *sc = (struct pccsoftc *)self; - int i; if (sys_pcc) panic("pcc already attached!"); @@ -160,7 +159,6 @@ pccattach(parent, self, args) printf(": rev %d\n", sc->sc_pcc->pcc_chiprev); sc->sc_nmiih.ih_fn = pccabort; - sc->sc_nmiih.ih_arg = 0; sc->sc_nmiih.ih_ipl = 7; sc->sc_nmiih.ih_wantframe = 1; pccintr_establish(PCCV_ABORT, &sc->sc_nmiih); @@ -191,7 +189,7 @@ pccintr_establish(vec, ih) int pccabort(frame) - struct frame *frame; + void *frame; { #if 0 /* XXX wait for it to debounce -- there is something wrong here */ @@ -213,15 +211,13 @@ pccspeed(pcc) volatile int cnt; int speed; - /*printf("counting...lim = %d\n", lim);*/ - pcc->pcc_t1irq = 0; /* just in case */ pcc->pcc_t1pload = 0; pcc->pcc_t1ctl = PCC_TIMERCLEAR; pcc->pcc_t1ctl = PCC_TIMERSTART; cnt = 0; - while (1) { + for (;;) { tmp = pcc->pcc_t1count; if (tmp > lim) break; |