Home | History | Annotate | Line # | Download | only in pci
cs428xreg.h revision 1.3
      1  1.3      kent /*	$NetBSD: cs428xreg.h,v 1.3 2005/01/15 15:19:52 kent Exp $	*/
      2  1.1  augustss 
      3  1.1  augustss /*
      4  1.1  augustss  * Copyright (c) 2000 Tatoku Ogaito.  All rights reserved.
      5  1.1  augustss  *
      6  1.1  augustss  * Redistribution and use in source and binary forms, with or without
      7  1.1  augustss  * modification, are permitted provided that the following conditions
      8  1.1  augustss  * are met:
      9  1.1  augustss  * 1. Redistributions of source code must retain the above copyright
     10  1.1  augustss  *    notice, this list of conditions and the following disclaimer.
     11  1.1  augustss  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  augustss  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  augustss  *    documentation and/or other materials provided with the distribution.
     14  1.1  augustss  * 3. All advertising materials mentioning features or use of this software
     15  1.1  augustss  *    must display the following acknowledgement:
     16  1.1  augustss  *      This product includes software developed by Tatoku Ogaito
     17  1.1  augustss  *	for the NetBSD Project.
     18  1.1  augustss  * 4. The name of the author may not be used to endorse or promote products
     19  1.1  augustss  *    derived from this software without specific prior written permission
     20  1.1  augustss  *
     21  1.1  augustss  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     22  1.1  augustss  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23  1.1  augustss  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     24  1.1  augustss  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     25  1.1  augustss  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     26  1.1  augustss  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     27  1.1  augustss  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     28  1.1  augustss  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     29  1.1  augustss  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     30  1.1  augustss  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31  1.1  augustss  */
     32  1.1  augustss #ifndef _CS428X_REG_H_
     33  1.1  augustss #define _CS428X_REG_H_
     34  1.3      kent #define CS428X_ACCTL   0x460	/* AC97 Control Register */
     35  1.3      kent #define	 ACCTL_RSTN	   0x00000001 /* Only for CS4280 */
     36  1.3      kent #define	 ACCTL_ESYN	   0x00000002
     37  1.3      kent #define	 ACCTL_VFRM	   0x00000004
     38  1.3      kent #define	 ACCTL_DCV	   0x00000008
     39  1.3      kent #define	 ACCTL_CRW	   0x00000010
     40  1.3      kent #define	 ACCTL_ASYN	   0x00000020 /* Only for CS4280 */
     41  1.3      kent #define	 ACCTL_TC	   0x00000040
     42  1.3      kent 
     43  1.3      kent #define CS428X_ACSTS   0x464	/* AC97 Status Register */
     44  1.3      kent #define	 ACSTS_CRDY	   0x00000001
     45  1.3      kent #define	 ACSTS_VSTS	   0x00000002
     46  1.1  augustss 
     47  1.1  augustss #define CS428X_ACOSV   0x468	/* AC97 Output Slot Valid Register */
     48  1.3      kent #define	 ACOSV_SLV3	   0x00000001
     49  1.3      kent #define	 ACOSV_SLV4	   0x00000002
     50  1.3      kent #define	 ACOSV_SLV5	   0x00000004
     51  1.3      kent #define	 ACOSV_SLV6	   0x00000008
     52  1.3      kent #define	 ACOSV_SLV7	   0x00000010
     53  1.3      kent #define	 ACOSV_SLV8	   0x00000020
     54  1.3      kent #define	 ACOSV_SLV9	   0x00000040
     55  1.3      kent #define	 ACOSV_SLV10	   0x00000080
     56  1.3      kent #define	 ACOSV_SLV11	   0x00000100
     57  1.3      kent #define	 ACOSV_SLV12	   0x00000200
     58  1.1  augustss 
     59  1.1  augustss #define CS428X_ACCAD   0x46c	/* AC97 Command Address Register */
     60  1.1  augustss #define CS428X_ACCDA   0x470	/* AC97 Command Data Register */
     61  1.1  augustss 
     62  1.1  augustss #define CS428X_ACISV   0x474	/* AC97 Input Slot Valid Register */
     63  1.3      kent #define	 ACISV_ISV3	   0x00000001
     64  1.3      kent #define	 ACISV_ISV4	   0x00000002
     65  1.3      kent #define	 ACISV_ISV5	   0x00000004
     66  1.3      kent #define	 ACISV_ISV6	   0x00000008
     67  1.3      kent #define	 ACISV_ISV7	   0x00000010
     68  1.3      kent #define	 ACISV_ISV8	   0x00000020
     69  1.3      kent #define	 ACISV_ISV9	   0x00000040
     70  1.3      kent #define	 ACISV_ISV10	   0x00000080
     71  1.3      kent #define	 ACISV_ISV11	   0x00000100
     72  1.3      kent #define	 ACISV_ISV12	   0x00000200
     73  1.1  augustss #define CS428X_ACSAD   0x478	/* AC97 Status Address Register */
     74  1.1  augustss #define CS428X_ACSDA   0x47c	/* AC97 Status Data Register */
     75  1.1  augustss 
     76  1.1  augustss #endif /* _CS428X_REG_H_ */
     77