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 ) ...@@ -177,6 +177,9 @@ std::string ComediInterface::type2str( ComediInterface::SubdevType t )
case TBI16_8: case TBI16_8:
return "TBI16_8"; return "TBI16_8";
case GRAYHILL:
return "GRAYHILL";
default: default:
break; break;
} }
...@@ -195,6 +198,9 @@ ComediInterface::SubdevType ComediInterface::str2type( const std::string s ) ...@@ -195,6 +198,9 @@ ComediInterface::SubdevType ComediInterface::str2type( const std::string s )
if( s == "TBI16_8" ) if( s == "TBI16_8" )
return TBI16_8; return TBI16_8;
if( s == "GRAYHILL" )
return GRAYHILL;
return Unknown; return Unknown;
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -40,7 +40,8 @@ class ComediInterface ...@@ -40,7 +40,8 @@ class ComediInterface
Unknown = 0, Unknown = 0,
TBI24_0 = 1, TBI24_0 = 1,
TBI0_24 = 2, TBI0_24 = 2,
TBI16_8 = 3 TBI16_8 = 3,
GRAYHILL = 4
}; };
static std::string type2str( SubdevType t ); static std::string type2str( SubdevType t );
......
...@@ -1699,6 +1699,15 @@ void IOControl::buildCardsList() ...@@ -1699,6 +1699,15 @@ void IOControl::buildCardsList()
throw SystemError(err.str()); 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") dlog[Debug::INFO] << myname << "(buildCardsList): card=" << it.getProp("card")
<< "(" << cname << ")" << "(" << cname << ")"
<< " init subdev" << i << " " << it.getProp(s.str()) << endl; << " 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