diff options
author | phk <phk@FreeBSD.org> | 1995-12-10 13:40:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-10 13:40:44 +0000 |
commit | e7008a284eab826ab8cc8f3cdadd22a325c67196 (patch) | |
tree | aaefb89a560ab76e15fa576ab1458dd020b6e04e /sys/i386/isa/if_le.c | |
parent | 6a1611e3f8697d6b86f0ce460a09f863f0645323 (diff) | |
download | FreeBSD-src-e7008a284eab826ab8cc8f3cdadd22a325c67196.zip FreeBSD-src-e7008a284eab826ab8cc8f3cdadd22a325c67196.tar.gz |
Staticize and cleanup.
Diffstat (limited to 'sys/i386/isa/if_le.c')
-rw-r--r-- | sys/i386/isa/if_le.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c index 241f47c..10efff4 100644 --- a/sys/i386/isa/if_le.c +++ b/sys/i386/isa/if_le.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_le.c,v 1.24 1995/12/05 02:01:13 davidg Exp $ + * $Id: if_le.c,v 1.25 1995/12/07 12:46:00 davidg Exp $ */ /* @@ -267,9 +267,9 @@ struct le_board { }; -le_softc_t le_softc[NLE]; +static le_softc_t le_softc[NLE]; -const le_board_t le_boards[] = { +static const le_board_t le_boards[] = { #if !defined(LE_NOLEMAC) { lemac_probe }, /* DE20[345] */ #endif @@ -286,7 +286,7 @@ struct isa_driver ledriver = { le_probe, le_attach, "le", }; -unsigned le_intrs[NLE]; +static unsigned le_intrs[NLE]; #define LE_ADDREQUAL(a1, a2) \ (((u_short *)a1)[0] == ((u_short *)a2)[0] \ @@ -841,13 +841,13 @@ static const int lemac_irqs[] = { IRQ5, IRQ10, IRQ11, IRQ15 }; /* * Some tuning/monitoring variables. */ -unsigned lemac_deftxmax = 16; /* see lemac_max above */ -unsigned lemac_txnospc = 0; /* total # of tranmit starvations */ +static unsigned lemac_deftxmax = 16; /* see lemac_max above */ +static unsigned lemac_txnospc = 0; /* total # of tranmit starvations */ -unsigned lemac_tne_intrs = 0; /* total # of tranmit done intrs */ -unsigned lemac_rne_intrs = 0; /* total # of receive done intrs */ -unsigned lemac_txd_intrs = 0; /* total # of tranmit error intrs */ -unsigned lemac_rxd_intrs = 0; /* total # of receive error intrs */ +static unsigned lemac_tne_intrs = 0; /* total # of tranmit done intrs */ +static unsigned lemac_rne_intrs = 0; /* total # of receive done intrs */ +static unsigned lemac_txd_intrs = 0; /* total # of tranmit error intrs */ +static unsigned lemac_rxd_intrs = 0; /* total # of receive error intrs */ static int @@ -1104,7 +1104,6 @@ lemac_rne_intr( } else { /* end if (*rxptr & LEMAC_RX_OK) */ sc->le_if.if_ierrors++; } -next: LE_OUTB(sc, LEMAC_REG_FMQ, rxpg); /* Return this page to Free Memory Queue */ } /* end while (recv_count--) */ @@ -1356,7 +1355,7 @@ static int lance_tx_intr(le_softc_t *sc); #define LN_DESC_MAX 128 #if LN_DOSTATS -struct { +static struct { unsigned lance_rx_misses; unsigned lance_rx_badcrc; unsigned lance_rx_badalign; |