diff options
| author | Warner Losh <imp@FreeBSD.org> | 2005-02-24 22:33:05 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2005-02-24 22:33:05 +0000 |
| commit | d24ae19d0eba5e782f802755f93ce87ab3b32e75 (patch) | |
| tree | 5029a9853f80584a87f9c3fc558ef077b42f5c62 /sys/dev/sf | |
| parent | 7ca39a7ff13709e677b433530c5a5e9663a177b6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sf')
| -rw-r--r-- | sys/dev/sf/if_sf.c | 72 |
1 files changed, 35 insertions, 37 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 539ecdb32d6d..ed91f015aada 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -128,52 +128,50 @@ static struct sf_type sf_devs[] = { { 0, 0, NULL } }; -static int sf_probe (device_t); -static int sf_attach (device_t); -static int sf_detach (device_t); -static void sf_intr (void *); -static void sf_stats_update (void *); -static void sf_rxeof (struct sf_softc *); -static void sf_txeof (struct sf_softc *); -static int sf_encap (struct sf_softc *, - struct sf_tx_bufdesc_type0 *, - struct mbuf *); -static void sf_start (struct ifnet *); -static int sf_ioctl (struct ifnet *, u_long, caddr_t); -static void sf_init (void *); -static void sf_stop (struct sf_softc *); -static void sf_watchdog (struct ifnet *); -static void sf_shutdown (device_t); -static int sf_ifmedia_upd (struct ifnet *); -static void sf_ifmedia_sts (struct ifnet *, struct ifmediareq *); -static void sf_reset (struct sf_softc *); -static int sf_init_rx_ring (struct sf_softc *); -static void sf_init_tx_ring (struct sf_softc *); -static int sf_newbuf (struct sf_softc *, - struct sf_rx_bufdesc_type0 *, - struct mbuf *); -static void sf_setmulti (struct sf_softc *); -static int sf_setperf (struct sf_softc *, int, caddr_t); -static int sf_sethash (struct sf_softc *, caddr_t, int); +static int sf_probe(device_t); +static int sf_attach(device_t); +static int sf_detach(device_t); +static void sf_intr(void *); +static void sf_stats_update(void *); +static void sf_rxeof(struct sf_softc *); +static void sf_txeof(struct sf_softc *); +static int sf_encap(struct sf_softc *, struct sf_tx_bufdesc_type0 *, + struct mbuf *); +static void sf_start(struct ifnet *); +static int sf_ioctl(struct ifnet *, u_long, caddr_t); +static void sf_init(void *); +static void sf_stop(struct sf_softc *); +static void sf_watchdog(struct ifnet *); +static void sf_shutdown(device_t); +static int sf_ifmedia_upd(struct ifnet *); +static void sf_ifmedia_sts(struct ifnet *, struct ifmediareq *); +static void sf_reset(struct sf_softc *); +static int sf_init_rx_ring(struct sf_softc *); +static void sf_init_tx_ring(struct sf_softc *); +static int sf_newbuf(struct sf_softc *, struct sf_rx_bufdesc_type0 *, + struct mbuf *); +static void sf_setmulti(struct sf_softc *); +static int sf_setperf(struct sf_softc *, int, caddr_t); +static int sf_sethash(struct sf_softc *, caddr_t, int); #ifdef notdef -static int sf_setvlan (struct sf_softc *, int, u_int32_t); +static int sf_setvlan(struct sf_softc *, int, u_int32_t); #endif -static u_int8_t sf_read_eeprom (struct sf_softc *, int); +static u_int8_t sf_read_eeprom(struct sf_softc *, int); -static int sf_miibus_readreg (device_t, int, int); -static int sf_miibus_writereg (device_t, int, int, int); -static void sf_miibus_statchg (device_t); +static int sf_miibus_readreg(device_t, int, int); +static int sf_miibus_writereg(device_t, int, int, int); +static void sf_miibus_statchg(device_t); #ifdef DEVICE_POLLING -static void sf_poll (struct ifnet *ifp, enum poll_cmd cmd, +static void sf_poll(struct ifnet *ifp, enum poll_cmd cmd, int count); -static void sf_poll_locked (struct ifnet *ifp, enum poll_cmd cmd, +static void sf_poll_locked(struct ifnet *ifp, enum poll_cmd cmd, int count); #endif /* DEVICE_POLLING */ -static u_int32_t csr_read_4 (struct sf_softc *, int); -static void csr_write_4 (struct sf_softc *, int, u_int32_t); -static void sf_txthresh_adjust (struct sf_softc *); +static u_int32_t csr_read_4(struct sf_softc *, int); +static void csr_write_4(struct sf_softc *, int, u_int32_t); +static void sf_txthresh_adjust(struct sf_softc *); #ifdef SF_USEIOSPACE #define SF_RES SYS_RES_IOPORT |
