summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 03:16:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 03:16:15 +0000
commite63dc855fe4ff1aa0029ebf9813134860a34ccdf (patch)
treec2aa960c67a99a878c8902943399029fa598683f /sys/arch/sparc/dev
parent71eb96ce8a9190e7ffeccbabd7a5ec4f3b4fc72f (diff)
Final __P removal plus some cosmetic fixups
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/amd7930.c12
-rw-r--r--sys/arch/sparc/dev/cgtwo.c4
-rw-r--r--sys/arch/sparc/dev/cs4231.c10
-rw-r--r--sys/arch/sparc/dev/cs4231var.h6
-rw-r--r--sys/arch/sparc/dev/fga.c4
-rw-r--r--sys/arch/sparc/dev/kbd.c4
-rw-r--r--sys/arch/sparc/dev/si.c4
7 files changed, 21 insertions, 23 deletions
diff --git a/sys/arch/sparc/dev/amd7930.c b/sys/arch/sparc/dev/amd7930.c
index 7acd6f32a43..549eabb3669 100644
--- a/sys/arch/sparc/dev/amd7930.c
+++ b/sys/arch/sparc/dev/amd7930.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amd7930.c,v 1.19 2002/03/14 01:26:42 millert Exp $ */
+/* $OpenBSD: amd7930.c,v 1.20 2002/03/14 03:15:59 millert Exp $ */
/* $NetBSD: amd7930.c,v 1.37 1998/03/30 14:23:40 pk Exp $ */
/*
@@ -77,9 +77,9 @@ struct amd7930_softc {
u_char sc_out_port; /* output port */
/* interfacing with the interrupt handlers */
- void (*sc_rintr)(void*); /* input completion intr handler */
+ void (*sc_rintr)(void *); /* input completion intr handler */
void *sc_rarg; /* arg for sc_rintr() */
- void (*sc_pintr)(void*); /* output completion intr handler */
+ void (*sc_pintr)(void *); /* output completion intr handler */
void *sc_parg; /* arg for sc_pintr() */
/* sc_au is special in that the hardware interrupt handler uses it */
@@ -210,10 +210,8 @@ int amd7930_query_encoding(void *, struct audio_encoding *);
int amd7930_set_params(void *, int, int, struct audio_params *, struct audio_params *);
int amd7930_round_blocksize(void *, int);
int amd7930_commit_settings(void *);
-int amd7930_start_output __P((void *, void *, int, void (*)(void *),
- void *));
-int amd7930_start_input __P((void *, void *, int, void (*)(void *),
- void *));
+int amd7930_start_output(void *, void *, int, void (*)(void *), void *);
+int amd7930_start_input(void *, void *, int, void (*)(void *), void *);
int amd7930_halt_output(void *);
int amd7930_halt_input(void *);
int amd7930_getdev(void *, struct audio_device *);
diff --git a/sys/arch/sparc/dev/cgtwo.c b/sys/arch/sparc/dev/cgtwo.c
index 4653190d18d..4f3b8d44627 100644
--- a/sys/arch/sparc/dev/cgtwo.c
+++ b/sys/arch/sparc/dev/cgtwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgtwo.c,v 1.19 2002/03/14 01:26:42 millert Exp $ */
+/* $OpenBSD: cgtwo.c,v 1.20 2002/03/14 03:15:59 millert Exp $ */
/* $NetBSD: cgtwo.c,v 1.22 1997/05/24 20:16:12 pk Exp $ */
/*
@@ -305,7 +305,7 @@ cgtwoioctl(dev, cmd, data, flags, p)
break;
case FBIOSVIDEO:
- sc->sc_reg->video_enab = (*(int*)data) & 1;
+ sc->sc_reg->video_enab = (*(int *)data) & 1;
break;
default:
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c
index a632f2af0b3..f3f4d924ada 100644
--- a/sys/arch/sparc/dev/cs4231.c
+++ b/sys/arch/sparc/dev/cs4231.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4231.c,v 1.12 2002/03/14 01:26:42 millert Exp $ */
+/* $OpenBSD: cs4231.c,v 1.13 2002/03/14 03:15:59 millert Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -139,10 +139,10 @@ void * cs4231_alloc(void *, int, size_t, int, int);
void cs4231_free(void *, void *, int);
size_t cs4231_round_buffersize(void *, int, size_t);
int cs4231_get_props(void *);
-int cs4231_trigger_output __P((void *, void *, void *, int,
- void (*intr)(void *), void *arg, struct audio_params *));
-int cs4231_trigger_input __P((void *, void *, void *, int,
- void (*intr)(void *), void *arg, struct audio_params *));
+int cs4231_trigger_output(void *, void *, void *, int,
+ void (*intr)(void *), void *arg, struct audio_params *);
+int cs4231_trigger_input(void *, void *, void *, int,
+ void (*intr)(void *), void *arg, struct audio_params *);
struct audio_hw_if cs4231_sa_hw_if = {
cs4231_open,
diff --git a/sys/arch/sparc/dev/cs4231var.h b/sys/arch/sparc/dev/cs4231var.h
index e1b0799d714..b6542ca7fbd 100644
--- a/sys/arch/sparc/dev/cs4231var.h
+++ b/sys/arch/sparc/dev/cs4231var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4231var.h,v 1.5 2002/01/11 16:28:43 jason Exp $ */
+/* $OpenBSD: cs4231var.h,v 1.6 2002/03/14 03:15:59 millert Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -61,9 +61,9 @@ struct cs4231_softc {
int sc_open; /* already open? */
int sc_locked; /* locked? */
- void (*sc_rintr)(void*); /* input completion intr handler */
+ void (*sc_rintr)(void *); /* input completion intr handler */
void * sc_rarg; /* arg for sc_rintr() */
- void (*sc_pintr)(void*); /* output completion intr handler */
+ void (*sc_pintr)(void *); /* output completion intr handler */
void * sc_parg; /* arg for sc_pintr() */
char sc_mute[9]; /* which devs are muted */
diff --git a/sys/arch/sparc/dev/fga.c b/sys/arch/sparc/dev/fga.c
index b3c61f22a12..687ec284248 100644
--- a/sys/arch/sparc/dev/fga.c
+++ b/sys/arch/sparc/dev/fga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fga.c,v 1.7 2002/03/14 01:26:42 millert Exp $ */
+/* $OpenBSD: fga.c,v 1.8 2002/03/14 03:15:59 millert Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -289,7 +289,7 @@ fga_vmerangemap(sc, vmebase, vmelen, vmecap, sbusslot, sbusoffset, oca)
(void *)(sc->sc_range[srange].poffset | sbusoffset);
oca->ca_ra.ra_reg[0].rr_iospace = sbusslot;
oca->ca_ra.ra_reg[1].rr_iospace = vmecap;
- oca->ca_ra.ra_reg[1].rr_paddr = (void*)vmebase;
+ oca->ca_ra.ra_reg[1].rr_paddr = (void *)vmebase;
oca->ca_ra.ra_reg[1].rr_len = vmelen;
/* 1. Setup slot select register for this range. */
diff --git a/sys/arch/sparc/dev/kbd.c b/sys/arch/sparc/dev/kbd.c
index ed9119878bd..50ac48fd5f2 100644
--- a/sys/arch/sparc/dev/kbd.c
+++ b/sys/arch/sparc/dev/kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd.c,v 1.16 2002/03/14 01:26:43 millert Exp $ */
+/* $OpenBSD: kbd.c,v 1.17 2002/03/14 03:15:59 millert Exp $ */
/* $NetBSD: kbd.c,v 1.28 1997/09/13 19:12:18 pk Exp $ */
/*
@@ -1066,7 +1066,7 @@ kbdioctl(dev, cmd, data, flag, p)
case KIOCSLED:
if (k->k_state.kbd_id != KB_SUN4) {
/* xxx NYI */
- k->k_state.kbd_leds = *(char*)data;
+ k->k_state.kbd_leds = *(char *)data;
} else {
int s;
char leds = *(char *)data;
diff --git a/sys/arch/sparc/dev/si.c b/sys/arch/sparc/dev/si.c
index 3b6a078287a..7826aca1932 100644
--- a/sys/arch/sparc/dev/si.c
+++ b/sys/arch/sparc/dev/si.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: si.c,v 1.15 2002/03/14 01:26:43 millert Exp $ */
+/* $OpenBSD: si.c,v 1.16 2002/03/14 03:15:59 millert Exp $ */
/* $NetBSD: si.c,v 1.38 1997/08/27 11:24:20 bouyer Exp $ */
/*-
@@ -669,7 +669,7 @@ found:
dh = &sc->sc_dma[i];
dh->dh_flags = SIDH_BUSY;
- dh->dh_addr = (u_char*) addr;
+ dh->dh_addr = (u_char *) addr;
dh->dh_maplen = xlen;
dh->dh_dvma = 0;