diff options
author | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-24 19:09:56 -0700 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-04-07 16:15:38 -0600 |
commit | c90fa83041f1467ac9795c489b7151db3a041ab5 (patch) | |
tree | ee3ebcd4af33202b34f89133a301d268609e355c /bsps/powerpc/beatnik/net/support/early_link_status.c | |
parent | cpukit/libfs: Remove nfsclient (diff) | |
download | rtems-c90fa83041f1467ac9795c489b7151db3a041ab5.tar.bz2 |
bsps: Remove networking drivers
Update #3850
Diffstat (limited to 'bsps/powerpc/beatnik/net/support/early_link_status.c')
-rw-r--r-- | bsps/powerpc/beatnik/net/support/early_link_status.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/bsps/powerpc/beatnik/net/support/early_link_status.c b/bsps/powerpc/beatnik/net/support/early_link_status.c deleted file mode 100644 index 271f970212..0000000000 --- a/bsps/powerpc/beatnik/net/support/early_link_status.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <rtems.h> -#include <bsp/early_enet_link_status.h> -#include <rtems/bspIo.h> - -/* T. Straumann, 2005; see ../../LICENSE */ - -static const char *ename = ": rtems_em_early_check_link_status() - "; - -int -BSP_early_check_link_status(int unit, rtems_bsdnet_early_link_check_ops *ops) -{ -int status; - - unit--; - if ( unit < 0 || unit >= ops->num_slots ) { - printk("%s%sinvalid unit # %i (not in %i..%i)\n", - ops->name, ename, unit+1, 1, ops->num_slots); - return -1; - } - - if ( !ops->initialized ) { - if ( ops->init(unit) ) { - printk("%s%sFAILURE to init hardware\n",ops->name, ename); - return -1; - } - /* Start autoneg */ - if ( ops->write_phy(unit, 0, 0x1200) ) { - printk("%s%sFAILURE to start autonegotiation\n",ops->name, ename); - return -1; - } - /* Dont wait here; the caller can do this on various interfaces - * and wait herself. - */ - ops->initialized = 1; - } - if ( (status = ops->read_phy(unit, 1)) < 0 ) { - printk("%s%sFAILURE to read phy status\n", ops->name, ename); - } - return status; -} |