diff options
author | alfred <alfred@FreeBSD.org> | 2002-03-20 02:08:01 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-03-20 02:08:01 +0000 |
commit | 3264aec746947db8598130cb0ac382cf0b2a10cf (patch) | |
tree | 13b2f09af75205c81c286aaf60527ae3de623e14 /sys/dev/sk | |
parent | e8f7a49843febbd1d96e06f28e56160c942029dd (diff) | |
download | FreeBSD-src-3264aec746947db8598130cb0ac382cf0b2a10cf.zip FreeBSD-src-3264aec746947db8598130cb0ac382cf0b2a10cf.tar.gz |
Remove __P.
Diffstat (limited to 'sys/dev/sk')
-rw-r--r-- | sys/dev/sk/if_sk.c | 97 |
1 files changed, 48 insertions, 49 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 5ba23f5..6c39da2 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -121,55 +121,54 @@ static struct sk_type sk_devs[] = { { 0, 0, NULL } }; -static int sk_probe __P((device_t)); -static int sk_attach __P((device_t)); -static int sk_detach __P((device_t)); -static int sk_detach_xmac __P((device_t)); -static int sk_probe_xmac __P((device_t)); -static int sk_attach_xmac __P((device_t)); -static void sk_tick __P((void *)); -static void sk_intr __P((void *)); -static void sk_intr_xmac __P((struct sk_if_softc *)); -static void sk_intr_bcom __P((struct sk_if_softc *)); -static void sk_rxeof __P((struct sk_if_softc *)); -static void sk_txeof __P((struct sk_if_softc *)); -static int sk_encap __P((struct sk_if_softc *, struct mbuf *, - u_int32_t *)); -static void sk_start __P((struct ifnet *)); -static int sk_ioctl __P((struct ifnet *, u_long, caddr_t)); -static void sk_init __P((void *)); -static void sk_init_xmac __P((struct sk_if_softc *)); -static void sk_stop __P((struct sk_if_softc *)); -static void sk_watchdog __P((struct ifnet *)); -static void sk_shutdown __P((device_t)); -static int sk_ifmedia_upd __P((struct ifnet *)); -static void sk_ifmedia_sts __P((struct ifnet *, struct ifmediareq *)); -static void sk_reset __P((struct sk_softc *)); -static int sk_newbuf __P((struct sk_if_softc *, - struct sk_chain *, struct mbuf *)); -static int sk_alloc_jumbo_mem __P((struct sk_if_softc *)); -static void *sk_jalloc __P((struct sk_if_softc *)); -static void sk_jfree __P((caddr_t, void *)); -static int sk_init_rx_ring __P((struct sk_if_softc *)); -static void sk_init_tx_ring __P((struct sk_if_softc *)); -static u_int32_t sk_win_read_4 __P((struct sk_softc *, int)); -static u_int16_t sk_win_read_2 __P((struct sk_softc *, int)); -static u_int8_t sk_win_read_1 __P((struct sk_softc *, int)); -static void sk_win_write_4 __P((struct sk_softc *, int, u_int32_t)); -static void sk_win_write_2 __P((struct sk_softc *, int, u_int32_t)); -static void sk_win_write_1 __P((struct sk_softc *, int, u_int32_t)); -static u_int8_t sk_vpd_readbyte __P((struct sk_softc *, int)); -static void sk_vpd_read_res __P((struct sk_softc *, - struct vpd_res *, int)); -static void sk_vpd_read __P((struct sk_softc *)); - -static int sk_miibus_readreg __P((device_t, int, int)); -static int sk_miibus_writereg __P((device_t, int, int, int)); -static void sk_miibus_statchg __P((device_t)); - -static u_int32_t sk_calchash __P((caddr_t)); -static void sk_setfilt __P((struct sk_if_softc *, caddr_t, int)); -static void sk_setmulti __P((struct sk_if_softc *)); +static int sk_probe (device_t); +static int sk_attach (device_t); +static int sk_detach (device_t); +static int sk_detach_xmac (device_t); +static int sk_probe_xmac (device_t); +static int sk_attach_xmac (device_t); +static void sk_tick (void *); +static void sk_intr (void *); +static void sk_intr_xmac (struct sk_if_softc *); +static void sk_intr_bcom (struct sk_if_softc *); +static void sk_rxeof (struct sk_if_softc *); +static void sk_txeof (struct sk_if_softc *); +static int sk_encap (struct sk_if_softc *, struct mbuf *, + u_int32_t *); +static void sk_start (struct ifnet *); +static int sk_ioctl (struct ifnet *, u_long, caddr_t); +static void sk_init (void *); +static void sk_init_xmac (struct sk_if_softc *); +static void sk_stop (struct sk_if_softc *); +static void sk_watchdog (struct ifnet *); +static void sk_shutdown (device_t); +static int sk_ifmedia_upd (struct ifnet *); +static void sk_ifmedia_sts (struct ifnet *, struct ifmediareq *); +static void sk_reset (struct sk_softc *); +static int sk_newbuf (struct sk_if_softc *, + struct sk_chain *, struct mbuf *); +static int sk_alloc_jumbo_mem (struct sk_if_softc *); +static void *sk_jalloc (struct sk_if_softc *); +static void sk_jfree (caddr_t, void *); +static int sk_init_rx_ring (struct sk_if_softc *); +static void sk_init_tx_ring (struct sk_if_softc *); +static u_int32_t sk_win_read_4 (struct sk_softc *, int); +static u_int16_t sk_win_read_2 (struct sk_softc *, int); +static u_int8_t sk_win_read_1 (struct sk_softc *, int); +static void sk_win_write_4 (struct sk_softc *, int, u_int32_t); +static void sk_win_write_2 (struct sk_softc *, int, u_int32_t); +static void sk_win_write_1 (struct sk_softc *, int, u_int32_t); +static u_int8_t sk_vpd_readbyte (struct sk_softc *, int); +static void sk_vpd_read_res (struct sk_softc *, struct vpd_res *, int); +static void sk_vpd_read (struct sk_softc *); + +static int sk_miibus_readreg (device_t, int, int); +static int sk_miibus_writereg (device_t, int, int, int); +static void sk_miibus_statchg (device_t); + +static u_int32_t sk_calchash (caddr_t); +static void sk_setfilt (struct sk_if_softc *, caddr_t, int); +static void sk_setmulti (struct sk_if_softc *); #ifdef SK_USEIOSPACE #define SK_RES SYS_RES_IOPORT |