summaryrefslogtreecommitdiffstats
path: root/sys/dev/sf
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-02-24 22:33:05 +0000
committerimp <imp@FreeBSD.org>2005-02-24 22:33:05 +0000
commitb5521d6df746ce6e4a69360def49ec22058017c9 (patch)
tree5029a9853f80584a87f9c3fc558ef077b42f5c62 /sys/dev/sf
parent3341256644fc97a2c2df017479c65b7efd008a68 (diff)
downloadFreeBSD-src-b5521d6df746ce6e4a69360def49ec22058017c9.zip
FreeBSD-src-b5521d6df746ce6e4a69360def49ec22058017c9.tar.gz
Fix style(9) issues with __P removal.
Noticed by: bde
Diffstat (limited to 'sys/dev/sf')
-rw-r--r--sys/dev/sf/if_sf.c72
1 files changed, 35 insertions, 37 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c
index 539ecdb..ed91f01 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
OpenPOWER on IntegriCloud