| 54 | }; |
| 55 | |
| 56 | static rt_err_t _get_interface_by_name(const char *name, rt_phy_interface *interface) |
| 57 | { |
| 58 | for (int i = 0; i < RT_PHY_INTERFACE_MODE_MAX; i++) |
| 59 | { |
| 60 | if (!strcmp(name, rt_phy_modes[i])) |
| 61 | { |
| 62 | *interface = i; |
| 63 | return RT_EOK; |
| 64 | } |
| 65 | } |
| 66 | return -RT_ERROR; |
| 67 | } |
| 68 | |
| 69 | rt_err_t rt_ofw_get_interface(struct rt_ofw_node *np, rt_phy_interface *interface) |
| 70 | { |
no outgoing calls
no test coverage detected