Home | History | Annotate | Line # | Download | only in dev
      1  1.4       rin /*	$NetBSD: deqvar.h,v 1.5 2020/04/16 23:29:52 rin Exp $	*/
      2  1.1  macallan 
      3  1.1  macallan /*-
      4  1.1  macallan  * Copyright (C) 2005 Michael Lorenz
      5  1.1  macallan  *
      6  1.1  macallan  * Redistribution and use in source and binary forms, with or without
      7  1.1  macallan  * modification, are permitted provided that the following conditions
      8  1.1  macallan  * are met:
      9  1.1  macallan  * 1. Redistributions of source code must retain the above copyright
     10  1.1  macallan  *    notice, this list of conditions and the following disclaimer.
     11  1.1  macallan  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  macallan  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  macallan  *    documentation and/or other materials provided with the distribution.
     14  1.1  macallan  * 3. The name of the author may not be used to endorse or promote products
     15  1.1  macallan  *    derived from this software without specific prior written permission.
     16  1.1  macallan  *
     17  1.1  macallan  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18  1.1  macallan  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19  1.1  macallan  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20  1.1  macallan  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21  1.1  macallan  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22  1.1  macallan  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23  1.1  macallan  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24  1.1  macallan  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25  1.1  macallan  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26  1.1  macallan  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  1.1  macallan  */
     28  1.1  macallan 
     29  1.1  macallan /*
     30  1.1  macallan  * a dummy device to attach to OF's deq node marking the TAS3004 audio mixer /
     31  1.1  macallan  * equalizer chip, needed by snapper
     32  1.1  macallan  */
     33  1.1  macallan 
     34  1.1  macallan #ifndef DEQVAR_H
     35  1.1  macallan #define DEQVAR_H
     36  1.1  macallan 
     37  1.5       rin #include <sys/cdefs.h>
     38  1.5       rin __KERNEL_RCSID(0, "$NetBSD: deqvar.h,v 1.5 2020/04/16 23:29:52 rin Exp $");
     39  1.5       rin 
     40  1.1  macallan #include <sys/kernel.h>
     41  1.1  macallan #include <sys/device.h>
     42  1.1  macallan #include <dev/i2c/i2cvar.h>
     43  1.1  macallan 
     44  1.1  macallan struct deq_softc {
     45  1.3  macallan 	device_t sc_dev;
     46  1.3  macallan 	device_t sc_parent;
     47  1.1  macallan 	int sc_node, sc_address;
     48  1.1  macallan 	struct i2c_controller *sc_i2c;
     49  1.1  macallan };
     50  1.1  macallan 
     51  1.1  macallan #endif
     52