mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
mpm: tlv_eeprom: print addtl. info in eeprom-id
This commit is contained in:
parent
6284863e14
commit
d46c011757
@ -59,6 +59,9 @@ int main(int argc, char** argv)
|
||||
printf("product=unknown-(%04x)\n", pid);
|
||||
}
|
||||
printf("serial=%s\n", serial);
|
||||
if (pid_info && pid_info->addtl_info) {
|
||||
printf("%s\n", pid_info->addtl_info);
|
||||
}
|
||||
|
||||
free(eeprom);
|
||||
return 0;
|
||||
|
||||
@ -8,21 +8,21 @@
|
||||
#include <stddef.h>
|
||||
|
||||
static struct pid_info pid_list[] = {
|
||||
{0xa410, "x410", "X410 Module", 0},
|
||||
{0xa420, "x420", "X420 Module", 0},
|
||||
{0xa440, "x440", "X440 Module", 0},
|
||||
{0x0410, "x410", "X410 Motherboard", 0},
|
||||
{0x0420, "x420", "X420 Motherboard", 0},
|
||||
{0x0440, "x440", "X440 Motherboard", 0},
|
||||
{0x4000, NULL, "Power Aux Board", 0},
|
||||
{0x4001, NULL, "Debug RF DB", 0},
|
||||
{0x4002, "zbx", "ZBX RF DB", 0},
|
||||
{0x4003, NULL, "HDMI SE DIO Aux Board", 0},
|
||||
{0x4004, NULL, "Clocking Aux Board with GPSDO", 0},
|
||||
{0x4005, NULL, "Clocking Aux Board (no GPSDO)", 0},
|
||||
{0x4006, NULL, "IF Test Manufacturing CCA", 0},
|
||||
{0x4007, "fbx", "FBX RF DB", 0},
|
||||
{0x4008, "hbx", "HBX RF DB", 0},
|
||||
{0xa410, "x410", "X410 Module", 0, NULL},
|
||||
{0xa420, "x420", "X420 Module", 0, NULL},
|
||||
{0xa440, "x440", "X440 Module", 0, NULL},
|
||||
{0x0410, "x410", "X410 Motherboard", 0, NULL},
|
||||
{0x0420, "x420", "X420 Motherboard", 0, NULL},
|
||||
{0x0440, "x440", "X440 Motherboard", 0, NULL},
|
||||
{0x4000, NULL, "Power Aux Board", 0, NULL},
|
||||
{0x4001, NULL, "Debug RF DB", 0, NULL},
|
||||
{0x4002, "zbx", "ZBX RF DB", 0, NULL},
|
||||
{0x4003, NULL, "HDMI SE DIO Aux Board", 0, NULL},
|
||||
{0x4004, NULL, "Clocking Aux Board with GPSDO", 0, NULL},
|
||||
{0x4005, NULL, "Clocking Aux Board (no GPSDO)", 0, NULL},
|
||||
{0x4006, NULL, "IF Test Manufacturing CCA", 0, NULL},
|
||||
{0x4007, "fbx", "FBX RF DB", 0, NULL},
|
||||
{0x4008, "hbx", "HBX RF DB", 0, NULL},
|
||||
};
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof((x)) / sizeof((*x)))
|
||||
|
||||
@ -14,6 +14,7 @@ struct pid_info
|
||||
const char* name;
|
||||
const char* description;
|
||||
uint16_t rev_offset;
|
||||
const char* addtl_info;
|
||||
};
|
||||
|
||||
const struct pid_info* get_info_from_pid(uint16_t pid);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user