diff options
Diffstat (limited to 'sys/dev/vr/if_vr.c')
-rw-r--r-- | sys/dev/vr/if_vr.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 0956396..33a6897 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -121,45 +121,45 @@ static struct vr_type vr_devs[] = { { 0, 0, NULL } }; -static int vr_probe __P((device_t)); -static int vr_attach __P((device_t)); -static int vr_detach __P((device_t)); +static int vr_probe (device_t); +static int vr_attach (device_t); +static int vr_detach (device_t); -static int vr_newbuf __P((struct vr_softc *, +static int vr_newbuf (struct vr_softc *, struct vr_chain_onefrag *, - struct mbuf *)); -static int vr_encap __P((struct vr_softc *, struct vr_chain *, - struct mbuf * )); - -static void vr_rxeof __P((struct vr_softc *)); -static void vr_rxeoc __P((struct vr_softc *)); -static void vr_txeof __P((struct vr_softc *)); -static void vr_txeoc __P((struct vr_softc *)); -static void vr_tick __P((void *)); -static void vr_intr __P((void *)); -static void vr_start __P((struct ifnet *)); -static int vr_ioctl __P((struct ifnet *, u_long, caddr_t)); -static void vr_init __P((void *)); -static void vr_stop __P((struct vr_softc *)); -static void vr_watchdog __P((struct ifnet *)); -static void vr_shutdown __P((device_t)); -static int vr_ifmedia_upd __P((struct ifnet *)); -static void vr_ifmedia_sts __P((struct ifnet *, struct ifmediareq *)); - -static void vr_mii_sync __P((struct vr_softc *)); -static void vr_mii_send __P((struct vr_softc *, u_int32_t, int)); -static int vr_mii_readreg __P((struct vr_softc *, struct vr_mii_frame *)); -static int vr_mii_writereg __P((struct vr_softc *, struct vr_mii_frame *)); -static int vr_miibus_readreg __P((device_t, int, int)); -static int vr_miibus_writereg __P((device_t, int, int, int)); -static void vr_miibus_statchg __P((device_t)); - -static void vr_setcfg __P((struct vr_softc *, int)); -static u_int8_t vr_calchash __P((u_int8_t *)); -static void vr_setmulti __P((struct vr_softc *)); -static void vr_reset __P((struct vr_softc *)); -static int vr_list_rx_init __P((struct vr_softc *)); -static int vr_list_tx_init __P((struct vr_softc *)); + struct mbuf *); +static int vr_encap (struct vr_softc *, struct vr_chain *, + struct mbuf * ); + +static void vr_rxeof (struct vr_softc *); +static void vr_rxeoc (struct vr_softc *); +static void vr_txeof (struct vr_softc *); +static void vr_txeoc (struct vr_softc *); +static void vr_tick (void *); +static void vr_intr (void *); +static void vr_start (struct ifnet *); +static int vr_ioctl (struct ifnet *, u_long, caddr_t); +static void vr_init (void *); +static void vr_stop (struct vr_softc *); +static void vr_watchdog (struct ifnet *); +static void vr_shutdown (device_t); +static int vr_ifmedia_upd (struct ifnet *); +static void vr_ifmedia_sts (struct ifnet *, struct ifmediareq *); + +static void vr_mii_sync (struct vr_softc *); +static void vr_mii_send (struct vr_softc *, u_int32_t, int); +static int vr_mii_readreg (struct vr_softc *, struct vr_mii_frame *); +static int vr_mii_writereg (struct vr_softc *, struct vr_mii_frame *); +static int vr_miibus_readreg (device_t, int, int); +static int vr_miibus_writereg (device_t, int, int, int); +static void vr_miibus_statchg (device_t); + +static void vr_setcfg (struct vr_softc *, int); +static u_int8_t vr_calchash (u_int8_t *); +static void vr_setmulti (struct vr_softc *); +static void vr_reset (struct vr_softc *); +static int vr_list_rx_init (struct vr_softc *); +static int vr_list_tx_init (struct vr_softc *); #ifdef VR_USEIOSPACE #define VR_RES SYS_RES_IOPORT |