summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-18 16:12:04 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-18 16:12:04 +0000
commit605379004389fd17d260553b838bf853b9b6f379 (patch)
tree2972f09aa8788be78ba5994e08d71b0630c821af
parent4a4b7c71f1edf0362423c3003f95dfd01b65a981 (diff)
-Wall happiness
-rw-r--r--sys/arch/alpha/tc/esp.c10
-rw-r--r--sys/arch/alpha/tc/espvar.h7
2 files changed, 13 insertions, 4 deletions
diff --git a/sys/arch/alpha/tc/esp.c b/sys/arch/alpha/tc/esp.c
index 68d1e3bdba5..5e6cfb9fb8d 100644
--- a/sys/arch/alpha/tc/esp.c
+++ b/sys/arch/alpha/tc/esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esp.c,v 1.4 1996/07/29 23:02:00 niklas Exp $ */
+/* $OpenBSD: esp.c,v 1.5 1996/10/18 16:12:01 niklas Exp $ */
/* $NetBSD: esp.c,v 1.8.4.1 1996/06/05 00:39:03 cgd Exp $ */
/*
@@ -66,6 +66,7 @@
#include <sparc/dev/espreg.h>
#include <sparc/dev/espvar.h>
#else
+#include <machine/autoconf.h>
#include <dev/tc/tcvar.h>
#include <alpha/tc/tcdsvar.h>
#include <alpha/tc/espreg.h>
@@ -92,6 +93,8 @@ int esp_debug = 0; /*ESP_SHOWPHASE|ESP_SHOWMISC|ESP_SHOWTRAC|ESP_SHOWCMDS;*/
/*static*/ int espintr __P((struct esp_softc *));
/*static*/ void esp_timeout __P((void *arg));
/*static*/ void esp_abort __P((struct esp_softc *, struct ecb *));
+int esp_cpb2stp __P((struct esp_softc *, int));
+int esp_stp2cpb __P((struct esp_softc *, int));
/* Linkup to the rest of the kernel */
struct cfattach esp_ca = {
@@ -131,8 +134,8 @@ espmatch(parent, vcf, aux)
struct device *parent;
void *vcf, *aux;
{
- struct cfdata *cf = vcf;
#ifdef SPARC_DRIVER
+ struct cfdata *cf = vcf;
register struct confargs *ca = aux;
register struct romaux *ra = &ca->ca_ra;
@@ -586,8 +589,10 @@ espreadregs(sc)
/*
* Convert Synchronous Transfer Period to chip register Clock Per Byte value.
*/
+int
esp_stp2cpb(sc, period)
struct esp_softc *sc;
+ int period;
{
int v;
v = (sc->sc_freq * period) / 250;
@@ -600,6 +605,7 @@ esp_stp2cpb(sc, period)
/*
* Convert chip register Clock Per Byte value to Synchronous Transfer Period.
*/
+int
esp_cpb2stp(sc, cpb)
struct esp_softc *sc;
int cpb;
diff --git a/sys/arch/alpha/tc/espvar.h b/sys/arch/alpha/tc/espvar.h
index c7c3b986231..0564fcbdc1e 100644
--- a/sys/arch/alpha/tc/espvar.h
+++ b/sys/arch/alpha/tc/espvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: espvar.h,v 1.3 1996/07/29 23:02:04 niklas Exp $ */
+/* $OpenBSD: espvar.h,v 1.4 1996/10/18 16:12:03 niklas Exp $ */
/* $NetBSD: espvar.h,v 1.3 1995/12/20 00:40:26 cgd Exp $ */
/*
@@ -264,7 +264,8 @@ struct esp_softc {
#define PSEUDO_PHASE 0x100 /* "pseudo" bit */
#if 1
-static inline u_char
+static __inline u_char ESP_READ_REG __P((struct esp_softc *, int));
+static __inline u_char
ESP_READ_REG(sc, reg)
struct esp_softc *sc;
int reg;
@@ -313,6 +314,8 @@ ESP_READ_REG(sc, reg)
DMAWAIT1(sc); \
}
#else
+int tcds_dma_intr __P((struct tcds_slotconfig *));
+
#define DMA_ENINTR(r) tcds_dma_enintr(r)
#define DMA_ISINTR(r) tcds_dma_isintr(r)
#define DMA_RESET(r) tcds_dma_reset(r)