diff options
| author | Rafal Jaworowski <raj@FreeBSD.org> | 2009-06-13 08:57:04 +0000 |
|---|---|---|
| committer | Rafal Jaworowski <raj@FreeBSD.org> | 2009-06-13 08:57:04 +0000 |
| commit | 661ee6eea523d27a894f2f6869db2661d64bd44e (patch) | |
| tree | 6011c8316f53bb84dddeeb615069d9a1f97289fe /sys/dev/tsec | |
| parent | a8675cae2b38ae9c7abb981e4a11e21a757680e6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/tsec')
| -rw-r--r-- | sys/dev/tsec/if_tsec.c | 7 | ||||
| -rw-r--r-- | sys/dev/tsec/if_tsec.h | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c index 3676cfca9a3b..23ed34e49cba 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -313,7 +313,7 @@ tsec_detach(struct tsec_softc *sc) return (0); } -void +int tsec_shutdown(device_t dev) { struct tsec_softc *sc; @@ -323,6 +323,7 @@ tsec_shutdown(device_t dev) TSEC_GLOBAL_LOCK(sc); tsec_stop(sc); TSEC_GLOBAL_UNLOCK(sc); + return (0); } int @@ -1582,7 +1583,7 @@ tsec_miibus_readreg(device_t dev, int phy, int reg) return (TSEC_READ(sc, TSEC_REG_MIIMSTAT)); } -void +int tsec_miibus_writereg(device_t dev, int phy, int reg, int value) { struct tsec_softc *sc; @@ -1606,6 +1607,8 @@ tsec_miibus_writereg(device_t dev, int phy, int reg, int value) if (timeout == 0) device_printf(dev, "Timeout while writing to PHY!\n"); + + return (0); } void diff --git a/sys/dev/tsec/if_tsec.h b/sys/dev/tsec/if_tsec.h index 55b1e4f5110a..a0ac722b681b 100644 --- a/sys/dev/tsec/if_tsec.h +++ b/sys/dev/tsec/if_tsec.h @@ -358,10 +358,10 @@ void tsec_receive_intr(void *arg); void tsec_transmit_intr(void *arg); int tsec_miibus_readreg(device_t dev, int phy, int reg); -void tsec_miibus_writereg(device_t dev, int phy, int reg, int value); +int tsec_miibus_writereg(device_t dev, int phy, int reg, int value); void tsec_miibus_statchg(device_t dev); int tsec_resume(device_t dev); /* XXX */ -void tsec_shutdown(device_t dev); +int tsec_shutdown(device_t dev); int tsec_suspend(device_t dev); /* XXX */ void tsec_get_hwaddr(struct tsec_softc *sc, uint8_t *addr); |
