summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ac97.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-05-21 08:42:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-05-21 08:42:04 +0000
commit5938ec6110870be34ad9da014404193d8903099d (patch)
tree66dc054ee4fcec77ef5b02062a85ccca29b5d57e /sys/dev/ic/ac97.h
parent2d5a896e21afb2779a3d2aa025eeb40c0a338170 (diff)
Move enum definitions to global scope. Local scope is meaningless, and
interferes with C99's anonymous stuff. ok millert@
Diffstat (limited to 'sys/dev/ic/ac97.h')
-rw-r--r--sys/dev/ic/ac97.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/ic/ac97.h b/sys/dev/ic/ac97.h
index b7de3048098..f4630678f1e 100644
--- a/sys/dev/ic/ac97.h
+++ b/sys/dev/ic/ac97.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.h,v 1.12 2002/04/08 01:43:13 frantzen Exp $ */
+/* $OpenBSD: ac97.h,v 1.13 2002/05/21 08:42:03 espie Exp $ */
/*
* Copyright (c) 1999 Constantine Sapuntzakis
@@ -32,6 +32,12 @@ struct ac97_codec_if;
/*
* This is the interface used to attach the AC97 compliant CODEC.
*/
+enum ac97_host_flags {
+ AC97_HOST_DONT_READ = 0x1,
+ AC97_HOST_DONT_READANY = 0x2,
+ AC97_HOST_SWAPPED_CHANNELS = 0x4
+};
+
struct ac97_host_if {
void *arg;
@@ -40,12 +46,6 @@ struct ac97_host_if {
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_DONT_READANY = 0x2,
- AC97_HOST_SWAPPED_CHANNELS = 0x4
- };
-
enum ac97_host_flags (*flags)(void *arg);
};