summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-17 23:08:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-17 23:08:55 +0000
commit76ce226f8c2f07429bd6f4e84cf3dd239620f9ab (patch)
tree453eaa6eff085ab5ff5c2505422d7162c1693984
parent0c2a6a12c0345289480364166901a27f4bcd4618 (diff)
downloadrtems-76ce226f8c2f07429bd6f4e84cf3dd239620f9ab.tar.bz2
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* libchip/network/dec21140.c: Fix spacing -- remove long sections of blank lines.
-rw-r--r--c/src/ChangeLog5
-rw-r--r--c/src/libchip/network/dec21140.c117
2 files changed, 5 insertions, 117 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index 50b24e7b7b..61f5ef0007 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-17 Joel Sherrill <joel@OARcorp.com>
+
+ * libchip/network/dec21140.c: Fix spacing -- remove long sections of
+ blank lines.
+
2006-11-15 Ralf Cors├ępius <ralf.corsepius@rtems.org>
* configure.ac: Remove RTEMS_AMPOLISH3.
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index f5a7dc792b..eaeefe36fa 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -160,8 +160,6 @@
#define CLEAR_IT 0xFFFFFFFF
#define NO_IT 0x00000000
-
-
/* message descriptor entry */
struct MD {
/* used by hardware */
@@ -173,9 +171,6 @@ struct MD {
volatile struct MD *next;
} __attribute__ ((packed));
-
-
-
/*
** These buffers allocated for each unit, so ensure
**
@@ -195,13 +190,11 @@ struct MD {
#define NRXBUFS 16 /* number of receive buffers */
#define NTXBUFS 16 /* number of transmit buffers */
-
/*
* Number of DEC boards supported by this driver
*/
#define NDECDRIVER 8
-
/*
* Receive buffer size -- Allow for a full ethernet packet including CRC
*/
@@ -209,7 +202,6 @@ struct MD {
#define ET_MINLEN 60 /* minimum message length */
-
/*
** Events, one per unit. The event is sent to the rx task from the isr
** or from the stack to the tx task whenever a unit needs service. The
@@ -226,7 +218,6 @@ static rtems_event_set unit_signals[NDECDRIVER]= { RTEMS_EVENT_1,
RTEMS_EVENT_7,
RTEMS_EVENT_8 };
-
#if defined(__PPC__)
#define phys_to_bus(address) ((unsigned int)((address)) + PCI_DRAM_OFFSET)
#define bus_to_phys(address) ((unsigned int)((address)) - PCI_DRAM_OFFSET)
@@ -243,10 +234,6 @@ extern void Wait_X_ms( unsigned int timeToWait );
# error "Driver must have MCLBYTES > RBUF_SIZE"
#endif
-
-
-
-
/*
* Per-device data
*/
@@ -299,22 +286,6 @@ static struct dec21140_softc dec21140_softc[NDECDRIVER];
static rtems_id rxDaemonTid;
static rtems_id txDaemonTid;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/*
* This routine reads a word (16 bits) from the serial EEPROM.
*/
@@ -366,43 +337,16 @@ static int eeget16(volatile unsigned int *ioaddr, int location)
return ( ((retval<<8)&0xff00) | ((retval>>8)&0xff) );
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
static void no_op(const rtems_irq_connect_data* irq)
{
return;
}
-
-
-
static int dec21140IsOn(const rtems_irq_connect_data* irq)
{
return BSP_irq_enabled_at_i8259s (irq->name);
}
-
-
-
/*
* DEC21140 interrupt handler
*/
@@ -430,8 +374,6 @@ dec21140Enet_interrupt_handler ( struct dec21140_softc *sc )
}
}
-
-
static rtems_isr
dec21140Enet_interrupt_handler_entry()
{
@@ -448,15 +390,6 @@ dec21140Enet_interrupt_handler_entry()
}
}
-
-
-
-
-
-
-
-
-
/*
* Initialize the ethernet hardware
*/
@@ -479,8 +412,6 @@ dec21140Enet_initialize_hardware (struct dec21140_softc *sc)
sc->port, (unsigned) sc->base, sc->irqInfo.name );
#endif
-
-
tbase = sc->base;
/*
@@ -602,10 +533,6 @@ dec21140Enet_initialize_hardware (struct dec21140_softc *sc)
sc->TxMD = rmd+1;
-
-
-
-
sc->irqInfo.hdl = (rtems_irq_hdl)dec21140Enet_interrupt_handler_entry;
sc->irqInfo.on = no_op;
sc->irqInfo.off = no_op;
@@ -624,12 +551,6 @@ dec21140Enet_initialize_hardware (struct dec21140_softc *sc)
rtems_panic ("dec2114x : Interrupt name %d already in use\n", sc->irqInfo.name );
}
-
-
-
-
-
-
static void
dec21140_rxDaemon (void *arg)
{
@@ -697,12 +618,6 @@ dec21140_rxDaemon (void *arg)
}
}
-
-
-
-
-
-
static void
sendpacket (struct ifnet *ifp, struct mbuf *m)
{
@@ -749,10 +664,6 @@ sendpacket (struct ifnet *ifp, struct mbuf *m)
dp->TxMD = tmd->next;
}
-
-
-
-
/*
* Driver transmit daemon
*/
@@ -802,9 +713,6 @@ dec21140_txDaemon (void *arg)
}
}
-
-
-
static void
dec21140_start (struct ifnet *ifp)
{
@@ -813,10 +721,6 @@ dec21140_start (struct ifnet *ifp)
ifp->if_flags |= IFF_OACTIVE;
}
-
-
-
-
/*
* Initialize and start the device
*/
@@ -849,12 +753,6 @@ dec21140_init (void *arg)
ifp->if_flags |= IFF_RUNNING;
}
-
-
-
-
-
-
/*
* Stop the device
*/
@@ -876,7 +774,6 @@ dec21140_stop (struct dec21140_softc *sc)
/* free((void*)sc->bufferBase); */
}
-
/*
* Show interface statistics
*/
@@ -903,9 +800,6 @@ dec21140_stats (struct dec21140_softc *sc)
printf (" Raw output wait:%-8lu\n", sc->txRawWait);
}
-
-
-
/*
* Driver ioctl handler
*/
@@ -957,11 +851,6 @@ dec21140_ioctl (struct ifnet *ifp, u_long command, caddr_t data)
}
-
-
-
-
-
/*
int iftap(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m )
{
@@ -979,10 +868,6 @@ int iftap(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m )
}
*/
-
-
-
-
/*
* Attach an DEC21140 driver to the system
*/
@@ -1005,7 +890,6 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
unsigned int lvalue;
#endif
-
/*
* Get the instance number for the board we're going to configure
* from the user.
@@ -1204,7 +1088,6 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
printk( "dec2114x : driver attached\n" );
#endif
-
/*
* Start driver tasks if this is the first dec unit initialized
*/