summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/csavar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pci/csavar.h')
-rw-r--r--sys/dev/sound/pci/csavar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/csavar.h b/sys/dev/sound/pci/csavar.h
index fef2ce8..e2055a4 100644
--- a/sys/dev/sound/pci/csavar.h
+++ b/sys/dev/sound/pci/csavar.h
@@ -28,6 +28,13 @@
#ifndef _CSA_VAR_H
#define _CSA_VAR_H
+struct csa_card {
+ u_int16_t subvendor, subdevice;
+ char *name;
+ void *amp;
+ void *amp_init;
+ int (*active)(int);
+};
/* Resources. */
struct csa_res {
@@ -43,11 +50,13 @@ typedef struct csa_res csa_res;
/* State of the bridge. */
struct csa_bridgeinfo {
u_int32_t hisr; /* The value of HISR on this interrupt. */
+ struct csa_card *card;
};
void csa_clearserialfifos(csa_res *resp);
/* Common functions for csa. */
+struct csa_card *csa_findsubcard(device_t dev);
int csa_readcodec(csa_res *resp, u_long offset, u_int32_t *data);
int csa_writecodec(csa_res *resp, u_long offset, u_int32_t data);
OpenPOWER on IntegriCloud