From 7a41371d97d11e2c2a0375dd1205178c93618850 Mon Sep 17 00:00:00 2001 From: Arnaud Pouliquen Date: Mon, 9 Oct 2023 17:37:09 +0200 Subject: [PATCH] virtio: Add virtio_dev_name function description Add function description in Doxygen format for documentation. Signed-off-by: Arnaud Pouliquen --- lib/include/openamp/virtio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/include/openamp/virtio.h b/lib/include/openamp/virtio.h index 6d4442ef3..f677feff9 100644 --- a/lib/include/openamp/virtio.h +++ b/lib/include/openamp/virtio.h @@ -205,6 +205,14 @@ struct virtio_device { /* * Helper functions. */ + +/** + * @brief Get the name of a virtio device. + * + * @param devid Id of the device. + * + * @return pointer to the device name string if found, otherwise null. + */ const char *virtio_dev_name(uint16_t devid); void virtio_describe(struct virtio_device *dev, const char *msg, uint32_t features,