diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-02-20 16:45:29 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-02-20 16:45:29 +0000 |
commit | 58b653139bc72f8a79d8f7ef5e719681a84e10c6 (patch) | |
tree | 6aa0ef6284678b93946d6325539f5732ab3e5ae0 /sys/dev/pci/envyreg.h | |
parent | 23daeb00a48c6987fb72d950455a8f9ada914c1d (diff) |
Add necessary bits to support AC97 codecs in envy and add support
for the VIA Tremor 5.1 card.
From Alexandr Shadchin <alexandr.shadchin at gmail.com>, thanks!
help from oga@
Diffstat (limited to 'sys/dev/pci/envyreg.h')
-rw-r--r-- | sys/dev/pci/envyreg.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/envyreg.h b/sys/dev/pci/envyreg.h index 02ce615cc7a..427bd853eb3 100644 --- a/sys/dev/pci/envyreg.h +++ b/sys/dev/pci/envyreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: envyreg.h,v 1.11 2009/11/02 05:54:16 ratchov Exp $ */ +/* $OpenBSD: envyreg.h,v 1.12 2010/02/20 16:45:28 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -107,6 +107,14 @@ #define ENVY_MT_IMASK 3 /* HT only */ #define ENVY_MT_IMASK_PDMA0 0x1 #define ENVY_MT_IMASK_RDMA0 0x2 +#define ENVY_MT_AC97_IDX 4 +#define ENVY_MT_AC97_CMD 5 +#define ENVY_MT_AC97_READY 0x08 +#define ENVY_MT_AC97_CMD_MASK 0x30 +#define ENVY_MT_AC97_CMD_RD 0x10 +#define ENVY_MT_AC97_CMD_WR 0x20 +#define ENVY_MT_AC97_CMD_RST 0x80 +#define ENVY_MT_AC97_DATA 6 #define ENVY_MT_PADDR 0x10 #define ENVY_MT_PBUFSZ 0x14 #define ENVY_MT_PBLKSZ(s) ((s)->isht ? 0x1c : 0x16) |