/*
* 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.
*/
/*
* Purpose: Definitions for the via8233 driver
*/
/*
* This file is part of Open Sound System
*
* Copyright (C) 4Front Technologies 1996-2008.
*
* This software is released under CDDL 1.0 source license.
* See the COPYING file included in the main directory of this source
* distribution for the license terms and conditions.
*/
#ifndef AUDIOVIA823X_H
#define AUDIOVIA823X_H
/* pci configuration registers */
#define AUVIA_REC_SGD_NUM 0
/* REG_CODEC */
/* registers that are offsets relative to a port */
/* bits for above offsets */
typedef struct {
unsigned int phaddr;
unsigned int flags;
} SGD_entry;
struct auvia_portc {
int nchan;
int syncdir;
unsigned nframes;
unsigned pos;
/* helper functions */
};
struct auvia_devc {
char *chip_name;
int chip_type;
#define CHIP_8233 0
/* registers */
};
#endif /* AUDIOVIA823X_H */