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