summaryrefslogtreecommitdiff
path: root/mac/common/src/ntb.c
diff options
context:
space:
mode:
authorsave2008-04-07 14:17:42 +0000
committersave2008-04-07 14:17:42 +0000
commit3d58a62727346b7ac1a6cb36fed1a06ed72228dd (patch)
treed7788c3cf9f76426aef0286d0202e2097f0fa0eb /mac/common/src/ntb.c
parent095dca4b0a8d4924093bab424f71f588fdd84613 (diff)
Moved the complete svn base into the cesar directory.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1769 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'mac/common/src/ntb.c')
-rw-r--r--mac/common/src/ntb.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/mac/common/src/ntb.c b/mac/common/src/ntb.c
deleted file mode 100644
index b7e0851bfb..0000000000
--- a/mac/common/src/ntb.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2008 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file mac/common/src/ntb.c
- * \brief « brief description »
- * \ingroup « module »
- *
- * « long description »
- */
-#include "common/std.h"
-
-#include "hal/phy/phy.h"
-#include "mac/common/ntb.h"
-
-u32
-phy_date (phy_t *ctx) __attribute__((weak));
-
-mac_ntb_t ntb_global;
-
-/**
- * Initialize the ntb context.
- *
- * \param phy the phy context.
- * \param mac_config the mac config context.
- */
-void
-mac_ntb_init (phy_t *phy, mac_config_t *mac_config)
-{
- dbg_assert(phy);
- dbg_assert(mac_config);
-
- ntb_global.phy = phy;
- ntb_global.mac_config = mac_config;
-}
-
-/**
- * Uninitialize the ntb context.
- */
-void
-mac_ntb_uninit (void)
-{
- /* TODO maybe. */
-}
-
-/**
- * Get the ntb date
- *
- * \return the ntb date
- */
-u32
-mac_ntb (void)
-{
- dbg_assert (ntb_global.phy);
- dbg_assert (ntb_global.mac_config);
-
- return phy_date (ntb_global.phy) + ntb_global.mac_config->ntb_offset_tck;
-}
-
-/**
- * Create a phy_date weak function to do not have to include the phy on test
- * when it is not necessary.
- *
- * \param phy the phy context.
- * \return the phy date.
- */
-u32
-phy_date (phy_t *phy)
-{
- return 42;
-}
-
-