summaryrefslogtreecommitdiff
path: root/sys/dev/pci/sv.c
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2002-01-20 19:56:54 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2002-01-20 19:56:54 +0000
commit10c920d080603ff3b6719285c3e7bd54ff32efd2 (patch)
tree252fa907f4d5c57349ee74c90f62b297da4fe787 /sys/dev/pci/sv.c
parent14675026c36c5e4af0a6ad26a161393ec808185a (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/sv.c')
-rw-r--r--sys/dev/pci/sv.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c
index 7defd46f441..2e25b57afa0 100644
--- a/sys/dev/pci/sv.c
+++ b/sys/dev/pci/sv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sv.c,v 1.10 2001/10/31 11:00:24 art Exp $ */
+/* $OpenBSD: sv.c,v 1.11 2002/01/20 19:56:53 ericj Exp $ */
/*
* Copyright (c) 1998 Constantine Paul Sapuntzakis
@@ -157,9 +157,9 @@ int sv_getdev __P((void *, struct audio_device *));
int sv_mixer_set_port __P((void *, mixer_ctrl_t *));
int sv_mixer_get_port __P((void *, mixer_ctrl_t *));
int sv_query_devinfo __P((void *, mixer_devinfo_t *));
-void *sv_malloc __P((void *, u_long, int, int));
+void *sv_malloc __P((void *, int, size_t, int, int));
void sv_free __P((void *, void *, int));
-u_long sv_round __P((void *, u_long));
+size_t sv_round __P((void *, int, size_t));
paddr_t sv_mappage __P((void *, void *, off_t, int));
int sv_get_props __P((void *));
@@ -1441,9 +1441,10 @@ sv_init_mixer(sc)
}
void *
-sv_malloc(addr, size, pool, flags)
+sv_malloc(addr, direction, size, pool, flags)
void *addr;
- u_long size;
+ int direction;
+ size_t size;
int pool;
int flags;
{
@@ -1483,10 +1484,11 @@ sv_free(addr, ptr, pool)
}
}
-u_long
-sv_round(addr, size)
+size_t
+sv_round(addr, direction, size)
void *addr;
- u_long size;
+ int direction;
+ size_t size;
{
return (size);
}