summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/3c509/3c509.c')
-rw-r--r--c/src/lib/libbsp/i386/pc386/3c509/3c509.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/3c509/3c509.c b/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
index cf06a85916..09ed6e0da1 100644
--- a/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
+++ b/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
@@ -58,6 +58,9 @@
*
* MODIFICATION/HISTORY:
* $Log$
+ * Revision 1.3 2004/04/21 10:42:43 ralf
+ * Remove stray white spaces.
+ *
* Revision 1.2 1999/12/13 21:21:31 joel
* Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.
*
@@ -151,7 +154,6 @@ struct isa_device
u_int id_irq; /* interrupt request */
};
-
struct ep_board
{
int epb_addr; /* address of this board */
@@ -162,7 +164,6 @@ struct ep_board
u_short res_cfg; /* resource configuration */
};
-
/*
* Ethernet software status per interface.
*/
@@ -192,7 +193,6 @@ struct ep_softc
short rx_overrunl;
};
-
/* static unsigned long loopc; */
static volatile unsigned long overrun;
static volatile unsigned long resend;
@@ -216,7 +216,6 @@ static char *ep_conn_type[] = {"UTP", "AUI", "???", "BNC"};
#define ep_fset(f) (sc->stat|=(f))
#define ep_frst(f) (sc->stat&=~(f))
-
/* forward declarations for functions */
static int ep_attach( struct ep_softc *sc );
static int ep_isa_probe( struct isa_device *is );
@@ -231,7 +230,6 @@ static void ep_intr( struct ep_softc *sc );
/* external functions */
extern void Wait_X_ms( unsigned int timeToWait ); /* timer.c ??? */
-
/**********************************************************************************
*
* DESCRIPTION: Writes a buffer of data to the I/O port. The data is sent to the
@@ -285,7 +283,6 @@ static __inline void outsb( unsigned short io_addr, unsigned char *out_data, int
}
}
-
/**********************************************************************************
*
* DESCRIPTION: Read a buffer of data from an I/O port. The data is read as 16 bits
@@ -338,7 +335,6 @@ static __inline void insb( unsigned short io_addr, unsigned char *in_data, int l
}
}
-
/**********************************************************************************
*
* DESCRIPTION: Writes a word to the I/O port.
@@ -354,7 +350,6 @@ static __inline void outw( unsigned short io_addr, unsigned short out_data )
outport_word( io_addr, out_data );
}
-
/**********************************************************************************
*
* DESCRIPTION: Routine to read a word as defined in FreeBSD.
@@ -395,7 +390,6 @@ static __inline unsigned char inb( unsigned short io_addr )
return in_data;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -423,7 +417,6 @@ static int get_eeprom_data( int id_port, int offset )
return( data );
}
-
/**********************************************************************************
*
* DESCRIPTION: Waits until the EEPROM of the card is ready to be accessed.
@@ -464,7 +457,6 @@ u_short get_e( struct ep_softc *sc, int offset )
return( inw( BASE + EP_W0_EEPROM_DATA ) );
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -485,7 +477,6 @@ static rtems_isr ap_interrupt_handler( rtems_vector_number v )
rtems_event_send( sc->rxDaemonTid, INTERRUPT_EVENT );
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -510,7 +501,6 @@ static int _3c509_IsOn(const rtems_irq_connect_data* irq)
return BSP_irq_enabled_at_i8259s (irq->name);
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -568,7 +558,6 @@ static void _3c509_rxDaemon (void *arg)
printf ("3C509: RX Daemon is finishing.\n");
}
-
/**********************************************************************************
*
* DESCRIPTION: Driver transmit daemon
@@ -601,7 +590,6 @@ static void _3c509_txDaemon (void *arg)
printf ("3C509: TX Daemon is finishing.\n");
}
-
/**********************************************************************************
*
* DESCRIPTION: Activates the trabsmitter task...
@@ -680,7 +668,6 @@ static void _3c509_stop (struct ep_softc *sc)
outw(BASE + EP_COMMAND, SET_RX_FILTER);
}
-
/**********************************************************************************
*
* DESCRIPTION: Show interface statistics
@@ -857,7 +844,6 @@ int rtems_3c509_driver_attach (struct rtems_bsdnet_ifconfig *config )
return 1;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -971,8 +957,6 @@ static struct ep_board *ep_look_for_board_at( struct isa_device *is )
}
}
-
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1039,8 +1023,6 @@ static int ep_isa_probe( struct isa_device *is )
return (EP_IOSIZE); /* 16 bytes of I/O space used. */
}
-
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1127,7 +1109,6 @@ static int ep_attach( struct ep_softc *sc )
return 0;
}
-
/**********************************************************************************
*
* DESCRIPTION:
@@ -1255,7 +1236,6 @@ static void epinit( struct ep_softc *sc )
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE; /* just in case */
-
sc->rx_no_first = sc->rx_no_mbuf =
sc->rx_bpf_disc = sc->rx_overrunf = sc->rx_overrunl =
sc->tx_underrun = 0;
@@ -1278,7 +1258,6 @@ static void epinit( struct ep_softc *sc )
GO_WINDOW(1);
}
-
static const char padmap[] = {0, 3, 2, 1};
/**********************************************************************************
@@ -1386,8 +1365,6 @@ readcheck:
goto startagain;
}
-
-
/**********************************************************************************
*
* DESCRIPTION: Routine to read frames from the card.
@@ -1530,8 +1507,6 @@ out:
outw(BASE + EP_COMMAND, SET_RX_EARLY_THRESH | RX_INIT_EARLY_THRESH);
}
-
-
/**********************************************************************************
*
* DESCRIPTION: