Commit 2b03ad1d authored by Pavel Vainerman's avatar Pavel Vainerman

(IOControl): добавил поддержку плат 'Grayhill'

parent c62a3a94
......@@ -177,6 +177,9 @@ std::string ComediInterface::type2str( ComediInterface::SubdevType t )
case TBI16_8:
return "TBI16_8";
case GRAYHILL:
return "GRAYHILL";
default:
break;
}
......@@ -194,6 +197,9 @@ ComediInterface::SubdevType ComediInterface::str2type( const std::string s )
if( s == "TBI16_8" )
return TBI16_8;
if( s == "GRAYHILL" )
return GRAYHILL;
return Unknown;
}
......
......@@ -40,7 +40,8 @@ class ComediInterface
Unknown = 0,
TBI24_0 = 1,
TBI0_24 = 2,
TBI16_8 = 3
TBI16_8 = 3,
GRAYHILL = 4
};
static std::string type2str( SubdevType t );
......
......@@ -1691,7 +1691,7 @@ void IOControl::buildCardsList()
}
ComediInterface::SubdevType st = ComediInterface::str2type(subdev_name);
if( st == ComediInterface::Unknown )
if( st == ComediInterface::Unknown )
{
ostringstream err;
err << "(buildCardsList): card=" << it.getProp("card") << "(" << cname
......@@ -1699,6 +1699,15 @@ void IOControl::buildCardsList()
throw SystemError(err.str());
}
if( st == ComediInterface::GRAYHILL )
{
// для Grayhill конфигурирование не требуется
dlog[Debug::INFO] << myname << "(buildCardsList): card=" << it.getProp("card")
<< "(" << cname << ")"
<< " subdev" << i << " is 'GRAYHILL'" << endl;
return;
}
dlog[Debug::INFO] << myname << "(buildCardsList): card=" << it.getProp("card")
<< "(" << cname << ")"
<< " init subdev" << i << " " << it.getProp(s.str()) << endl;
......
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