Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/dev/ic Pull up revisions 1.2-1.3 (requested by skrll):
details: https://anonhg.NetBSD.org/src/rev/eb807b9daa48
branches: netbsd-1-5
changeset: 491612:eb807b9daa48
user: he <he%NetBSD.org@localhost>
date: Thu May 03 20:59:47 2001 +0000
description:
Pull up revisions 1.2-1.3 (requested by skrll):
Add a driver for the ESS Technology Maestro-1/2/2E AC97 audio chips,
ES1968 and ES1978.
diffstat:
sys/dev/ic/ac97var.h | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 01b0117e2802 -r eb807b9daa48 sys/dev/ic/ac97var.h
--- a/sys/dev/ic/ac97var.h Thu May 03 20:59:27 2001 +0000
+++ b/sys/dev/ic/ac97var.h Thu May 03 20:59:47 2001 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: ac97var.h,v 1.1 2000/05/15 01:27:45 thorpej Exp $ */
-/* $OpenBSD: ac97.h,v 1.1 1999/09/19 06:45:12 csapuntz Exp $ */
+/* $NetBSD: ac97var.h,v 1.1.4.1 2001/05/03 20:59:47 he Exp $ */
+/* $OpenBSD: ac97.h,v 1.4 2000/07/19 09:01:35 csapuntz Exp $ */
/*
* Copyright (c) 1999 Constantine Sapuntzakis
@@ -40,6 +40,13 @@
int (*read)(void *arg, u_int8_t reg, u_int16_t *val);
int (*write)(void *arg, u_int8_t reg, u_int16_t val);
void (*reset)(void *arg);
+
+ enum ac97_host_flags {
+ AC97_HOST_DONT_READ = 0x1,
+ AC97_HOST_SWAPPED_CHANNELS = 0x2, /* l/r is reversed */
+ };
+
+ enum ac97_host_flags (*flags)(void *arg);
};
/*
@@ -52,6 +59,12 @@
int (*get_portnum_by_name)(struct ac97_codec_if *addr,
char *class, char *device,
char *qualifier);
+ /*
+ * The AC97 codec driver records the various port settings. This
+ * function can be used to restore the port settings, e.g. after
+ * resume from a laptop suspend to disk.
+ */
+ void (*restore_ports)(struct ac97_codec_if *addr);
};
struct ac97_codec_if {
Home |
Main Index |
Thread Index |
Old Index