📄 mdevtbl_rel.c
字号:
getArtAniFalseDetectsAr5212,
setArtAniFalseDetectIntervalAr5212,
programCurrArtAniLevelAr5212
};
ANALOG_REV sombreroRevs[] = {
{1, 0x5},
{1, 0x6},
{1, 0x7}
};
const A_UINT16 numSombreroRevs = sizeof(sombreroRevs)/sizeof(ANALOG_REV);
#endif //__ATH_DJGPPDOS__
ANALOG_REV derby1_2Revs[] = {
{3, 0x3},
{3, 0x4}
};
const A_UINT16 numderby1_2Revs = sizeof(derby1_2Revs)/sizeof(ANALOG_REV);
ANALOG_REV derby2Revs[] = {
{3, 0x5},
{4, 0x5},
};
const A_UINT16 numderby2Revs = sizeof(derby2Revs)/sizeof(ANALOG_REV);
ANALOG_REV derby2_1Revs[] = {
{3, 0x6},
{4, 0x6},
{0, 0} // dummy to handle AP31 with no 5G derby
};
const A_UINT16 numderby2_1Revs = sizeof(derby2_1Revs)/sizeof(ANALOG_REV);
A_UINT16 veniceRevs[] = {
0x50, 0x51, 0x53, 0x56
};
const A_UINT16 numVeniceRevs = sizeof(veniceRevs)/sizeof(A_UINT16);
A_UINT16 hainanRevs[] = {
0x55,
0x59
};
const A_UINT16 numHainanRevs = sizeof(hainanRevs)/sizeof(A_UINT16);
#ifndef __ATH_DJGPPDOS__
DEVICE_INIT_DATA ar5kInitData[] = {
{0x0012, NULL, 0, NULL, 0, 0x0012, //Identifiers
boss_0012, sizeof(boss_0012)/sizeof(ATHEROS_REG_FILE), //register file
&maui2API, &sombrero_beanieAPI, &veniceArtAniAPI, //APIs
2, boss_0012_mode, sizeof(boss_0012_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0012 }, //configuraton string
{0xff12, NULL, 0, NULL, 0, 0x0012, //Identifiers
boss_0012, sizeof(boss_0012)/sizeof(ATHEROS_REG_FILE), //Register file
&maui2API, &sombrero_beanieAPI, &veniceArtAniAPI, //APIs
2, boss_0012_mode, sizeof(boss_0012_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0012 }, //configuration string
{DONT_MATCH, derby1_2Revs, numderby1_2Revs, veniceRevs, numVeniceRevs, 0x0014, //Identifiers
venice_derby, sizeof(venice_derby)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby_mode, sizeof(venice_derby_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0014 }, //configuration string
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0, sizeof(venice_derby2_0)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_0_mode, sizeof(venice_derby2_0_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016 }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2_1Revs, numderby2_1Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_1, sizeof(venice_derby2_1)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_1_mode, sizeof(venice_derby2_1_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_d016 }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, sombreroRevs, numSombreroRevs, veniceRevs, numVeniceRevs, 0x0013, //Identifiers
venice, sizeof(venice)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &sombrero_beanieAPI, &veniceArtAniAPI, //APIs
3, venice_mode, sizeof(venice_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0013 }, //configuration string
{DONT_MATCH, derby2Revs, numderby2Revs, hainanRevs, numHainanRevs, 0x0017, //Identifiers
hainan_derby2_0, sizeof(hainan_derby2_0)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, hainan_derby2_0_mode, sizeof(hainan_derby2_0_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0017 }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
//This is to support hainan ear, which must use same frozen venice_derby config file
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2_1Revs, numderby2_1Revs, hainanRevs, numHainanRevs, 0x0017, //Identifiers
hainan_derby2_1, sizeof(hainan_derby2_1)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, hainan_derby2_1_mode, sizeof(hainan_derby2_1_mode)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_d017 }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
//This is to support hainan ear, which must use same frozen venice_derby config file
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, &veniceArtAniAPI, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
};
#else
DEVICE_INIT_DATA ar5kInitData[] = {
//Special set for dos, where they will always point to the EAR config files. Keep the duplicate set
//to be compatible with code
{DONT_MATCH, derby1_2Revs, numderby1_2Revs, veniceRevs, numVeniceRevs, 0x0014, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0014, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2_1Revs, numderby2_1Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0016, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2Revs, numderby2Revs, hainanRevs, numHainanRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
//This is to support hainan ear, which must use same frozen venice_derby config file
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
{DONT_MATCH, derby2_1Revs, numderby2_1Revs, hainanRevs, numHainanRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
//will only point to this structure if want to load EAR from EEPROM
//This is to support hainan ear, which must use same frozen venice_derby config file
{DONT_MATCH, derby2Revs, numderby2Revs, veniceRevs, numVeniceRevs, 0x0017, //Identifiers
venice_derby2_0_ear, sizeof(venice_derby2_0_ear)/sizeof(ATHEROS_REG_FILE), //Register file
&veniceAPI, &derbyAPI, NULL, //APIs
3, venice_derby2_0_mode_ear, sizeof(venice_derby2_0_mode_ear)/sizeof(MODE_INFO), //Mode file
CFG_VERSION_STRING_0016_EAR }, //configuration string
};
#endif
A_UINT32 numDeviceIDs = (sizeof(ar5kInitData)/sizeof(DEVICE_INIT_DATA));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -