Commit a0bcacb8 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

eca lib: ignore ECA hardware that does not match current register layout

parent 62503659
......@@ -64,6 +64,7 @@ void eca_sdb_search(SearchRecord* record, Device dev, const struct sdb_table* sd
if (des->device.sdb_component.product.vendor_id == GSI_VENDOR_ID) {
switch (des->device.sdb_component.product.device_id) {
case ECAE_DEVICE_ID: {
if (des->device.abi_ver_major != 2) break;
EventStream es;
es.address = des->device.sdb_component.addr_first;
es.sdb_ver_major = des->device.abi_ver_major;
......@@ -76,6 +77,7 @@ void eca_sdb_search(SearchRecord* record, Device dev, const struct sdb_table* sd
break;
}
case ECA_DEVICE_ID: {
if (des->device.abi_ver_major != 2) break;
ECA eca;
eca.address = des->device.sdb_component.addr_first;
eca.sdb_ver_major = des->device.abi_ver_major;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment