mc97_country.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #pragma once
  2. #define TERM_DATA(ohs,act,dct,rz,rt,lim,vol) { \
  3. ((ohs) << 7) | (!!(act) << 5) | ((dct) << 3) | ((rz) << 2) | ((rt) << 0), \
  4. ((lim) << 3) | ((vol) << 5) \
  5. }
  6. static struct {
  7. int cc;
  8. char *name;
  9. uint8_t regs[2];
  10. } country_data[] = {
  11. { 32, "Argentina", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  12. { 36, "Australia", TERM_DATA(1, 1, 1, 0, 0, 0, 0) },
  13. { 40, "Austria", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  14. { 48, "Bahrain", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  15. { 56, "Belgium", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  16. { 76, "Brazil", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  17. { 100, "Bulgaria", TERM_DATA(0, 1, 3, 0, 0, 3, 0) },
  18. { 124, "Canada", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  19. { 152, "Chile", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  20. { 156, "China", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  21. { 170, "Colombia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  22. { 191, "Croatia", TERM_DATA(0, 1, 3, 0, 0, 3, 0) },
  23. { 0, "CTR21", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  24. { 196, "Cyprus", TERM_DATA(0, 1, 3, 0, 0, 3, 0) },
  25. { 203, "Czech Republic",TERM_DATA(0, 1, 3, 0, 0, 3, 0) },
  26. { 208, "Denmark", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  27. { 218, "Ecuador", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  28. { 818, "Egypt", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  29. { 222, "El Salvador", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  30. { 246, "Finland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  31. { 250, "France", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  32. { 276, "Germany", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  33. { 300, "Greece", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  34. { 316, "Guam", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  35. { 344, "Hong Kong", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  36. { 348, "Hungary", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  37. { 352, "Iceland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  38. { 356, "India", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  39. { 360, "Indonesia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  40. { 372, "Ireland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  41. { 376, "Israel", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  42. { 380, "Italy", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  43. { 392, "Japan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  44. { 400, "Jordan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  45. { 398, "Kazakhstan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  46. { 414, "Kuwait", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  47. { 428, "Latvia", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  48. { 422, "Lebanon", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  49. { 442, "Luxembourg", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  50. { 446, "Macao", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  51. { 458, "Malaysia", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  52. { 470, "Malta", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  53. { 484, "Mexico", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  54. { 504, "Morocco", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  55. { 528, "Netherlands", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  56. { 554, "New Zealand", TERM_DATA(0, 1, 2, 0, 0, 0, 0) },
  57. { 566, "Nigeria", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  58. { 578, "Norway", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  59. { 512, "Oman", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  60. { 586, "Pakistan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  61. { 604, "Peru", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  62. { 608, "Philippines", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  63. { 616, "Poland", TERM_DATA(0, 0, 2, 1, 1, 0, 0) },
  64. { 620, "Portugal", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  65. { 642, "Romania", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  66. { 643, "Russia", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  67. { 682, "Saudi Arabia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  68. { 702, "Singapore", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  69. { 703, "Slovakia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  70. { 705, "Slovenia", TERM_DATA(0, 0, 2, 1, 1, 0, 0) },
  71. { 710, "South Africa", TERM_DATA(1, 0, 2, 1, 0, 0, 0) },
  72. { 410, "South Korea", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  73. { 724, "Spain", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  74. { 752, "Sweden", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  75. { 756, "Switzerland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  76. { 760, "Syria", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  77. { 158, "Taiwan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  78. { 764, "Thailand", TERM_DATA(0, 0, 1, 0, 0, 0, 0) },
  79. { 784, "UAE", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  80. { 826, "United Kingdom",TERM_DATA(0, 2, 3, 0, 0, 3, 0) },
  81. { 840, "USA", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  82. { 887, "Yemen", TERM_DATA(0, 0, 2, 0, 0, 0, 0) },
  83. { -1, (void*)0, { 0, 0 } }
  84. };