summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorsave2008-07-02 07:02:41 +0000
committersave2008-07-02 07:02:41 +0000
commit78a4feca5fc4aaa3f42518f1282418a8bde3a09a (patch)
tree6c9f89df57dba39f80ba42fa68cfdb249093d377 /cleopatre
parent0bd1435de85cef96d9a3b5c81fb76efa1a01781d (diff)
Chnaged some traces
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2522 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/plcdrv/gidel/src/mailbox.c4
-rw-r--r--cleopatre/plcdrv/gidel/src/processing.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/cleopatre/plcdrv/gidel/src/mailbox.c b/cleopatre/plcdrv/gidel/src/mailbox.c
index db116d3421..18783c437c 100644
--- a/cleopatre/plcdrv/gidel/src/mailbox.c
+++ b/cleopatre/plcdrv/gidel/src/mailbox.c
@@ -242,14 +242,17 @@ static int mailbox_buffer_add(enum buffer_type type)
switch(type)
{
case DATA:
+ printf("SEND BUFF ADD data data\n");
TRACE("SEND BUFF ADD data data\n");
msg.header.buffer_add.param_type = MBX_MSG_TYPE_BUFF_ADD_TYPE_DATA;
break;
case MME:
+ printf("SEND BUFF ADD data mme\n");
TRACE("SEND BUFF ADD data mme\n");
msg.header.buffer_add.param_type = MBX_MSG_TYPE_BUFF_ADD_TYPE_MME;
break;
case INTERFACE:
+ printf("SEND BUFF ADD interface\n");
TRACE("SEND BUFF ADD interface\n");
msg.header.buffer_add.param_type = MBX_MSG_TYPE_BUFF_ADD_TYPE_INTERFACE;
break;
@@ -306,6 +309,7 @@ int mailbox_receive(void)
{
case MBX_MSG_TYPE_SEND_DONE: //Free the Gidel memory allocated with the buffer_add
TRACE("RECEIVE a send_done\n");
+ printf("RECEIVE a send_done\n");
if(halmbx_free_in_gidel_memory((uint32_t*)msg.data.buffer_ptr))
result = -4;
else
diff --git a/cleopatre/plcdrv/gidel/src/processing.c b/cleopatre/plcdrv/gidel/src/processing.c
index c52650034f..6ff7917505 100644
--- a/cleopatre/plcdrv/gidel/src/processing.c
+++ b/cleopatre/plcdrv/gidel/src/processing.c
@@ -180,6 +180,21 @@ int processing_receive (void *pointer, int length, enum buffer_type type)
//TODO:Send the packet to the TX part with processing_send(pointer, length)
+
+ if(type == INTERFACE)
+ {
+ TRACE("In the processing_receive : INTERFACE\n");
+ }
+ else if(type == MME)
+ {
+ TRACE("In the processing_receive : MME\n");
+ }
+ else if(type == DATA)
+ {
+ TRACE("In the processing_receive : DATA\n");
+ }
+
+
//Or Send packet to the upper layers
return plcdrv_rx(pointer, length);
}