summaryrefslogtreecommitdiff
path: root/sys/dev/isa/ess.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 01:27:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-14 01:27:20 +0000
commit8327d0774703553db5e1a41a04bfdf4b1797c2ce (patch)
treeac9a52bace179e17769651fb9f805070d78abe5f /sys/dev/isa/ess.c
parent7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (diff)
First round of __P removal in sys
Diffstat (limited to 'sys/dev/isa/ess.c')
-rw-r--r--sys/dev/isa/ess.c138
1 files changed, 69 insertions, 69 deletions
diff --git a/sys/dev/isa/ess.c b/sys/dev/isa/ess.c
index 8f096e7afcc..88753c9e062 100644
--- a/sys/dev/isa/ess.c
+++ b/sys/dev/isa/ess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ess.c,v 1.6 2002/01/20 19:56:53 ericj Exp $ */
+/* $OpenBSD: ess.c,v 1.7 2002/03/14 01:26:56 millert Exp $ */
/* $NetBSD: ess.c,v 1.44.4.1 1999/06/21 01:18:00 thorpej Exp $ */
/*
@@ -113,20 +113,20 @@ struct cfdriver ess_cd = {
NULL, "ess", DV_DULL
};
-int ess_setup_sc __P((struct ess_softc *, int));
+int ess_setup_sc(struct ess_softc *, int);
-int ess_open __P((void *, int));
-void ess_1788_close __P((void *));
-void ess_1888_close __P((void *));
-int ess_getdev __P((void *, struct audio_device *));
-int ess_drain __P((void *));
+int ess_open(void *, int);
+void ess_1788_close(void *);
+void ess_1888_close(void *);
+int ess_getdev(void *, struct audio_device *);
+int ess_drain(void *);
-int ess_query_encoding __P((void *, struct audio_encoding *));
+int ess_query_encoding(void *, struct audio_encoding *);
-int ess_set_params __P((void *, int, int, struct audio_params *,
- struct audio_params *));
+int ess_set_params(void *, int, int, struct audio_params *,
+ struct audio_params *);
-int ess_round_blocksize __P((void *, int));
+int ess_round_blocksize(void *, int);
int ess_audio1_trigger_output __P((void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *));
@@ -134,59 +134,59 @@ int ess_audio2_trigger_output __P((void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *));
int ess_audio1_trigger_input __P((void *, void *, void *, int,
void (*)(void *), void *, struct audio_params *));
-int ess_audio1_halt __P((void *));
-int ess_audio2_halt __P((void *));
-int ess_audio1_intr __P((void *));
-int ess_audio2_intr __P((void *));
-void ess_audio1_poll __P((void *));
-void ess_audio2_poll __P((void *));
-
-int ess_speaker_ctl __P((void *, int));
-
-int ess_getdev __P((void *, struct audio_device *));
-
-int ess_set_port __P((void *, mixer_ctrl_t *));
-int ess_get_port __P((void *, mixer_ctrl_t *));
-
-void *ess_malloc __P((void *, int, size_t, int, int));
-void ess_free __P((void *, void *, int));
-size_t ess_round_buffersize __P((void *, int, size_t));
-paddr_t ess_mappage __P((void *, void *, off_t, int));
-
-
-int ess_query_devinfo __P((void *, mixer_devinfo_t *));
-int ess_1788_get_props __P((void *));
-int ess_1888_get_props __P((void *));
-
-void ess_speaker_on __P((struct ess_softc *));
-void ess_speaker_off __P((struct ess_softc *));
-
-int ess_config_addr __P((struct ess_softc *));
-void ess_config_irq __P((struct ess_softc *));
-void ess_config_drq __P((struct ess_softc *));
-void ess_setup __P((struct ess_softc *));
-int ess_identify __P((struct ess_softc *));
-
-int ess_reset __P((struct ess_softc *));
-void ess_set_gain __P((struct ess_softc *, int, int));
-int ess_set_in_port __P((struct ess_softc *, int));
-int ess_set_in_ports __P((struct ess_softc *, int));
-u_int ess_srtotc __P((u_int));
-u_int ess_srtofc __P((u_int));
-u_char ess_get_dsp_status __P((struct ess_softc *));
-u_char ess_dsp_read_ready __P((struct ess_softc *));
-u_char ess_dsp_write_ready __P((struct ess_softc *));
-int ess_rdsp __P((struct ess_softc *));
-int ess_wdsp __P((struct ess_softc *, u_char));
-u_char ess_read_x_reg __P((struct ess_softc *, u_char));
-int ess_write_x_reg __P((struct ess_softc *, u_char, u_char));
-void ess_clear_xreg_bits __P((struct ess_softc *, u_char, u_char));
-void ess_set_xreg_bits __P((struct ess_softc *, u_char, u_char));
-u_char ess_read_mix_reg __P((struct ess_softc *, u_char));
-void ess_write_mix_reg __P((struct ess_softc *, u_char, u_char));
-void ess_clear_mreg_bits __P((struct ess_softc *, u_char, u_char));
-void ess_set_mreg_bits __P((struct ess_softc *, u_char, u_char));
-void ess_read_multi_mix_reg __P((struct ess_softc *, u_char, u_int8_t *, bus_size_t));
+int ess_audio1_halt(void *);
+int ess_audio2_halt(void *);
+int ess_audio1_intr(void *);
+int ess_audio2_intr(void *);
+void ess_audio1_poll(void *);
+void ess_audio2_poll(void *);
+
+int ess_speaker_ctl(void *, int);
+
+int ess_getdev(void *, struct audio_device *);
+
+int ess_set_port(void *, mixer_ctrl_t *);
+int ess_get_port(void *, mixer_ctrl_t *);
+
+void *ess_malloc(void *, int, size_t, int, int);
+void ess_free(void *, void *, int);
+size_t ess_round_buffersize(void *, int, size_t);
+paddr_t ess_mappage(void *, void *, off_t, int);
+
+
+int ess_query_devinfo(void *, mixer_devinfo_t *);
+int ess_1788_get_props(void *);
+int ess_1888_get_props(void *);
+
+void ess_speaker_on(struct ess_softc *);
+void ess_speaker_off(struct ess_softc *);
+
+int ess_config_addr(struct ess_softc *);
+void ess_config_irq(struct ess_softc *);
+void ess_config_drq(struct ess_softc *);
+void ess_setup(struct ess_softc *);
+int ess_identify(struct ess_softc *);
+
+int ess_reset(struct ess_softc *);
+void ess_set_gain(struct ess_softc *, int, int);
+int ess_set_in_port(struct ess_softc *, int);
+int ess_set_in_ports(struct ess_softc *, int);
+u_int ess_srtotc(u_int);
+u_int ess_srtofc(u_int);
+u_char ess_get_dsp_status(struct ess_softc *);
+u_char ess_dsp_read_ready(struct ess_softc *);
+u_char ess_dsp_write_ready(struct ess_softc *);
+int ess_rdsp(struct ess_softc *);
+int ess_wdsp(struct ess_softc *, u_char);
+u_char ess_read_x_reg(struct ess_softc *, u_char);
+int ess_write_x_reg(struct ess_softc *, u_char, u_char);
+void ess_clear_xreg_bits(struct ess_softc *, u_char, u_char);
+void ess_set_xreg_bits(struct ess_softc *, u_char, u_char);
+u_char ess_read_mix_reg(struct ess_softc *, u_char);
+void ess_write_mix_reg(struct ess_softc *, u_char, u_char);
+void ess_clear_mreg_bits(struct ess_softc *, u_char, u_char);
+void ess_set_mreg_bits(struct ess_softc *, u_char, u_char);
+void ess_read_multi_mix_reg(struct ess_softc *, u_char, u_int8_t *, bus_size_t);
static char *essmodel[] = {
"unsupported",
@@ -269,8 +269,8 @@ struct audio_hw_if ess_1888_hw_if = {
};
#ifdef AUDIO_DEBUG
-void ess_printsc __P((struct ess_softc *));
-void ess_dump_mixer __P((struct ess_softc *));
+void ess_printsc(struct ess_softc *);
+void ess_dump_mixer(struct ess_softc *);
void
ess_printsc(sc)
@@ -1282,7 +1282,7 @@ ess_audio1_trigger_output(addr, start, end, blksize, intr, arg, param)
void *addr;
void *start, *end;
int blksize;
- void (*intr) __P((void *));
+ void (*intr)(void *);
void *arg;
struct audio_params *param;
{
@@ -1360,7 +1360,7 @@ ess_audio2_trigger_output(addr, start, end, blksize, intr, arg, param)
void *addr;
void *start, *end;
int blksize;
- void (*intr) __P((void *));
+ void (*intr)(void *);
void *arg;
struct audio_params *param;
{
@@ -1429,7 +1429,7 @@ ess_audio1_trigger_input(addr, start, end, blksize, intr, arg, param)
void *addr;
void *start, *end;
int blksize;
- void (*intr) __P((void *));
+ void (*intr)(void *);
void *arg;
struct audio_params *param;
{