aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2021-10-08 17:31:37 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2021-12-09 14:32:25 +0200
commitb46feb1309a3da78c2c3bf5faffc69f9a8a0d306 (patch)
tree5bddad1ff1724052532dd0a1e22ed67a735e6299
parent2f16a667c8529fc77516b2dc848460ac8a720433 (diff)
api: event: add DMA completion event type
Added new event type ODP_EVENT_DMA_COMPL for DMA transfer completion events. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
-rw-r--r--include/odp/api/abi-default/event.h1
-rw-r--r--include/odp/api/spec/event.h2
-rw-r--r--platform/linux-generic/include-abi/odp/api/abi/event.h3
3 files changed, 5 insertions, 1 deletions
diff --git a/include/odp/api/abi-default/event.h b/include/odp/api/abi-default/event.h
index 8976252f3..ecedda3bd 100644
--- a/include/odp/api/abi-default/event.h
+++ b/include/odp/api/abi-default/event.h
@@ -32,6 +32,7 @@ typedef enum {
ODP_EVENT_IPSEC_STATUS = 5,
ODP_EVENT_PACKET_VECTOR = 6,
ODP_EVENT_PACKET_TX_COMPL = 7,
+ ODP_EVENT_DMA_COMPL = 8,
} odp_event_type_t;
typedef enum {
diff --git a/include/odp/api/spec/event.h b/include/odp/api/spec/event.h
index 32fd37c29..dc99f35c7 100644
--- a/include/odp/api/spec/event.h
+++ b/include/odp/api/spec/event.h
@@ -63,6 +63,8 @@ extern "C" {
* - ODP_EVENT_PACKET_TX_COMPL
* - Packet Tx completion event (odp_packet_tx_compl_t) generated as a result of a Packet Tx
* completion.
+ * - ODP_EVENT_DMA_COMPL
+ * - DMA completion event (odp_dma_compl_t) indicates that a DMA transfer has finished
*/
/**
diff --git a/platform/linux-generic/include-abi/odp/api/abi/event.h b/platform/linux-generic/include-abi/odp/api/abi/event.h
index 1cbb81afe..6530ac2e4 100644
--- a/platform/linux-generic/include-abi/odp/api/abi/event.h
+++ b/platform/linux-generic/include-abi/odp/api/abi/event.h
@@ -35,7 +35,8 @@ typedef enum odp_event_type_t {
ODP_EVENT_CRYPTO_COMPL = 4,
ODP_EVENT_IPSEC_STATUS = 5,
ODP_EVENT_PACKET_VECTOR = 6,
- ODP_EVENT_PACKET_TX_COMPL = 7
+ ODP_EVENT_PACKET_TX_COMPL = 7,
+ ODP_EVENT_DMA_COMPL = 8,
} odp_event_type_t;
typedef enum odp_event_subtype_t {