diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads/network')
3 files changed, 0 insertions, 36 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c index 64a4ee3d7d..41c6d3539c 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c @@ -77,7 +77,6 @@ #include "if_hdlcsubr.h" - /* u_char etherbroadcastaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; */ @@ -162,7 +161,6 @@ hdlc_output(ifp, m0, dst, rt0) senderr(EAFNOSUPPORT); } - if (mcopy) (void) looutput(ifp, mcopy, dst, rt); #if 0 @@ -241,7 +239,6 @@ hdlc_input(ifp, m) if (m->m_flags & (M_BCAST|M_MCAST)) ifp->if_imcasts++; - /* * RTEMS addition -- allow application to `tap into' * the incoming packet stream. @@ -254,7 +251,6 @@ hdlc_input(ifp, m) schednetisr(NETISR_IP); inq = &ipintrq; - s = splimp(); if (IF_QFULL(inq)) { IF_DROP(inq); @@ -294,7 +290,6 @@ hdlc_ifattach(ifp) } } - /* SYSCTL_NODE(_net_link, IFT_ETHER, ether, CTLFLAG_RW, 0, "Ethernet"); */ int diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h index 9daa50524f..c4f42ea352 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.h @@ -22,14 +22,11 @@ #ifndef __IF_HDLCSUBR_H #define __IF_HDLCSUBR_H - struct ifnet; struct mbuf; struct sockaddr; struct rtentry; - - void hdlc_ifattach __P((struct ifnet *)); void hdlc_input __P((struct ifnet *, struct mbuf *)); int hdlc_output __P((struct ifnet *, diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c b/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c index 9de8b0ff26..c53bb73ed9 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/network.c @@ -62,7 +62,6 @@ #define INET_ADDR_MAX_BUF_SIZE (sizeof "255.255.255.255") - extern void m8xx_dump_brgs( void ); /* @@ -77,7 +76,6 @@ extern void m8xx_dump_brgs( void ); */ #define START_TRANSMIT_EVENT RTEMS_EVENT_2 - /* * Receive buffer size -- Allow for a full ethernet packet plus CRC (1518). * Round off to nearest multiple of RBUF_ALIGN. @@ -128,7 +126,6 @@ struct m8260_hdlc_struct { }; static struct m8260_hdlc_struct hdlc_driver[NIFACES]; - static void m8xx_scc3_hdlc_on(const rtems_irq_connect_data* ptr) { } @@ -187,7 +184,6 @@ m8xx_scc3_interrupt_handler () #endif } - static rtems_irq_connect_data hdlcSCC3IrqData = { BSP_CPM_IRQ_SCC3, (rtems_irq_hdl) m8xx_scc3_interrupt_handler, @@ -196,7 +192,6 @@ static rtems_irq_connect_data hdlcSCC3IrqData = { (rtems_irq_is_enabled)m8xx_scc3_hdlc_isOn }; - /* * Initialize the SCC hardware * Configure I/O ports for SCC3 @@ -232,7 +227,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) m8260.psord &= ~0x00000080; m8260.pdird |= 0x00200080; - /* External Rx Clock from CLK5 */ if( m8xx_get_clk( M8xx_CLK_5 ) == -1 ) printk( "Error allocating CLK5 for network device.\n" ); @@ -245,8 +239,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) else m8260.cmxscr |= ((unsigned)brg << 8); - - /* * Allocate mbuf pointers */ @@ -283,7 +275,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) */ m8260.scc3p.mrblr = RBUF_SIZE; - m8260.scc3p.un.hdlc.c_mask = 0xF0B8; m8260.scc3p.un.hdlc.c_pres = 0xFFFF; m8260.scc3p.un.hdlc.disfc = 0; @@ -301,7 +292,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) m8260.scc3p.un.hdlc.haddr3 = 0xFFFF; /* Dummy */ m8260.scc3p.un.hdlc.haddr4 = 0xFFFF; /* Dummy */ - /* * Send "Init parameters" command */ @@ -326,7 +316,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) sc->txBdHead = sc->txBdTail = 0; sc->txBdActiveCount = 0; - m8260.scc3.sccm = 0; /* No interrupts unmasked till necessary */ /* @@ -364,8 +353,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) #endif - - m8260.scc3.gsmr_h = 0; m8260.scc3.gsmr_l = 0x10000000; m8260.scc3.dsr = 0x7E7E; /* flag character */ @@ -377,8 +364,6 @@ m8260_scc_initialize_hardware (struct m8260_hdlc_struct *sc) } - - /* * Soak up buffer descriptors that have been sent * Note that a buffer descriptor can't be retired as soon as it becomes @@ -592,7 +577,6 @@ scc_rxDaemon (void *arg) } } - static void scc_sendpacket (struct ifnet *ifp, struct mbuf *m) { @@ -682,14 +666,12 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m) txBd->buffer = mtod (m, void *); txBd->length = m->m_len; - /* * Flush the buffer for this descriptor */ rtems_cache_flush_multiple_data_lines((void *)txBd->buffer, txBd->length); - /* throw off the header for Ethernet Emulation mode */ /* txBd->buffer = mtod (m, void *); @@ -734,7 +716,6 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m) } } - /* * Driver transmit daemon */ @@ -763,16 +744,13 @@ scc_txDaemon (void *arg) if (!m) break; - scc_sendpacket (ifp, m); - } ifp->if_flags &= ~IFF_OACTIVE; } } - /* * Send packet (caller provides header). */ @@ -830,8 +808,6 @@ scc_init (void *arg) m8260.scc3.gsmr_l |= 0x30; } - - /* * Stop the device */ @@ -848,7 +824,6 @@ scc_stop (struct m8260_hdlc_struct *sc) m8260.scc3.gsmr_l &= ~0x30; } - /* * Show interface statistics */ @@ -918,8 +893,6 @@ scc_ioctl (struct ifnet *ifp, int command, caddr_t data) return error; } - - /* * Attach an SCC driver to the system */ @@ -1000,7 +973,6 @@ rtems_scc3_driver_attach (struct rtems_bsdnet_ifconfig *config) return 1; }; - int rtems_enet_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching) { |