summaryrefslogtreecommitdiffstats
path: root/bsps/shared/grlib/net
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijay@rtems.org>2021-02-24 19:09:56 -0700
committerVijay Kumar Banerjee <vijay@rtems.org>2021-04-07 16:15:38 -0600
commitc90fa83041f1467ac9795c489b7151db3a041ab5 (patch)
treeee3ebcd4af33202b34f89133a301d268609e355c /bsps/shared/grlib/net
parentcpukit/libfs: Remove nfsclient (diff)
downloadrtems-c90fa83041f1467ac9795c489b7151db3a041ab5.tar.bz2
bsps: Remove networking drivers
Update #3850
Diffstat (limited to 'bsps/shared/grlib/net')
-rw-r--r--bsps/shared/grlib/net/README7
-rw-r--r--bsps/shared/grlib/net/network_interface_add.c62
2 files changed, 0 insertions, 69 deletions
diff --git a/bsps/shared/grlib/net/README b/bsps/shared/grlib/net/README
deleted file mode 100644
index 3ef086f223..0000000000
--- a/bsps/shared/grlib/net/README
+++ /dev/null
@@ -1,7 +0,0 @@
-A non Driver Manager GRETH driver is located in libchip/network/greth.c. This
-version requires the driver manager.
-
-network_interface_add is used to assign IP/NETMASK and MAC address to
-GRETH interfaces dynamically according to in which order devices are
-registered. The function takes the settings from the user defined
-interface_configs[] array, defined in the project configuration.
diff --git a/bsps/shared/grlib/net/network_interface_add.c b/bsps/shared/grlib/net/network_interface_add.c
deleted file mode 100644
index 011137404f..0000000000
--- a/bsps/shared/grlib/net/network_interface_add.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Network interface register help function
- *
- * COPYRIGHT (c) 2008.
- * Cobham Gaisler AB.
- *
- * This function adds a network interface to the
- * rtems_bsdnet_config.ifconfig linked list of interfaces.
- * The interface configuration is taken from the user defined
- * array interface_configs. This function is useful for PnP
- * systems when an unknown number of interfaces are available.
- *
- * The license and distribution terms for this file may be
- * found in found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <rtems/rtems_bsdnet.h>
-#include <stdio.h>
-
-#include <grlib/network_interface_add.h>
-
-extern struct rtems_bsdnet_config rtems_bsdnet_config;
-
-/* Number of interfaces taken */
-int network_interface_cnt = 0;
-
-int network_interface_add(struct rtems_bsdnet_ifconfig *interface)
-{
- struct ethernet_config *cfg = NULL;
- int i, last_entry = 1;
-
- /* Init interface description */
- interface->next = NULL;
-
- cfg = &interface_configs[network_interface_cnt];
- for(i=0; i<6; i++) {
- if ( cfg->eth_adr[i] != 0 ) {
- last_entry = 0;
- break;
- }
- }
- /* Do we have a valid configuration? */
- if ( last_entry == 0 ) {
- cfg = &interface_configs[network_interface_cnt];
-
- interface->ip_address = cfg->ip_addr;
- interface->ip_netmask = cfg->ip_netmask;
- interface->hardware_address = cfg->eth_adr;
-
- network_interface_cnt++;
- } else {
- interface->ip_address = NULL;
- interface->ip_netmask = NULL;
- interface->hardware_address = NULL;
- }
-
- /* Insert interface first into list */
- interface->next = rtems_bsdnet_config.ifconfig;
- rtems_bsdnet_config.ifconfig = interface;
-
- return 0;
-}