mirror of
https://github.com/OpenAMP/open-amp.git
synced 2025-12-09 15:00:52 +08:00
cmake: remove deprecated cache options
Remove the following CMake options and associated definitions that have been deprecated for over two years: - WITH_DCACHE_VRINGS - WITH_DCACHE_BUFFERS - WITH_DCACHE_RSC_TABLE - VIRTIO_CACHED_RSC_TABLE - VIRTIO_CACHED_BUFFERS - VIRTIO_CACHED_VRINGS Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
f819642829
commit
d183f24ea0
@@ -87,27 +87,6 @@ if (WITH_DCACHE)
|
||||
add_definitions(-DVIRTIO_USE_DCACHE)
|
||||
endif (WITH_DCACHE)
|
||||
|
||||
option (WITH_DCACHE_VRINGS "Build with vrings cache operations enabled" OFF)
|
||||
|
||||
if (WITH_DCACHE_VRINGS)
|
||||
add_definitions(-DVIRTIO_CACHED_VRINGS)
|
||||
message(DEPRECATION "deprecated cmake option replaced by WITH_DCACHE" ...)
|
||||
endif (WITH_DCACHE_VRINGS)
|
||||
|
||||
option (WITH_DCACHE_BUFFERS "Build with buffers cache operations enabled" OFF)
|
||||
|
||||
if (WITH_DCACHE_BUFFERS)
|
||||
add_definitions(-DVIRTIO_CACHED_BUFFERS)
|
||||
message(DEPRECATION "deprecated cmake option replaced by WITH_DCACHE" ...)
|
||||
endif (WITH_DCACHE_BUFFERS)
|
||||
|
||||
option (WITH_DCACHE_RSC_TABLE "Build with resource table cache operations enabled" OFF)
|
||||
|
||||
if (WITH_DCACHE_RSC_TABLE)
|
||||
add_definitions(-DVIRTIO_CACHED_RSC_TABLE)
|
||||
message(DEPRECATION "deprecated cmake option replaced by WITH_DCACHE" ...)
|
||||
endif (WITH_DCACHE_RSC_TABLE)
|
||||
|
||||
# Set the complication flags
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
|
||||
|
||||
|
||||
@@ -25,16 +25,13 @@ extern "C" {
|
||||
#define RPROC_MAX_VRING_DESC USHRT_MAX
|
||||
|
||||
/* cache invalidation helpers for resource table */
|
||||
#ifdef VIRTIO_CACHED_RSC_TABLE
|
||||
#warning "VIRTIO_CACHED_RSC_TABLE is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_RSC_TABLE) || defined(VIRTIO_USE_DCACHE)
|
||||
#if defined(VIRTIO_USE_DCACHE)
|
||||
#define RSC_TABLE_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define RSC_TABLE_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define RSC_TABLE_FLUSH(x, s) do { } while (0)
|
||||
#define RSC_TABLE_INVALIDATE(x, s) do { } while (0)
|
||||
#endif /* VIRTIO_CACHED_RSC_TABLE || VIRTIO_USE_DCACHE */
|
||||
#endif /* VIRTIO_USE_DCACHE */
|
||||
|
||||
/* define vdev notification function user should implement */
|
||||
typedef int (*rpvdev_notify_func)(void *priv, uint32_t id);
|
||||
|
||||
@@ -30,16 +30,13 @@ extern "C" {
|
||||
/* The feature bitmap for virtio rpmsg */
|
||||
#define VIRTIO_RPMSG_F_NS 0 /* RP supports name service notifications */
|
||||
|
||||
#ifdef VIRTIO_CACHED_BUFFERS
|
||||
#warning "VIRTIO_CACHED_BUFFERS is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_BUFFERS) || defined(VIRTIO_USE_DCACHE)
|
||||
#if defined(VIRTIO_USE_DCACHE)
|
||||
#define BUFFER_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define BUFFER_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define BUFFER_FLUSH(x, s) do { } while (0)
|
||||
#define BUFFER_INVALIDATE(x, s) do { } while (0)
|
||||
#endif /* VIRTIO_CACHED_BUFFERS || VIRTIO_USE_DCACHE */
|
||||
#endif /* VIRTIO_USE_DCACHE */
|
||||
|
||||
/* Callback handler for rpmsg virtio service */
|
||||
typedef int (*rpmsg_virtio_notify_wait_cb)(struct rpmsg_device *rdev, uint32_t id);
|
||||
|
||||
@@ -48,16 +48,13 @@ extern "C" {
|
||||
/* Support to suppress interrupt until specific index is reached. */
|
||||
#define VIRTIO_RING_F_EVENT_IDX (1 << 29)
|
||||
|
||||
#ifdef VIRTIO_CACHED_VRINGS
|
||||
#warning "VIRTIO_CACHED_VRINGS is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_VRINGS) || defined(VIRTIO_USE_DCACHE)
|
||||
#if defined(VIRTIO_USE_DCACHE)
|
||||
#define VRING_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define VRING_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define VRING_FLUSH(x, s) do { } while (0)
|
||||
#define VRING_INVALIDATE(x, s) do { } while (0)
|
||||
#endif /* VIRTIO_CACHED_VRINGS || VIRTIO_USE_DCACHE */
|
||||
#endif /* VIRTIO_USE_DCACHE */
|
||||
|
||||
/** @brief Buffer descriptor. */
|
||||
struct virtqueue_buf {
|
||||
|
||||
Reference in New Issue
Block a user