summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ac97.h
diff options
context:
space:
mode:
authorDamien Couderc <couderc@cvs.openbsd.org>2003-07-15 13:20:32 +0000
committerDamien Couderc <couderc@cvs.openbsd.org>2003-07-15 13:20:32 +0000
commit87a39e559ebe9525c40b6ba0151137062faeade8 (patch)
treeb723365c5497dd9f2c84e760de7f845cc99bcda8 /sys/dev/ic/ac97.h
parenta29304ce87a166f1999c49c4275dec2c309bcc0d (diff)
Add support for AD1985, deraadt@ ok
Diffstat (limited to 'sys/dev/ic/ac97.h')
-rw-r--r--sys/dev/ic/ac97.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/ic/ac97.h b/sys/dev/ic/ac97.h
index 0bfaf790e58..a2e88960b62 100644
--- a/sys/dev/ic/ac97.h
+++ b/sys/dev/ic/ac97.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.h,v 1.14 2002/07/28 06:27:07 fgsch Exp $ */
+/* $OpenBSD: ac97.h,v 1.15 2003/07/15 13:20:31 couderc Exp $ */
/*
* Copyright (c) 1999 Constantine Sapuntzakis
@@ -153,3 +153,14 @@ int ac97_set_rate(struct ac97_codec_if *, struct audio_params *, int);
#define AC97_REG_VENDOR_ID2 0x7e
#define AC97_VENDOR_ID_MASK 0xffffff00
+/* Analog Devices codec specific data */
+#define AC97_AD_REG_MISC 0x76
+#define AC97_AD_MISC_MBG 0x0001 /* 0 */
+#define AC97_AD_MISC_VREFD 0x0002 /* 1 */
+#define AC97_AD_MISC_VREFH 0x0004 /* 2 */
+#define AC97_AD_MISC_MADST 0x0008 /* 3 */
+#define AC97_AD_MISC_MADPD 0x0020 /* 5 */
+#define AC97_AD_MISC_FMXE 0x0100 /* 8 */
+#define AC97_AD_MISC_DAM 0x0400 /*10 */
+#define AC97_AD_MISC_MSPLT 0x1000 /*12 */
+#define AC97_AD_MISC_DACZ 0x4000 /*14 */