summaryrefslogtreecommitdiff
path: root/cesar/cp2/cco/bw/inc/bw.h
diff options
context:
space:
mode:
authorboure2008-06-16 16:09:21 +0000
committerboure2008-06-16 16:09:21 +0000
commitf64d73f9fb146c8152047e5b4546fe51626efe4c (patch)
tree82b090d306ae1fd4945f93407b7997ec362fec75 /cesar/cp2/cco/bw/inc/bw.h
parent3298ac5fdead0ceeeca1cb4286f11c9a97a3a6f0 (diff)
Add allocate function test in motion
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2348 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp2/cco/bw/inc/bw.h')
-rw-r--r--cesar/cp2/cco/bw/inc/bw.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/cesar/cp2/cco/bw/inc/bw.h b/cesar/cp2/cco/bw/inc/bw.h
index 64d98f0cad..e8f1a27444 100644
--- a/cesar/cp2/cco/bw/inc/bw.h
+++ b/cesar/cp2/cco/bw/inc/bw.h
@@ -89,28 +89,24 @@ cp_cco_bw_set_next_free_allocation_time(cp_t *ctx, cp_cco_bw_alloc_t *alloc,
/**
- * Study the allocation possbility
- * \param actual_ble « param description »
- * \param nb_pb « param description »
- * \param alloc « param description »
- * \param next_alloc « param description »
- * \return « return value description »
+ * Returns the last ble and checks if the end of the free time has been
+ * reached
+ * \param first_ble First ble of the calculation spot
+ * \param last_ble Last ble of this allocation spot
+ * \param nb_pb Number of PBs to allocate
+ * \param alloc allocation before the free time spot
+ * \param next_alloc next allocation
+ * \return false we have reached the end of the spot before finishing the
+ * allocation
*
- * « details »
*/
bool
-cp_cco_bw_is_enough_time(cp_link_ble_interval_t *actual_ble,
- u16 nb_pb,
- cp_cco_bw_alloc_t *alloc,
- cp_cco_bw_alloc_t *next_alloc);
-
-
-cp_link_ble_interval_t*
-cp_cco_bw_get_last_ble(cp_link_ble_interval_t *first_ble, u16 nb_pb,
+cp_cco_bw_get_last_ble(cp_link_ble_interval_t *first_ble,
+ cp_link_ble_interval_t * last_ble, u16 nb_pb,
cp_cco_bw_alloc_t *alloc, cp_cco_bw_alloc_t *next_alloc);
bool
-calculation_of_alloc_time(cp_link_ble_interval_t *first_ble,
+cp_cco_bw_calculation_of_alloc_time(cp_link_ble_interval_t *first_ble,
cp_link_ble_interval_t *last_ble, u16 nb_pb,
u16 *alloc_st, u16 *alloc_et,
cp_cco_bw_alloc_t *alloc, cp_cco_bw_alloc_t *next_alloc);