summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/inc/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/phy/inc/context.h')
-rw-r--r--cesar/hal/phy/inc/context.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/cesar/hal/phy/inc/context.h b/cesar/hal/phy/inc/context.h
new file mode 100644
index 0000000000..71c6765bc6
--- /dev/null
+++ b/cesar/hal/phy/inc/context.h
@@ -0,0 +1,47 @@
+#ifndef hal_phy_inc_context_h
+#define hal_phy_inc_context_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hal/phy/inc/context.h
+ * \brief HAL Phy context.
+ * \ingroup hal_phy
+ */
+#include "hal/phy/phy.h"
+
+#include <cyg/hal/drv_api.h>
+
+/** Phy context. */
+struct phy_t
+{
+ /** User data passed to any callback. */
+ void *user_data;
+ /** RX FC event callback. */
+ phy_rx_fc_cb_t rx_fc_cb;
+ /** ACCESS event callback. */
+ phy_access_cb_t access_cb;
+ /** ACCESS CONFIRM event callback. */
+ phy_access_conf_cb_t access_conf_cb;
+ /** PB DMA callback. */
+ phy_pbdma_cb_t pbdma_cb;
+ /** TX FALSE ALARM callback. */
+ phy_tx_false_alarm_cb_t tx_false_alarm_cb;
+ /** DSR callback. */
+ phy_deferred_cb_t deferred_cb;
+ /** User data passed to extra timer callback. */
+ void *extra_timer_user_data;
+ /** Extra timer callback. */
+ phy_extra_timer_cb_t extra_timer_cb;
+ /** Interrupt handle. */
+ cyg_handle_t interrupt_handle;
+ /** Interrupt context. */
+ cyg_interrupt interrupt_context;
+};
+/* Forward declaration in hal/phy/forward.h. */
+
+#endif /* hal_phy_inc_context_h */