summaryrefslogtreecommitdiff
path: root/cleopatre/plcdrv/arm/inc/hal.h
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/plcdrv/arm/inc/hal.h')
-rw-r--r--cleopatre/plcdrv/arm/inc/hal.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/cleopatre/plcdrv/arm/inc/hal.h b/cleopatre/plcdrv/arm/inc/hal.h
index d9096e2ea3..3d1e58a73e 100644
--- a/cleopatre/plcdrv/arm/inc/hal.h
+++ b/cleopatre/plcdrv/arm/inc/hal.h
@@ -23,14 +23,21 @@
#define A2L_RING_MASK (A2L_RING_SIZE-1)
#define L2A_RING_MASK (L2A_RING_SIZE-1)
+#define MAX_MSG_SIZE 8 //in bytes
+
/** hal layer context structure */
struct halctx {
uint32_t *A2L_ptr;
uint32_t *L2A_ptr;
- const uint32_t *A2L_head;
- uint32_t *A2L_tail;
uint32_t *L2A_head;
+#ifdef __UTESTS__
+ uint32_t *A2L_head;
+ uint32_t *L2A_tail;
+#else
+ const uint32_t *A2L_head;
const uint32_t *L2A_tail;
+#endif
+ uint32_t *A2L_tail;
uint32_t *A2L_it;
uint32_t *L2A_it;
uint32_t *L2A_it_mask;
@@ -115,6 +122,13 @@ int halmbx_A2Lmail_update(struct halctx *ctx, int size);
int halmbx_L2Amail_update(struct halctx *ctx, int size);
/**
+ * Enable the Arm to Leon Acknowledge Interrupt.
+ *
+ * \param ctx hal context.
+ */
+void A2La_it_enable(struct halctx *ctx);
+
+/**
* Enable the Leon to Arm Trigger Interrupt.
*
* \param ctx hal context.