diff options
author | 2002-01-20 19:56:53 +0000 | |
---|---|---|
committer | 2002-01-20 19:56:53 +0000 | |
commit | 55800f2ea0f594a22b70f969ae13c7d05cf21a3f (patch) | |
tree | 77d3cbe3f298d0ddf3d62ded00e47b7ceffa561a /sys/dev/isa/ess.c | |
parent | Swap TEST_BLOCK_LEN and TEST_BLOCK_COUNT in benchmark printf. (diff) | |
download | wireguard-openbsd-55800f2ea0f594a22b70f969ae13c7d05cf21a3f.tar.xz wireguard-openbsd-55800f2ea0f594a22b70f969ae13c7d05cf21a3f.zip |
make all audio drivers use the new allocm and round_buffersize decl's.
will ease porting, and generally cleans up a bit
Diffstat (limited to 'sys/dev/isa/ess.c')
-rw-r--r-- | sys/dev/isa/ess.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/isa/ess.c b/sys/dev/isa/ess.c index 4e2ad288181..8f096e7afcc 100644 --- a/sys/dev/isa/ess.c +++ b/sys/dev/isa/ess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ess.c,v 1.5 2001/10/31 11:00:24 art Exp $ */ +/* $OpenBSD: ess.c,v 1.6 2002/01/20 19:56:53 ericj Exp $ */ /* $NetBSD: ess.c,v 1.44.4.1 1999/06/21 01:18:00 thorpej Exp $ */ /* @@ -148,9 +148,9 @@ 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 *, unsigned long, int, int)); +void *ess_malloc __P((void *, int, size_t, int, int)); void ess_free __P((void *, void *, int)); -unsigned long ess_round_buffersize __P((void *, unsigned long)); +size_t ess_round_buffersize __P((void *, int, size_t)); paddr_t ess_mappage __P((void *, void *, off_t, int)); @@ -2157,9 +2157,10 @@ ess_query_devinfo(addr, dip) } void * -ess_malloc(addr, size, pool, flags) +ess_malloc(addr, direction, size, pool, flags) void *addr; - unsigned long size; + int direction; + size_t size; int pool, flags; { struct ess_softc *sc = addr; @@ -2181,10 +2182,11 @@ ess_free(addr, ptr, pool) isa_free(ptr, pool); } -unsigned long -ess_round_buffersize(addr, size) +size_t +ess_round_buffersize(addr, direction, size) void *addr; - unsigned long size; + int direction; + size_t size; { if (size > MAX_ISADMA) size = MAX_ISADMA; |