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