diff options
author | phk <phk@FreeBSD.org> | 1999-05-10 18:13:30 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-10 18:13:30 +0000 |
commit | c54537a0afba432cfb34e95ff58b14847c0e6067 (patch) | |
tree | 1b1aad39dce50e3bb710ed4e1c6e780d9f4b6ffc /sys/i386/isa/sound | |
parent | 563f9088bed943b10ef16039fbe5a6512ac0a99b (diff) | |
download | FreeBSD-src-c54537a0afba432cfb34e95ff58b14847c0e6067.zip FreeBSD-src-c54537a0afba432cfb34e95ff58b14847c0e6067.tar.gz |
correct params for sndmmap(). Don't bogo-initialize fields we don't
understand.
Diffstat (limited to 'sys/i386/isa/sound')
-rw-r--r-- | sys/i386/isa/sound/soundcard.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index e00e462..0718183 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -80,7 +80,6 @@ sequencer_poll (int dev, struct fileinfo *file, int events, select_table * wait) static int sndprobe __P((struct isa_device *)); static int sndattach __P((struct isa_device *)); -static int sndmmap __P((dev_t dev, int offset, int nprot )); static d_open_t sndopen; static d_close_t sndclose; @@ -88,6 +87,7 @@ static d_ioctl_t sndioctl; static d_read_t sndread; static d_write_t sndwrite; static d_poll_t sndpoll; +static d_mmap_t sndmmap; static char driver_name[] = "snd"; @@ -96,7 +96,6 @@ static struct cdevsw snd_cdevsw = { sndopen, sndclose, sndread, sndwrite, sndioctl, nostop, noreset, nodevtotty, sndpoll, sndmmap, nostrategy, driver_name, - NULL, -1, }; @@ -147,7 +146,7 @@ get_time(void) } static int -sndmmap( dev_t dev, int offset, int nprot ) +sndmmap( dev_t dev, vm_offset_t offset, int nprot ) { struct dma_buffparms * dmap; u_int min = minor(dev) >> 4; |