diff options
author | Pavan Nikhilesh <pbhagavatula@marvell.com> | 2020-10-14 21:32:42 +0530 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2020-12-22 12:51:19 +0200 |
commit | 21eb65223b1a90eff827cbc2f36f5387a87b8242 (patch) | |
tree | 8e8c5064e8c495cdbb147def95128ae1f869cdb1 /include | |
parent | 5fb70c7a186ab427c5b6e7db99bb8188c425dda1 (diff) |
api: timer: add timer pool queue capability
In some ODP implementations, plain queues might be using software
primitives such as a simple ring and the ODP timer hardware pools
can enqueue timeouts only into schedule queues.
Introducing capability `queue_type_sched` and `queue_type_plain`
which define the queue types that can be the destination of the
timeout events.
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp/api/spec/timer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/odp/api/spec/timer.h b/include/odp/api/spec/timer.h index 1f49e7b40..22c4fbef8 100644 --- a/include/odp/api/spec/timer.h +++ b/include/odp/api/spec/timer.h @@ -216,6 +216,27 @@ typedef struct { */ odp_timer_res_capability_t max_tmo; + /** + * Scheduled queue destination support + * + * This defines whether schedule queues are supported as timeout + * destination queues. + * 0: Scheduled queues are not supported as timeout destination queues + * 1: Scheduled queues are supported as timeout destination queues + * @see odp_timer_alloc() + */ + odp_bool_t queue_type_sched; + + /** + * Plain queue destination support + * + * This defines whether plain queues are supported as timeout + * destination queues. + * 0: Plain queues are not supported as timeout destination queues + * 1: Plain queues are supported as timeout destination queues + * @see odp_timer_alloc() + */ + odp_bool_t queue_type_plain; } odp_timer_capability_t; /** |