65fea56f17cd614bc8908264df980a62e1931468vboxsync/*************************************************************************************
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Copyright (C) 2005 Bogdan D. bogdand@users.sourceforge.net
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Permission is hereby granted, free of charge, to any person obtaining a copy of this
65fea56f17cd614bc8908264df980a62e1931468vboxsync * software and associated documentation files (the "Software"), to deal in the Software
65fea56f17cd614bc8908264df980a62e1931468vboxsync * without restriction, including without limitation the rights to use, copy, modify,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * merge, publish, distribute, sublicense, and/or sell copies of the Software,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * The above copyright notice and this permission notice shall be included in all copies or
65fea56f17cd614bc8908264df980a62e1931468vboxsync * substantial portions of the Software.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
65fea56f17cd614bc8908264df980a62e1931468vboxsync * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Except as contained in this notice, the name of the author shall not be used in advertising or
65fea56f17cd614bc8908264df980a62e1931468vboxsync * otherwise to promote the sale, use or other dealings in this Software without prior written
65fea56f17cd614bc8908264df980a62e1931468vboxsync * authorization from the author.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Revision 1.3 2005/09/24 21:56:00 bogdand
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Changed the license to a X/MIT one
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Revision 1.2 2005/07/01 22:43:11 daniels
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Change all misc.h and os.h references to <X11/foo.h>.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync ************************************************************************************/
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#ifndef __UDA1380_H__
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define __UDA1380_H__
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "xf86i2c.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct {
65fea56f17cd614bc8908264df980a62e1931468vboxsync I2CDevRec d;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync CARD16 analog_mixer_settings; /* register 0x03 */
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync} UDA1380Rec, *UDA1380Ptr;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define UDA1380_ADDR_1 0x30
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define UDA1380_ADDR_2 0x34
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_Detect_uda1380 Detect_uda1380
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT UDA1380Ptr Detect_uda1380(I2CBusPtr b, I2CSlaveAddr addr);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_init uda1380_init
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT Bool uda1380_init(UDA1380Ptr t);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_shutdown uda1380_shutdown
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_shutdown(UDA1380Ptr t);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_setvolume uda1380_setvolume
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_setvolume(UDA1380Ptr t, INT32);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_mute uda1380_mute
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_mute(UDA1380Ptr t, Bool);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_setparameters uda1380_setparameters
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_setparameters(UDA1380Ptr t);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_getstatus uda1380_getstatus
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_getstatus(UDA1380Ptr t);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define xf86_uda1380_dumpstatus uda1380_dumpstatus
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void uda1380_dumpstatus(UDA1380Ptr t);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define UDA1380SymbolsList \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "Detect_uda1380", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_init", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_shutdown", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_setvolume", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_mute", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_setparameters", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_getstatus", \
65fea56f17cd614bc8908264df980a62e1931468vboxsync "uda1380_dumpstatus"
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif