diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2002-01-20 19:56:54 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2002-01-20 19:56:54 +0000 |
commit | 10c920d080603ff3b6719285c3e7bd54ff32efd2 (patch) | |
tree | 252fa907f4d5c57349ee74c90f62b297da4fe787 /sys/dev/pci/yds.c | |
parent | 14675026c36c5e4af0a6ad26a161393ec808185a (diff) |
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/pci/yds.c')
-rw-r--r-- | sys/dev/pci/yds.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index 349eef48de6..80c8b54f82f 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yds.c,v 1.12 2002/01/06 23:01:40 ericj Exp $ */ +/* $OpenBSD: yds.c,v 1.13 2002/01/20 19:56:53 ericj Exp $ */ /* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */ /* @@ -171,9 +171,9 @@ int yds_halt_input __P((void *)); int yds_getdev __P((void *, struct audio_device *)); int yds_mixer_set_port __P((void *, mixer_ctrl_t *)); int yds_mixer_get_port __P((void *, mixer_ctrl_t *)); -void *yds_malloc __P((void *, u_long, int, int)); +void *yds_malloc __P((void *, int, size_t, int, int)); void yds_free __P((void *, void *, int)); -u_long yds_round_buffersize __P((void *, u_long)); +size_t yds_round_buffersize __P((void *, int, size_t)); paddr_t yds_mappage __P((void *, void *, off_t, int)); int yds_get_props __P((void *)); int yds_query_devinfo __P((void *addr, mixer_devinfo_t *dip)); @@ -1667,9 +1667,10 @@ yds_get_portnum_by_name(sc, class, device, qualifier) } void * -yds_malloc(addr, size, pool, flags) +yds_malloc(addr, direction, size, pool, flags) void *addr; - u_long size; + int direction; + size_t size; int pool, flags; { struct yds_softc *sc = addr; @@ -1721,10 +1722,11 @@ yds_find_dma(sc, addr) return p; } -u_long -yds_round_buffersize(addr, size) +size_t +yds_round_buffersize(addr, direction, size) void *addr; - u_long size; + int direction; + size_t size; { /* * Buffer size should be at least twice as bigger as a frame. |