mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-08-18 12:27:42 +08:00
rpmsg: remove deprecated rpmsg_virtio API
The following configuration are deprecated since more than 2 years (v2024.05): - rpmsg_virtio_get_status - rpmsg_virtio_get_features - rpmsg_virtio_read_config - virtio_write_config - rpmsg_virtio_create_virtqueues - rpmsg_virtio_delete_virtqueues Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
cfc300505e
commit
89dea1d7a5
@@ -134,128 +134,6 @@ rpmsg_virtio_get_role(struct rpmsg_virtio_device *rvdev)
|
||||
return rvdev->vdev->role;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set rpmsg virtio device status.
|
||||
*
|
||||
* Deprecated: Use virtio_set_status() instead
|
||||
*
|
||||
* @param rvdev Pointer to rpmsg virtio device.
|
||||
* @param status Value to be set as rpmsg virtio device status.
|
||||
*/
|
||||
__deprecated
|
||||
static inline void rpmsg_virtio_set_status(struct rpmsg_virtio_device *rvdev,
|
||||
uint8_t status)
|
||||
{
|
||||
rvdev->vdev->func->set_status(rvdev->vdev, status);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Retrieve rpmsg virtio device status.
|
||||
*
|
||||
* Deprecated: Use virtio_get_status() instead
|
||||
*
|
||||
* @param rvdev Pointer to rpmsg virtio device.
|
||||
*
|
||||
* @return The rpmsg virtio device status.
|
||||
*/
|
||||
__deprecated
|
||||
static inline uint8_t rpmsg_virtio_get_status(struct rpmsg_virtio_device *rvdev)
|
||||
{
|
||||
return rvdev->vdev->func->get_status(rvdev->vdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the rpmsg virtio device features.
|
||||
*
|
||||
* Deprecated: Use virtio_get_features() instead
|
||||
*
|
||||
* @param rvdev Pointer to the rpmsg virtio device.
|
||||
*
|
||||
* @return The features supported by both the rpmsg driver and rpmsg device.
|
||||
*/
|
||||
__deprecated
|
||||
static inline uint32_t
|
||||
rpmsg_virtio_get_features(struct rpmsg_virtio_device *rvdev)
|
||||
{
|
||||
return rvdev->vdev->func->get_features(rvdev->vdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Retrieve configuration data from the rpmsg virtio device.
|
||||
*
|
||||
* Deprecated: Use virtio_read_config() instead
|
||||
*
|
||||
* @param rvdev Pointer to the rpmsg virtio device.
|
||||
* @param offset Offset of the data within the configuration area.
|
||||
* @param dst Address of the buffer that will hold the data.
|
||||
* @param length Length of the data to be retrieved.
|
||||
*/
|
||||
__deprecated
|
||||
static inline void
|
||||
rpmsg_virtio_read_config(struct rpmsg_virtio_device *rvdev,
|
||||
uint32_t offset, void *dst, int length)
|
||||
{
|
||||
rvdev->vdev->func->read_config(rvdev->vdev, offset, dst, length);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Write configuration data to the rpmsg virtio device.
|
||||
*
|
||||
* Deprecated: Use virtio_write_config() instead
|
||||
*
|
||||
* @param rvdev Pointer to the rpmsg virtio device.
|
||||
* @param offset Offset of the data within the configuration area.
|
||||
* @param src Address of the buffer that holds the data to write.
|
||||
* @param length Length of the data to be written.
|
||||
*
|
||||
* @return 0 on success, otherwise error code.
|
||||
*/
|
||||
__deprecated
|
||||
static inline void
|
||||
rpmsg_virtio_write_config(struct rpmsg_virtio_device *rvdev,
|
||||
uint32_t offset, void *src, int length)
|
||||
{
|
||||
rvdev->vdev->func->write_config(rvdev->vdev, offset, src, length);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Create the rpmsg virtio device virtqueue.
|
||||
*
|
||||
* Deprecated: Use virtio_create_virtqueues() instead
|
||||
*
|
||||
* @param rvdev Pointer to the rpmsg virtio device.
|
||||
* @param flags Create flag.
|
||||
* @param nvqs The virtqueue number.
|
||||
* @param names Virtqueue names.
|
||||
* @param callbacks Virtqueue callback functions.
|
||||
*
|
||||
* @return 0 on success, otherwise error code.
|
||||
*/
|
||||
__deprecated
|
||||
static inline int
|
||||
rpmsg_virtio_create_virtqueues(struct rpmsg_virtio_device *rvdev,
|
||||
int flags, unsigned int nvqs,
|
||||
const char *names[],
|
||||
vq_callback *callbacks)
|
||||
{
|
||||
return virtio_create_virtqueues(rvdev->vdev, flags, nvqs, names,
|
||||
callbacks, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Delete the virtqueues created in rpmsg_virtio_create_virtqueues()
|
||||
*
|
||||
* Deprecated: Use virtio_delete_virtqueues() instead
|
||||
*
|
||||
* @param rvdev Pointer to the rpmsg virtio device
|
||||
*/
|
||||
__deprecated
|
||||
static inline void
|
||||
rpmsg_virtio_delete_virtqueues(struct rpmsg_virtio_device *rvdev)
|
||||
{
|
||||
virtio_delete_virtqueues(rvdev->vdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get rpmsg virtio buffer size
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user