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