Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
[pandora-kernel.git] / sound / oss / iwmem.h
1 /*
2  * sound/oss/iwmem.h
3  *
4  * DRAM size encoding table for AMD Interwave chip.
5  */
6 /*
7  * Copyright (C) by Hannu Savolainen 1993-1997
8  *
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.
12  *
13  * Changes:
14  * Bartlomiej Zolnierkiewicz    : added __initdata to mem_decode
15  */
16
17
18 #define K 1024
19 #define M (1024*K)
20 static int mem_decode[][4] __initdata =
21 {
22 /*      Bank0   Bank1   Bank2   Bank3   Encoding bits   */
23         {256*K, 0,      0,      0},             /*  0 */
24         {256*K, 256*K,  0,      0},             /*  1 */
25         {256*K, 256*K,  256*K,  256*K},         /*  2 */
26         {256*K, 1*M,    0,      0},             /*  3 */
27         {256*K, 1*M,    1*M,    1*M},           /*  4 */
28         {256*K, 256*K,  1*M,    0},             /*  5 */
29         {256*K, 256*K,  1*M,    1*M},           /*  6 */
30         {1*M,   0,      0,      0},             /*  7 */
31         {1*M,   1*M,    0,      0},             /*  8 */
32         {1*M,   1*M,    1*M,    1*M},           /*  9 */
33         {4*M,   0,      0,      0},             /* 10 */
34         {4*M,   4*M,    0,      0},             /* 11 */
35         {4*M,   4*M,    4*M,    4*M}            /* 12 */
36 };