blob: f11ac770b858324b0264b31de55d6289da349351 [file] [log] [blame]
Archanae829cd62021-12-24 12:50:36 +05301{% for driver in drivers if driver.type == "opaque" -%}
2{% for capability in driver.capabilities if entry_point in capability.entry_points -%}
3#if ({% if capability.depend_on is defined -%}{{ capability.depend_on }} {% else -%} {{ 1 }} {% endif %})
4{%- filter indent(width = nest_indent) %}
5case {{ driver.location }}:
Archana05efa172022-01-09 09:30:32 +05306 {% if capability.name is defined and entry_point in capability.name.keys() -%}
7 return({{ capability.name[entry_point]}}({{entry_point_attributes(driver) | indent(20)}}));
8 {% else -%}
Archanae829cd62021-12-24 12:50:36 +05309 return({{driver.prefix}}_{{driver.type}}_{{entry_point}}({{entry_point_attributes(driver) | indent(20)}}));
Archana05efa172022-01-09 09:30:32 +053010 {% endif -%}
Archanae829cd62021-12-24 12:50:36 +053011{% endfilter -%}
12#endif
13{% endfor %}
14{% endfor %}