summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/cp/mbox.h
blob: 18a8ddbf5790d99d1812b0b9a60bcc1243b0f208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef ce_rx_cp_mbox_h
#define ce_rx_cp_mbox_h
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    ce/rx/cp/mbox.h
 * \brief   Mailbox for the communication between the CP and the CE RX.
 * \ingroup ce_rx_cp
 *
 * This header declare the function to use the mailbox between the CP and the
 * CE RX.
 * This mailbox is used by the CE RX to post a message for the CP to send the
 * MME in the context of the CP (because MME can not be sent in the context of
 * the CE RX).
 */

#include "ce/rx/cp/inc/cp.h"
#include "ce/rx/inc/rx.h"
#include "mac/common/tonemap.h"

/**
 * Allocate a message to send a tone map.
 * \param  ce_rx  the context of the CE in RX.
 * \param  tei  the TEI of the peer STA.
 * \param  tms  the RX tome maps.
 * \param  new_tmi  the new TMI (in case of an attached tone map).
 * \param  old_tmi  the old TMI to replace (in case of a CM_TM_UPDATE).
 * \param  initial_ce  true if we are in initial CE.
 */
ce_rx_cp_mbox_t *
ce_rx_cp_mbox_node_tonemap (ce_rx_t *ce_rx, cp_tei_t tei, tonemaps_t *tms,
                            u8 new_tmi, u8 old_tmi, bool initial_ce);

/**
 * Allocate a message to send a TMI list (refresh/tonemap expiration).
 * \param  ce_rx  the context of the CE in RX.
 * \param  tei  the TEI of the peer STA.
 * \param  tms  the RX tome maps.
 */
ce_rx_cp_mbox_t *
ce_rx_cp_mbox_node_refresh_tmi (ce_rx_t *ce_rx, cp_tei_t tei,
                                tonemaps_t *tms);

#endif /* ce_rx_cp_mbox_h */