* better
[mascara-docs.git] / i386 / linux-2.3.21 / drivers / sound / iwmem.h
blobb96d5ed1b22ec04eaa35bfa029cb5815015e62e6
1 /*
2 * sound/iwmem.c
4 * DRAM size encoding table for AMD Interwave chip.
5 */
6 /*
7 * Copyright (C) by Hannu Savolainen 1993-1997
9 * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
10 * Version 2 (June 1991). See the "COPYING" file distributed with this software
11 * for more info.
15 #define K 1024
16 #define M (1024*K)
17 static int mem_decode[][4] =
19 /* Bank0 Bank1 Bank2 Bank3 Encoding bits */
20 {256*K, 0, 0, 0}, /* 0 */
21 {256*K, 256*K, 0, 0}, /* 1 */
22 {256*K, 256*K, 256*K, 256*K}, /* 2 */
23 {256*K, 1*M, 0, 0}, /* 3 */
24 {256*K, 1*M, 1*M, 1*M}, /* 4 */
25 {256*K, 256*K, 1*M, 0}, /* 5 */
26 {256*K, 256*K, 1*M, 1*M}, /* 6 */
27 {1*M, 0, 0, 0}, /* 7 */
28 {1*M, 1*M, 0, 0}, /* 8 */
29 {1*M, 1*M, 1*M, 1*M}, /* 9 */
30 {4*M, 0, 0, 0}, /* 10 */
31 {4*M, 4*M, 0, 0}, /* 11 */
32 {4*M, 4*M, 4*M, 4*M} /* 12 */