summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti/if_ti.c
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/ti/if_ti.c
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/ti/if_ti.c')
-rw-r--r--sys/dev/ti/if_ti.c114
1 files changed, 55 insertions, 59 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index 856dab9..9af8393 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -195,67 +195,63 @@ static struct cdevsw ti_cdevsw = {
.d_name = "ti",
};
-static int ti_probe (device_t);
-static int ti_attach (device_t);
-static int ti_detach (device_t);
-static void ti_txeof (struct ti_softc *);
-static void ti_rxeof (struct ti_softc *);
-
-static void ti_stats_update (struct ti_softc *);
-static int ti_encap (struct ti_softc *, struct mbuf *, u_int32_t *);
-
-static void ti_intr (void *);
-static void ti_start (struct ifnet *);
-static int ti_ioctl (struct ifnet *, u_long, caddr_t);
-static void ti_init (void *);
-static void ti_init2 (struct ti_softc *);
-static void ti_stop (struct ti_softc *);
-static void ti_watchdog (struct ifnet *);
-static void ti_shutdown (device_t);
-static int ti_ifmedia_upd (struct ifnet *);
-static void ti_ifmedia_sts (struct ifnet *, struct ifmediareq *);
-
-static u_int32_t ti_eeprom_putbyte (struct ti_softc *, int);
-static u_int8_t ti_eeprom_getbyte (struct ti_softc *, int, u_int8_t *);
-static int ti_read_eeprom (struct ti_softc *, caddr_t, int, int);
-
-static void ti_add_mcast (struct ti_softc *, struct ether_addr *);
-static void ti_del_mcast (struct ti_softc *, struct ether_addr *);
-static void ti_setmulti (struct ti_softc *);
-
-static void ti_mem (struct ti_softc *, u_int32_t,
- u_int32_t, caddr_t);
-static int ti_copy_mem (struct ti_softc *, u_int32_t,
- u_int32_t, caddr_t, int, int);
-static int ti_copy_scratch (struct ti_softc *, u_int32_t,
- u_int32_t, caddr_t, int, int, int);
-static int ti_bcopy_swap (const void *, void *, size_t,
- ti_swap_type);
-static void ti_loadfw (struct ti_softc *);
-static void ti_cmd (struct ti_softc *, struct ti_cmd_desc *);
-static void ti_cmd_ext (struct ti_softc *, struct ti_cmd_desc *,
- caddr_t, int);
-static void ti_handle_events (struct ti_softc *);
+static int ti_probe(device_t);
+static int ti_attach(device_t);
+static int ti_detach(device_t);
+static void ti_txeof(struct ti_softc *);
+static void ti_rxeof(struct ti_softc *);
+
+static void ti_stats_update(struct ti_softc *);
+static int ti_encap(struct ti_softc *, struct mbuf *, u_int32_t *);
+
+static void ti_intr(void *);
+static void ti_start(struct ifnet *);
+static int ti_ioctl(struct ifnet *, u_long, caddr_t);
+static void ti_init(void *);
+static void ti_init2(struct ti_softc *);
+static void ti_stop(struct ti_softc *);
+static void ti_watchdog(struct ifnet *);
+static void ti_shutdown(device_t);
+static int ti_ifmedia_upd(struct ifnet *);
+static void ti_ifmedia_sts(struct ifnet *, struct ifmediareq *);
+
+static u_int32_t ti_eeprom_putbyte(struct ti_softc *, int);
+static u_int8_t ti_eeprom_getbyte(struct ti_softc *, int, u_int8_t *);
+static int ti_read_eeprom(struct ti_softc *, caddr_t, int, int);
+
+static void ti_add_mcast(struct ti_softc *, struct ether_addr *);
+static void ti_del_mcast(struct ti_softc *, struct ether_addr *);
+static void ti_setmulti(struct ti_softc *);
+
+static void ti_mem(struct ti_softc *, u_int32_t, u_int32_t, caddr_t);
+static int ti_copy_mem(struct ti_softc *, u_int32_t, u_int32_t, caddr_t, int, int);
+static int ti_copy_scratch(struct ti_softc *, u_int32_t, u_int32_t, caddr_t,
+ int, int, int);
+static int ti_bcopy_swap(const void *, void *, size_t, ti_swap_type);
+static void ti_loadfw(struct ti_softc *);
+static void ti_cmd(struct ti_softc *, struct ti_cmd_desc *);
+static void ti_cmd_ext(struct ti_softc *, struct ti_cmd_desc *, caddr_t, int);
+static void ti_handle_events(struct ti_softc *);
#ifdef TI_PRIVATE_JUMBOS
-static int ti_alloc_jumbo_mem (struct ti_softc *);
-static void *ti_jalloc (struct ti_softc *);
-static void ti_jfree (void *, void *);
+static int ti_alloc_jumbo_mem(struct ti_softc *);
+static void *ti_jalloc(struct ti_softc *);
+static void ti_jfree(void *, void *);
#endif /* TI_PRIVATE_JUMBOS */
-static int ti_newbuf_std (struct ti_softc *, int, struct mbuf *);
-static int ti_newbuf_mini (struct ti_softc *, int, struct mbuf *);
-static int ti_newbuf_jumbo (struct ti_softc *, int, struct mbuf *);
-static int ti_init_rx_ring_std (struct ti_softc *);
-static void ti_free_rx_ring_std (struct ti_softc *);
-static int ti_init_rx_ring_jumbo (struct ti_softc *);
-static void ti_free_rx_ring_jumbo (struct ti_softc *);
-static int ti_init_rx_ring_mini (struct ti_softc *);
-static void ti_free_rx_ring_mini (struct ti_softc *);
-static void ti_free_tx_ring (struct ti_softc *);
-static int ti_init_tx_ring (struct ti_softc *);
-
-static int ti_64bitslot_war (struct ti_softc *);
-static int ti_chipinit (struct ti_softc *);
-static int ti_gibinit (struct ti_softc *);
+static int ti_newbuf_std(struct ti_softc *, int, struct mbuf *);
+static int ti_newbuf_mini(struct ti_softc *, int, struct mbuf *);
+static int ti_newbuf_jumbo(struct ti_softc *, int, struct mbuf *);
+static int ti_init_rx_ring_std(struct ti_softc *);
+static void ti_free_rx_ring_std(struct ti_softc *);
+static int ti_init_rx_ring_jumbo(struct ti_softc *);
+static void ti_free_rx_ring_jumbo(struct ti_softc *);
+static int ti_init_rx_ring_mini(struct ti_softc *);
+static void ti_free_rx_ring_mini(struct ti_softc *);
+static void ti_free_tx_ring(struct ti_softc *);
+static int ti_init_tx_ring(struct ti_softc *);
+
+static int ti_64bitslot_war(struct ti_softc *);
+static int ti_chipinit(struct ti_softc *);
+static int ti_gibinit(struct ti_softc *);
#ifdef TI_JUMBO_HDRSPLIT
static __inline void ti_hdr_split (struct mbuf *top, int hdr_len,
OpenPOWER on IntegriCloud