From c90fa83041f1467ac9795c489b7151db3a041ab5 Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee Date: Wed, 24 Feb 2021 19:09:56 -0700 Subject: bsps: Remove networking drivers Update #3850 --- bsps/bfin/bf537Stamp/net/networkconfig.c | 69 -------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 bsps/bfin/bf537Stamp/net/networkconfig.c (limited to 'bsps/bfin/bf537Stamp/net/networkconfig.c') diff --git a/bsps/bfin/bf537Stamp/net/networkconfig.c b/bsps/bfin/bf537Stamp/net/networkconfig.c deleted file mode 100644 index 85655b3cd4..0000000000 --- a/bsps/bfin/bf537Stamp/net/networkconfig.c +++ /dev/null @@ -1,69 +0,0 @@ -/* networkconfig.c - * - * This file contains the network driver attach function and configuration - * for the bf537Stamp. - * - * Copyright (c) 2008 Kallisti Labs, Los Gatos, CA, USA - * written by Allan Hessenflow - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#include - -#include -#include -#include -#include - - -static bfin_ethernet_configuration_t ethConfig = { - SCLK, - (void *) EMAC_BASE_ADDRESS, - (void *) DMA1_BASE_ADDRESS, /* ethernet receive */ - (void *) DMA2_BASE_ADDRESS, /* ethernet transmit */ - 16, /* receive descriptors */ - 16, /* transmit descriptors */ - mii, /* phy type */ - 1 /* phy address */ -}; - -static bfin_isr_t ethISRs[] = { - /* careful - shared with a bunch of things */ -/* - {SIC_MAC_ERROR_VECTOR, - bfin_ethernet_mac_isr, - 0, - 0, - NULL}, -*/ - /* careful - shared with porth irqa */ - {SIC_DMA1_MAC_RX_VECTOR, - bfin_ethernet_rxdma_isr, - 0, - 0, - NULL}, - /* careful - shared with porth irqb */ - {SIC_DMA2_MAC_TX_VECTOR, - bfin_ethernet_txdma_isr, - 0, - 0, - NULL} -}; - -int bf537Stamp_network_driver_attach(struct rtems_bsdnet_ifconfig *config, - int attaching) { - int result; - int i; - - result = bfin_ethernet_driver_attach(config, attaching, ðConfig); - for (i = 0; i < sizeof(ethISRs) / sizeof(ethISRs[0]); i++) { - bfin_interrupt_register(ðISRs[i]); - bfin_interrupt_enable(ðISRs[i], TRUE); - } - - return result; -} - -- cgit v1.2.3