summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tl.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/pci/if_tl.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/pci/if_tl.c')
-rw-r--r--sys/pci/if_tl.c111
1 files changed, 55 insertions, 56 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index 187c905..1415f21 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -261,62 +261,61 @@ static struct tl_type tl_devs[] = {
{ 0, 0, NULL }
};
-static int tl_probe (device_t);
-static int tl_attach (device_t);
-static int tl_detach (device_t);
-static int tl_intvec_rxeoc (void *, u_int32_t);
-static int tl_intvec_txeoc (void *, u_int32_t);
-static int tl_intvec_txeof (void *, u_int32_t);
-static int tl_intvec_rxeof (void *, u_int32_t);
-static int tl_intvec_adchk (void *, u_int32_t);
-static int tl_intvec_netsts (void *, u_int32_t);
-
-static int tl_newbuf (struct tl_softc *, struct tl_chain_onefrag *);
-static void tl_stats_update (void *);
-static int tl_encap (struct tl_softc *, struct tl_chain *,
- struct mbuf *);
-
-static void tl_intr (void *);
-static void tl_start (struct ifnet *);
-static int tl_ioctl (struct ifnet *, u_long, caddr_t);
-static void tl_init (void *);
-static void tl_stop (struct tl_softc *);
-static void tl_watchdog (struct ifnet *);
-static void tl_shutdown (device_t);
-static int tl_ifmedia_upd (struct ifnet *);
-static void tl_ifmedia_sts (struct ifnet *, struct ifmediareq *);
-
-static u_int8_t tl_eeprom_putbyte (struct tl_softc *, int);
-static u_int8_t tl_eeprom_getbyte (struct tl_softc *, int, u_int8_t *);
-static int tl_read_eeprom (struct tl_softc *, caddr_t, int, int);
-
-static void tl_mii_sync (struct tl_softc *);
-static void tl_mii_send (struct tl_softc *, u_int32_t, int);
-static int tl_mii_readreg (struct tl_softc *, struct tl_mii_frame *);
-static int tl_mii_writereg (struct tl_softc *, struct tl_mii_frame *);
-static int tl_miibus_readreg (device_t, int, int);
-static int tl_miibus_writereg (device_t, int, int, int);
-static void tl_miibus_statchg (device_t);
-
-static void tl_setmode (struct tl_softc *, int);
-static uint32_t tl_mchash (const uint8_t *);
-static void tl_setmulti (struct tl_softc *);
-static void tl_setfilt (struct tl_softc *, caddr_t, int);
-static void tl_softreset (struct tl_softc *, int);
-static void tl_hardreset (device_t);
-static int tl_list_rx_init (struct tl_softc *);
-static int tl_list_tx_init (struct tl_softc *);
-
-static u_int8_t tl_dio_read8 (struct tl_softc *, int);
-static u_int16_t tl_dio_read16 (struct tl_softc *, int);
-static u_int32_t tl_dio_read32 (struct tl_softc *, int);
-static void tl_dio_write8 (struct tl_softc *, int, int);
-static void tl_dio_write16 (struct tl_softc *, int, int);
-static void tl_dio_write32 (struct tl_softc *, int, int);
-static void tl_dio_setbit (struct tl_softc *, int, int);
-static void tl_dio_clrbit (struct tl_softc *, int, int);
-static void tl_dio_setbit16 (struct tl_softc *, int, int);
-static void tl_dio_clrbit16 (struct tl_softc *, int, int);
+static int tl_probe(device_t);
+static int tl_attach(device_t);
+static int tl_detach(device_t);
+static int tl_intvec_rxeoc(void *, u_int32_t);
+static int tl_intvec_txeoc(void *, u_int32_t);
+static int tl_intvec_txeof(void *, u_int32_t);
+static int tl_intvec_rxeof(void *, u_int32_t);
+static int tl_intvec_adchk(void *, u_int32_t);
+static int tl_intvec_netsts(void *, u_int32_t);
+
+static int tl_newbuf(struct tl_softc *, struct tl_chain_onefrag *);
+static void tl_stats_update(void *);
+static int tl_encap(struct tl_softc *, struct tl_chain *, struct mbuf *);
+
+static void tl_intr(void *);
+static void tl_start(struct ifnet *);
+static int tl_ioctl(struct ifnet *, u_long, caddr_t);
+static void tl_init(void *);
+static void tl_stop(struct tl_softc *);
+static void tl_watchdog(struct ifnet *);
+static void tl_shutdown(device_t);
+static int tl_ifmedia_upd(struct ifnet *);
+static void tl_ifmedia_sts(struct ifnet *, struct ifmediareq *);
+
+static u_int8_t tl_eeprom_putbyte(struct tl_softc *, int);
+static u_int8_t tl_eeprom_getbyte(struct tl_softc *, int, u_int8_t *);
+static int tl_read_eeprom(struct tl_softc *, caddr_t, int, int);
+
+static void tl_mii_sync(struct tl_softc *);
+static void tl_mii_send(struct tl_softc *, u_int32_t, int);
+static int tl_mii_readreg(struct tl_softc *, struct tl_mii_frame *);
+static int tl_mii_writereg(struct tl_softc *, struct tl_mii_frame *);
+static int tl_miibus_readreg(device_t, int, int);
+static int tl_miibus_writereg(device_t, int, int, int);
+static void tl_miibus_statchg(device_t);
+
+static void tl_setmode(struct tl_softc *, int);
+static uint32_t tl_mchash(const uint8_t *);
+static void tl_setmulti(struct tl_softc *);
+static void tl_setfilt(struct tl_softc *, caddr_t, int);
+static void tl_softreset(struct tl_softc *, int);
+static void tl_hardreset(device_t);
+static int tl_list_rx_init(struct tl_softc *);
+static int tl_list_tx_init(struct tl_softc *);
+
+static u_int8_t tl_dio_read8(struct tl_softc *, int);
+static u_int16_t tl_dio_read16(struct tl_softc *, int);
+static u_int32_t tl_dio_read32(struct tl_softc *, int);
+static void tl_dio_write8(struct tl_softc *, int, int);
+static void tl_dio_write16(struct tl_softc *, int, int);
+static void tl_dio_write32(struct tl_softc *, int, int);
+static void tl_dio_setbit(struct tl_softc *, int, int);
+static void tl_dio_clrbit(struct tl_softc *, int, int);
+static void tl_dio_setbit16(struct tl_softc *, int, int);
+static void tl_dio_clrbit16(struct tl_softc *, int, int);
#ifdef TL_USEIOSPACE
#define TL_RES SYS_RES_IOPORT
OpenPOWER on IntegriCloud