From d24ae19d0eba5e782f802755f93ce87ab3b32e75 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 24 Feb 2005 22:33:05 +0000 Subject: Fix style(9) issues with __P removal. Noticed by: bde --- sys/dev/sf/if_sf.c | 72 ++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 37 deletions(-) (limited to 'sys/dev/sf') 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 -- cgit v1.3