summaryrefslogtreecommitdiff
path: root/cesar/interface
diff options
context:
space:
mode:
authorschodet2008-09-16 11:25:39 +0000
committerschodet2008-09-16 11:25:39 +0000
commit9f004d6deaf0393cef17815bd491e0e53634abf0 (patch)
tree9ae0f753394ffda31023909d73db0702f3f7b9cf /cesar/interface
parent54255f96e8bdaa9eedf9ecbaaaae5c1b87f530c3 (diff)
* interface:
- fixed compilation problems when interface is stubbed. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2982 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/interface')
-rw-r--r--cesar/interface/interface.h17
-rw-r--r--cesar/interface/src/interface.c17
2 files changed, 16 insertions, 18 deletions
diff --git a/cesar/interface/interface.h b/cesar/interface/interface.h
index aeb8f23b66..cdc1673d77 100644
--- a/cesar/interface/interface.h
+++ b/cesar/interface/interface.h
@@ -20,8 +20,6 @@
#include "cl/cl.h"
#include "mac/sar/sar.h"
-#include "config/interface.h"
-
#include "interface/interface_module.h"
#include "interface/forward.h"
@@ -167,19 +165,4 @@ void interface_beacon_add (interface_t *ctx, pb_beacon_t *pb,
void
interface_hle_send (interface_t *ctx, uint *data, uint length);
-#if CONFIG_INTERFACE_FCALL
-
-/**
- * Called by the interface fcall module when the buffer has been used.
- * This allows the HLE to know which buffer is newly available to be used or
- * give it back to the ARM. (the buffer is borrowed by the linux).
- *
- * \param ctx the interface context.
- * \param buffer the buffer used to send the data.
- */
-void
-interface_hle_send_done (interface_t *ctx, u8 *buffer);
-
-#endif /* CONFIG_INTERFACE_FCALL */
-
#endif /* interface_interface_h */
diff --git a/cesar/interface/src/interface.c b/cesar/interface/src/interface.c
index 1f5f29139a..8bdb6c5959 100644
--- a/cesar/interface/src/interface.c
+++ b/cesar/interface/src/interface.c
@@ -52,6 +52,21 @@ interface_thread_process (cyg_addrword_t data)
}
#endif
+#if CONFIG_INTERFACE_FCALL
+
+/**
+ * Called by the interface fcall module when the buffer has been used.
+ * This allows the HLE to know which buffer is newly available to be used or
+ * give it back to the ARM. (the buffer is borrowed by the linux).
+ *
+ * \param ctx the interface context.
+ * \param buffer the buffer used to send the data.
+ */
+static void
+interface_hle_send_done (interface_t *ctx, u8 *buffer);
+
+#endif
+
/**
* Initialise the interface module.
@@ -368,7 +383,7 @@ interface_hle_send (interface_t *ctx, uint *data, uint length)
* \param ctx the interface context.
* \param buffer the buffer used to send the data.
*/
-void
+static void
interface_hle_send_done (interface_t *ctx, u8 *buffer)
{
dbg_assert (ctx);