diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2016-05-25 15:19:56 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-05-26 19:13:44 +0300 |
commit | 763b4a48d12a3bff8bf0f91c3e38f3203f2f57af (patch) | |
tree | e07ef24cd579b8dbfbb35edd3ccfe9e800e73ca3 /platform/linux-generic/include/odp_schedule_internal.h | |
parent | 3c902e5f7c145d73578f75551733af50ef9babb7 (diff) |
linux-generic: schedule: rename schedule interface header
Renamed odp_schedule_internal.h to odp_schedule_if.h, since it
defines the interface. A new, truly internal header is needed for
the scheduler.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_schedule_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_schedule_internal.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/platform/linux-generic/include/odp_schedule_internal.h b/platform/linux-generic/include/odp_schedule_internal.h deleted file mode 100644 index 7436f5a38..000000000 --- a/platform/linux-generic/include/odp_schedule_internal.h +++ /dev/null @@ -1,65 +0,0 @@ -/* Copyright (c) 2013, Linaro Limited - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - - - -#ifndef ODP_SCHEDULE_INTERNAL_H_ -#define ODP_SCHEDULE_INTERNAL_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include <odp/api/queue.h> -#include <odp/api/packet_io.h> -#include <odp_forward_typedefs_internal.h> - -/* Constants defined by the scheduler. These should be converted into interface - * functions. */ - -/* Number of ordered locks per queue */ -#define SCHEDULE_ORDERED_LOCKS_PER_QUEUE 2 - -typedef void (*schedule_pktio_start_fn_t)(odp_pktio_t pktio, int num_in_queue, - int in_queue_idx[]); -typedef int (*schedule_thr_add_fn_t)(odp_schedule_group_t group, int thr); -typedef int (*schedule_thr_rem_fn_t)(odp_schedule_group_t group, int thr); -typedef int (*schedule_num_grps_fn_t)(void); -typedef int (*schedule_init_queue_fn_t)(uint32_t queue_index); -typedef void (*schedule_destroy_queue_fn_t)(uint32_t queue_index); -typedef int (*schedule_sched_queue_fn_t)(uint32_t queue_index); - - -typedef struct schedule_fn_t { - schedule_pktio_start_fn_t pktio_start; - schedule_thr_add_fn_t thr_add; - schedule_thr_rem_fn_t thr_rem; - schedule_num_grps_fn_t num_grps; - schedule_init_queue_fn_t init_queue; - schedule_destroy_queue_fn_t destroy_queue; - schedule_sched_queue_fn_t sched_queue; - -} schedule_fn_t; - -/* Interface towards the scheduler */ -extern const schedule_fn_t *sched_fn; - -/* Interface for the scheduler */ -int sched_cb_pktin_poll(int pktio_index, int num_queue, int index[]); -int sched_cb_num_pktio(void); -int sched_cb_num_queues(void); -int sched_cb_queue_prio(uint32_t queue_index); -int sched_cb_queue_grp(uint32_t queue_index); -int sched_cb_queue_is_ordered(uint32_t queue_index); -int sched_cb_queue_is_atomic(uint32_t queue_index); -odp_queue_t sched_cb_queue_handle(uint32_t queue_index); -void sched_cb_queue_destroy_finalize(uint32_t queue_index); - -#ifdef __cplusplus -} -#endif - -#endif |