Lines Matching +full:other +full:- +full:controller
2 * Copyright (c) 2022 Andrei-Edward Popa <andrei.popa105@yahoo.com>
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public Reset Controller driver APIs
16 * @brief Reset Controller Interface
17 * @defgroup reset_controller_interface Reset Controller Interface
33 /** Reset controller device configuration. */
35 /** Reset controller device. */
45 * devicetree node identifier, a property specifying a Reset Controller and an index.
65 * controller reset line id as shown above.
122 * instance's Reset Controller property at an index.
200 * @brief Reset Controller driver API
216 * @param dev Reset controller device.
221 * @retval -ENOSYS If the functionality is not implemented by the driver.
222 * @retval -errno Other negative errno in case of failure.
228 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_status()
230 if (api->status == NULL) { in z_impl_reset_status()
231 return -ENOSYS; in z_impl_reset_status()
234 return api->status(dev, id, status); in z_impl_reset_status()
242 * reset_status(spec->dev, spec->id, status);
244 * @param spec Reset controller specification from devicetree
251 return reset_status(spec->dev, spec->id, status); in reset_status_dt()
258 * depending on the logic level (active-high/active-low).
260 * @param dev Reset controller device.
264 * @retval -ENOSYS If the functionality is not implemented by the driver.
265 * @retval -errno Other negative errno in case of failure.
271 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_assert()
273 if (api->line_assert == NULL) { in z_impl_reset_line_assert()
274 return -ENOSYS; in z_impl_reset_line_assert()
277 return api->line_assert(dev, id); in z_impl_reset_line_assert()
285 * reset_line_assert(spec->dev, spec->id);
287 * @param spec Reset controller specification from devicetree
293 return reset_line_assert(spec->dev, spec->id); in reset_line_assert_dt()
300 * depending on the logic level (active-low/active-high).
302 * @param dev Reset controller device.
306 * @retval -ENOSYS If the functionality is not implemented by the driver.
307 * @retval -errno Other negative errno in case of failure.
313 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_deassert()
315 if (api->line_deassert == NULL) { in z_impl_reset_line_deassert()
316 return -ENOSYS; in z_impl_reset_line_deassert()
319 return api->line_deassert(dev, id); in z_impl_reset_line_deassert()
327 * reset_line_deassert(spec->dev, spec->id)
329 * @param spec Reset controller specification from devicetree
335 return reset_line_deassert(spec->dev, spec->id); in reset_line_deassert_dt()
343 * @param dev Reset controller device.
347 * @retval -ENOSYS If the functionality is not implemented by the driver.
348 * @retval -errno Other negative errno in case of failure.
354 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_toggle()
356 if (api->line_toggle == NULL) { in z_impl_reset_line_toggle()
357 return -ENOSYS; in z_impl_reset_line_toggle()
360 return api->line_toggle(dev, id); in z_impl_reset_line_toggle()
368 * reset_line_toggle(spec->dev, spec->id)
370 * @param spec Reset controller specification from devicetree
376 return reset_line_toggle(spec->dev, spec->id); in reset_line_toggle_dt()