iwmem.h 934 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * sound/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. #define K 1024
  17. #define M (1024*K)
  18. static int mem_decode[][4] __initdata =
  19. {
  20. /* Bank0 Bank1 Bank2 Bank3 Encoding bits */
  21. {256*K, 0, 0, 0}, /* 0 */
  22. {256*K, 256*K, 0, 0}, /* 1 */
  23. {256*K, 256*K, 256*K, 256*K}, /* 2 */
  24. {256*K, 1*M, 0, 0}, /* 3 */
  25. {256*K, 1*M, 1*M, 1*M}, /* 4 */
  26. {256*K, 256*K, 1*M, 0}, /* 5 */
  27. {256*K, 256*K, 1*M, 1*M}, /* 6 */
  28. {1*M, 0, 0, 0}, /* 7 */
  29. {1*M, 1*M, 0, 0}, /* 8 */
  30. {1*M, 1*M, 1*M, 1*M}, /* 9 */
  31. {4*M, 0, 0, 0}, /* 10 */
  32. {4*M, 4*M, 0, 0}, /* 11 */
  33. {4*M, 4*M, 4*M, 4*M} /* 12 */
  34. };