#pragma once #define TERM_DATA(ohs,act,dct,rz,rt,lim,vol) { \ ((ohs) << 7) | (!!(act) << 5) | ((dct) << 3) | ((rz) << 2) | ((rt) << 0), \ ((lim) << 3) | ((vol) << 5) \ } static struct { int cc; char *name; uint8_t regs[2]; } country_data[] = { { 32, "Argentina", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 36, "Australia", TERM_DATA(1, 1, 1, 0, 0, 0, 0) }, { 40, "Austria", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 48, "Bahrain", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 56, "Belgium", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 76, "Brazil", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 100, "Bulgaria", TERM_DATA(0, 1, 3, 0, 0, 3, 0) }, { 124, "Canada", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 152, "Chile", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 156, "China", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 170, "Colombia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 191, "Croatia", TERM_DATA(0, 1, 3, 0, 0, 3, 0) }, { 0, "CTR21", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 196, "Cyprus", TERM_DATA(0, 1, 3, 0, 0, 3, 0) }, { 203, "Czech Republic",TERM_DATA(0, 1, 3, 0, 0, 3, 0) }, { 208, "Denmark", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 218, "Ecuador", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 818, "Egypt", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 222, "El Salvador", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 246, "Finland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 250, "France", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 276, "Germany", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 300, "Greece", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 316, "Guam", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 344, "Hong Kong", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 348, "Hungary", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 352, "Iceland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 356, "India", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 360, "Indonesia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 372, "Ireland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 376, "Israel", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 380, "Italy", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 392, "Japan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 400, "Jordan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 398, "Kazakhstan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 414, "Kuwait", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 428, "Latvia", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 422, "Lebanon", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 442, "Luxembourg", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 446, "Macao", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 458, "Malaysia", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 470, "Malta", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 484, "Mexico", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 504, "Morocco", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 528, "Netherlands", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 554, "New Zealand", TERM_DATA(0, 1, 2, 0, 0, 0, 0) }, { 566, "Nigeria", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 578, "Norway", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 512, "Oman", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 586, "Pakistan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 604, "Peru", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 608, "Philippines", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 616, "Poland", TERM_DATA(0, 0, 2, 1, 1, 0, 0) }, { 620, "Portugal", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 642, "Romania", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 643, "Russia", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 682, "Saudi Arabia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 702, "Singapore", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 703, "Slovakia", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 705, "Slovenia", TERM_DATA(0, 0, 2, 1, 1, 0, 0) }, { 710, "South Africa", TERM_DATA(1, 0, 2, 1, 0, 0, 0) }, { 410, "South Korea", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 724, "Spain", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 752, "Sweden", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 756, "Switzerland", TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 760, "Syria", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 158, "Taiwan", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 764, "Thailand", TERM_DATA(0, 0, 1, 0, 0, 0, 0) }, { 784, "UAE", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 826, "United Kingdom",TERM_DATA(0, 2, 3, 0, 0, 3, 0) }, { 840, "USA", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { 887, "Yemen", TERM_DATA(0, 0, 2, 0, 0, 0, 0) }, { -1, (void*)0, { 0, 0 } } };