smc-mca.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * djweis weisd3458@uni.edu
  3. * most of this file was taken from ps2esdi.h
  4. */
  5. struct {
  6. unsigned int base_addr;
  7. } addr_table[] = {
  8. { 0x0800 },
  9. { 0x1800 },
  10. { 0x2800 },
  11. { 0x3800 },
  12. { 0x4800 },
  13. { 0x5800 },
  14. { 0x6800 },
  15. { 0x7800 },
  16. { 0x8800 },
  17. { 0x9800 },
  18. { 0xa800 },
  19. { 0xb800 },
  20. { 0xc800 },
  21. { 0xd800 },
  22. { 0xe800 },
  23. { 0xf800 }
  24. };
  25. #define MEM_MASK 64
  26. struct {
  27. unsigned char mem_index;
  28. unsigned long mem_start;
  29. unsigned char num_pages;
  30. } mem_table[] = {
  31. { 16, 0x0c0000, 40 },
  32. { 18, 0x0c4000, 40 },
  33. { 20, 0x0c8000, 40 },
  34. { 22, 0x0cc000, 40 },
  35. { 24, 0x0d0000, 40 },
  36. { 26, 0x0d4000, 40 },
  37. { 28, 0x0d8000, 40 },
  38. { 30, 0x0dc000, 40 },
  39. {144, 0xfc0000, 40 },
  40. {148, 0xfc8000, 40 },
  41. {154, 0xfd0000, 40 },
  42. {156, 0xfd8000, 40 },
  43. { 0, 0x0c0000, 20 },
  44. { 1, 0x0c2000, 20 },
  45. { 2, 0x0c4000, 20 },
  46. { 3, 0x0c6000, 20 }
  47. };
  48. #define IRQ_MASK 243
  49. struct {
  50. unsigned char new_irq;
  51. unsigned char old_irq;
  52. } irq_table[] = {
  53. { 3, 3 },
  54. { 4, 4 },
  55. { 10, 10 },
  56. { 14, 15 }
  57. };