diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-20 21:45:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-20 21:45:21 +0000 |
commit | 0274aef416f3d23ab431432f7a8d3d7773f4f53a (patch) | |
tree | 450582532d58e699c1b6e6665f6d7180879c9294 /sys/dev/pci/fmsvar.h | |
parent | 7d11957ea636eec5fa2901a61ea64cb29549aa35 (diff) |
new auvia and fms drivers from netbsd (testing requests sent out, since i cannot find any of these devices)
Diffstat (limited to 'sys/dev/pci/fmsvar.h')
-rw-r--r-- | sys/dev/pci/fmsvar.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sys/dev/pci/fmsvar.h b/sys/dev/pci/fmsvar.h new file mode 100644 index 00000000000..a47564be8dd --- /dev/null +++ b/sys/dev/pci/fmsvar.h @@ -0,0 +1,78 @@ +/* $NetBSD: fmsvar.h,v 1.1 1999/11/01 21:54:12 augustss Exp $ */ + +/*- + * Copyright (c) 1999 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Witold J. Wnuk. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. + * 4. Neither the name of The NetBSD Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + + +#ifndef _DEV_PCI_FMSVAR_H_ +#define _DEV_PCI_FMSVAR_H_ + +struct fms_softc { + struct device sc_dev; + void *sc_ih; + + bus_space_tag_t sc_iot; + bus_space_handle_t sc_ioh; + bus_addr_t sc_ioaddr; + bus_size_t sc_iosize; + bus_dma_tag_t sc_dmat; + + bus_space_handle_t sc_opl_ioh; + + bus_space_handle_t sc_mpu_ioh; + struct device * sc_mpu_dev; + + struct ac97_codec_if *codec_if; + struct ac97_host_if host_if; + + struct fms_dma *sc_dmas; + + void (*sc_pintr)(void *); + void *sc_parg; + bus_addr_t sc_play_start, sc_play_end, sc_play_nextblk; + int sc_play_blksize; + int sc_play_flip; + u_int16_t sc_play_reg; + + void (*sc_rintr)(void *); + void *sc_rarg; + bus_addr_t sc_rec_start, sc_rec_end, sc_rec_nextblk; + int sc_rec_blksize; + int sc_rec_flip; + u_int16_t sc_rec_reg; +}; + +#endif |