summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-11-22 04:27:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-11-22 04:27:15 +0000
commitf44707cd2cf5b51fff737c6bb3c5fc6910143a15 (patch)
treee2d80a5308c89c74e4d4908bf3e5a9475976a0ed
parent3538eb7519b53b10e27568be043874a38008c4f1 (diff)
struct for neomagic firmware file
-rw-r--r--sys/dev/pci/neoreg.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/pci/neoreg.h b/sys/dev/pci/neoreg.h
index 7a974c0efe9..d9772a079dc 100644
--- a/sys/dev/pci/neoreg.h
+++ b/sys/dev/pci/neoreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: neoreg.h,v 1.1 2000/04/13 00:10:52 csapuntz Exp $ */
+/* $OpenBSD: neoreg.h,v 1.2 2004/11/22 04:27:14 deraadt Exp $ */
/*
* Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
@@ -112,5 +112,14 @@
#define NM_PBUFFER_WMARK (NM_PLAYBACK_REG_OFFSET + 0xc)
#define NM_PBUFFER_CURRP (NM_PLAYBACK_REG_OFFSET + 0x8)
+#define NM_TOTAL_COEFF_COUNT 0x3158
+
+#define NM_COEFF_SIZES 2*8
+
+struct neo_firmware {
+ const u_int16_t coefficientSizes[NM_COEFF_SIZES];
+ const char coefficients[NM_TOTAL_COEFF_COUNT*4];
+};
+
#endif