aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ti/if_ti.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-02-24 22:33:05 +0000
committerWarner Losh <imp@FreeBSD.org>2005-02-24 22:33:05 +0000
commitd24ae19d0eba5e782f802755f93ce87ab3b32e75 (patch)
tree5029a9853f80584a87f9c3fc558ef077b42f5c62 /sys/dev/ti/if_ti.c
parent7ca39a7ff13709e677b433530c5a5e9663a177b6 (diff)
downloadsrc-d24ae19d0eba5e782f802755f93ce87ab3b32e75.tar.gz
src-d24ae19d0eba5e782f802755f93ce87ab3b32e75.zip
Fix style(9) issues with __P removal.
Noticed by: bde
Notes
Notes: svn path=/head/; revision=142407
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 856dab9a961d..9af8393a31af 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,