xref: /netbsd-src/sys/arch/macppc/dev/deqvar.h (revision 72d26a2dda23791b892cf8f1f49376e5de407c78)
1*72d26a2dSrin /*	$NetBSD: deqvar.h,v 1.5 2020/04/16 23:29:52 rin Exp $	*/
219df969aSmacallan 
319df969aSmacallan /*-
419df969aSmacallan  * Copyright (C) 2005 Michael Lorenz
519df969aSmacallan  *
619df969aSmacallan  * Redistribution and use in source and binary forms, with or without
719df969aSmacallan  * modification, are permitted provided that the following conditions
819df969aSmacallan  * are met:
919df969aSmacallan  * 1. Redistributions of source code must retain the above copyright
1019df969aSmacallan  *    notice, this list of conditions and the following disclaimer.
1119df969aSmacallan  * 2. Redistributions in binary form must reproduce the above copyright
1219df969aSmacallan  *    notice, this list of conditions and the following disclaimer in the
1319df969aSmacallan  *    documentation and/or other materials provided with the distribution.
1419df969aSmacallan  * 3. The name of the author may not be used to endorse or promote products
1519df969aSmacallan  *    derived from this software without specific prior written permission.
1619df969aSmacallan  *
1719df969aSmacallan  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1819df969aSmacallan  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1919df969aSmacallan  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2019df969aSmacallan  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2119df969aSmacallan  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2219df969aSmacallan  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2319df969aSmacallan  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2419df969aSmacallan  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2519df969aSmacallan  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2619df969aSmacallan  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2719df969aSmacallan  */
2819df969aSmacallan 
2919df969aSmacallan /*
3019df969aSmacallan  * a dummy device to attach to OF's deq node marking the TAS3004 audio mixer /
3119df969aSmacallan  * equalizer chip, needed by snapper
3219df969aSmacallan  */
3319df969aSmacallan 
3419df969aSmacallan #ifndef DEQVAR_H
3519df969aSmacallan #define DEQVAR_H
3619df969aSmacallan 
37*72d26a2dSrin #include <sys/cdefs.h>
38*72d26a2dSrin __KERNEL_RCSID(0, "$NetBSD: deqvar.h,v 1.5 2020/04/16 23:29:52 rin Exp $");
39*72d26a2dSrin 
4019df969aSmacallan #include <sys/kernel.h>
4119df969aSmacallan #include <sys/device.h>
4219df969aSmacallan #include <dev/i2c/i2cvar.h>
4319df969aSmacallan 
4419df969aSmacallan struct deq_softc {
450a928346Smacallan 	device_t sc_dev;
460a928346Smacallan 	device_t sc_parent;
4719df969aSmacallan 	int sc_node, sc_address;
4819df969aSmacallan 	struct i2c_controller *sc_i2c;
4919df969aSmacallan };
5019df969aSmacallan 
5119df969aSmacallan #endif
52