summaryrefslogtreecommitdiff
path: root/sys/dev/pci/envyvar.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-02-20 16:45:29 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-02-20 16:45:29 +0000
commit58b653139bc72f8a79d8f7ef5e719681a84e10c6 (patch)
tree6aa0ef6284678b93946d6325539f5732ab3e5ae0 /sys/dev/pci/envyvar.h
parent23daeb00a48c6987fb72d950455a8f9ada914c1d (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/envyvar.h')
-rw-r--r--sys/dev/pci/envyvar.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/envyvar.h b/sys/dev/pci/envyvar.h
index ed23eb70a02..ecd9fe1a013 100644
--- a/sys/dev/pci/envyvar.h
+++ b/sys/dev/pci/envyvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: envyvar.h,v 1.12 2009/05/08 16:53:45 ratchov Exp $ */
+/* $OpenBSD: envyvar.h,v 1.13 2010/02/20 16:45:28 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -55,6 +55,7 @@ struct envy_softc {
struct device dev;
struct device *audio;
int isht; /* is a Envy24HT ? */
+ int isac97; /* is a Envy24HT AC97 ? */
struct envy_buf ibuf, obuf;
pcitag_t pci_tag;
pci_chipset_tag_t pci_pc;
@@ -70,6 +71,9 @@ struct envy_softc {
unsigned char shadow[4][16];
#define ENVY_EEPROM_MAXSZ 32
unsigned char eeprom[ENVY_EEPROM_MAXSZ];
+ struct ac97_codec_if *codec_if;
+ struct ac97_host_if host_if;
+ enum ac97_host_flags codec_flags;
void (*iintr)(void *);
void *iarg;
void (*ointr)(void *);