summaryrefslogtreecommitdiff
path: root/sound/oss/iwmem.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:20:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:20:36 -0700
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /sound/oss/iwmem.h
downloadlinux-3.10-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.tar.gz
linux-3.10-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.tar.bz2
linux-3.10-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.zip
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'sound/oss/iwmem.h')
-rw-r--r--sound/oss/iwmem.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/sound/oss/iwmem.h b/sound/oss/iwmem.h
new file mode 100644
index 00000000000..84745fbcabc
--- /dev/null
+++ b/sound/oss/iwmem.h
@@ -0,0 +1,36 @@
+/*
+ * sound/iwmem.h
+ *
+ * DRAM size encoding table for AMD Interwave chip.
+ */
+/*
+ * Copyright (C) by Hannu Savolainen 1993-1997
+ *
+ * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
+ * Version 2 (June 1991). See the "COPYING" file distributed with this software
+ * for more info.
+ *
+ * Changes:
+ * Bartlomiej Zolnierkiewicz : added __initdata to mem_decode
+ */
+
+
+#define K 1024
+#define M (1024*K)
+static int mem_decode[][4] __initdata =
+{
+/* Bank0 Bank1 Bank2 Bank3 Encoding bits */
+ {256*K, 0, 0, 0}, /* 0 */
+ {256*K, 256*K, 0, 0}, /* 1 */
+ {256*K, 256*K, 256*K, 256*K}, /* 2 */
+ {256*K, 1*M, 0, 0}, /* 3 */
+ {256*K, 1*M, 1*M, 1*M}, /* 4 */
+ {256*K, 256*K, 1*M, 0}, /* 5 */
+ {256*K, 256*K, 1*M, 1*M}, /* 6 */
+ {1*M, 0, 0, 0}, /* 7 */
+ {1*M, 1*M, 0, 0}, /* 8 */
+ {1*M, 1*M, 1*M, 1*M}, /* 9 */
+ {4*M, 0, 0, 0}, /* 10 */
+ {4*M, 4*M, 0, 0}, /* 11 */
+ {4*M, 4*M, 4*M, 4*M} /* 12 */
+};