7#ifndef GENSERIAL_MODELINFO_H
8#define GENSERIAL_MODELINFO_H
21 "Inconsistent model data");
24static const char *AppleLegacyLocations[] = {
62#define APPLE_LEGACY_LOCATION_OLDMAX 15
64static const char *AppleLegacyLocationNames[] = {
67 "USA (Fountain, Colorado)",
70 "USA (ElkGrove/Sacramento, California)",
71 "USA (ElkGrove/Sacramento, California)",
73 "Taiwan (Quanta Computer)",
82 "China (Quanta Computer, Tech-Com)",
83 "China (Shenzhen, Foxconn)",
84 "China (Shanghai, Pegatron)",
87 "Czech Republic (Pardubice, Foxconn)",
92 "China (Hon Hai/Foxconn)",
93 "China (Zhengzhou, Foxconn)",
94 "China (Zhengzhou, Foxconn)",
95 "China (Zhengzhou, Foxconn)",
102static const char *AppleLocations[] = {
120static const char *AppleLocationNames[] = {
121 "China (Quanta Computer)",
122 "China (Quanta Computer)",
133 "China (Hon Hai/Foxconn)",
140 "Inconsistent legacy location data");
142 "Inconsistent legacy location data");
145static const char *MLBBlock1[] = {
146 "200",
"600",
"403",
"404",
"405",
"303",
"108",
147 "207",
"609",
"501",
"306",
"102",
"701",
"301",
148 "501",
"101",
"300",
"130",
"100",
"270",
"310",
149 "902",
"104",
"401",
"902",
"500",
"700",
"802"
152static const char *MLBBlock2[] = {
153 "GU",
"4N",
"J9",
"QX",
"OP",
"CD",
"GU"
156static const char *MLBBlock3[] = {
157 "1H",
"1M",
"AD",
"1F",
"A8",
"UE",
"JA",
"JC",
"8C",
"CB",
"FB"
161static int32_t AppleTblBase34[] = {10, 11, 12, 13, 14, 15, 16, 17, 0, 18, 19, 20, 21, 22, 0, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33};
162static const char *AppleBase34Blacklist =
"IO";
163static const char *AppleBase34Reverse =
"0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";
166static int32_t AppleTblYear[] = { 0, 0, 0, 0, 0, 1, 1, 2, 0, 2, 3, 3, 4, 4, 0, 5, 5, 6, 6, 7, 0, 7, 8, 8, 9, 9};
167static const char *AppleYearBlacklist =
"ABEIOU";
168static const char *AppleYearReverse =
"CDFGHJKLMNPQRSTVWXYZ";
171static int32_t AppleTblWeekAdd[] = { 0, 0, 0, 26, 0, 0, 26, 0, 0, 26, 0, 26, 0, 26, 0, 0, 26, 0, 26, 0, 0, 26, 0, 26, 0, 26};
174static int32_t AppleTblWeek[] = { 0, 0, 10, 11, 0, 12, 13, 14, 0, 15, 16, 17, 18, 19, 0, 20, 21, 22, 0, 23, 0, 24, 25, 26, 27, 0};
175static const char *AppleWeekBlacklist =
"ABEIOSUZ";
176static const char *AppleWeekReverse =
"0123456789CDFGHJKLMNPQRTVWX123456789CDFGHJKLMNPQRTVWXY";
181 "Conversion table must cover latin alphabet");
#define ARRAY_SIZE(Array)