/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _AUDIOTS_H
#define _AUDIOTS_H
/*
* Header file for the audiots device driver.
*/
/*
* Values returned by the AUDIO_GETDEV ioctl()
*/
/*
* Driver supported configuration information
*/
/*
* Misc. defines
*/
#define TS_OUTPUT_PORT (0)
/* ALI Hacks */
/* These are the devices we know about */
/*
* audiots_aram_t - ARAM registers
*/
struct audiots_aram {
};
/* aram_cso_alpha_fms register defines */
/* aram_cptr_lba register defines */
/*
* audiots_eram_t - ERAM registers
*/
struct audiots_eram {
};
/* eram_ctrl_ec register defines */
/* eram_gvsel_pan_vol register defines */
/* eram_ebuf register defines */
/*
* audiots_processor_t - Audio Processor registers via I/O space
*
* Previous SB chip revs had a seperate write register at AudioBase +40, and
* a read register at AudioBase +44.
*
*/
struct audiots_processor {
};
/* ap_acwr_reg register defines (40h - 41h) */
/* ap_acrd_reg register defines (44h - 45h) */
/* ap_sctrl register defines (48h - 4bh) */
/* ap_acgpio resister defines (4ch - 4fh) */
/* ap_asr0 resgister defines (50h - 53h) */
/* ap_asr4_5_6 register defines (5ch - 5fh) */
/* ap_ain register defines (98h - 9bh) */
/* ap_eain register defines (9ch - 9fh) */
/* ap_cir_gc register defines (a0h - a3h) */
/* ap_ainten register defines (a4h - a7h) */
/* ap_volume regsiter defines (a8h - abh) */
#define AP_VOLUME_WAVE_LEFT_SHIFT 0
/* ap_miscint register defines (b0h - b3h) */
/* ap_lfo_i2s_delta register defines (cch - cfh) */
/* ap_global_control register defines (d4h - d7h) */
/*
* audiots_regs_t - Audio processor registers via memory space.
*/
struct audiots_regs {
struct {
struct {
};
/*
* audiots_save_regs_t - Saved audio controller registers.
*/
struct audiots_port {
int tp_num;
int tp_dma_stream;
unsigned tp_nframes;
unsigned tp_rate;
unsigned tp_sync_dir;
/* counting cso */
};
/*
* audiots_state_t - per instance state and operation data
*/
struct audiots_state {
/* hardware engines */
};
/* audiots_state.ts_flags defines */
/* has stopped working */
/* console with AC97 failure */
/* messages */
/*
* Read and write the AC-97 Codec's registers
*/
/*
* Useful bit twiddlers
*/
#endif /* _AUDIOTS_H */