summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_ed_pccard.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-03-12 06:35:00 +0000
committerimp <imp@FreeBSD.org>2009-03-12 06:35:00 +0000
commit561efbd9f341b4c46da73ef74ce719f64604f263 (patch)
tree85df16b0711c492f95b116a7741891ffb9509009 /sys/dev/ed/if_ed_pccard.c
parent6c0b50dabdbf0fc39deb3630771034da57abb9c3 (diff)
downloadFreeBSD-src-561efbd9f341b4c46da73ef74ce719f64604f263.zip
FreeBSD-src-561efbd9f341b4c46da73ef74ce719f64604f263.tar.gz
o writereg needs to return a vlue.
o Add TJ PTJ-LAN_T card. Some more work may be needed to make this actually function correctly.
Diffstat (limited to 'sys/dev/ed/if_ed_pccard.c')
-rw-r--r--sys/dev/ed/if_ed_pccard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c
index b09ad63..28ccfc2 100644
--- a/sys/dev/ed/if_ed_pccard.c
+++ b/sys/dev/ed/if_ed_pccard.c
@@ -222,6 +222,7 @@ static const struct ed_product {
{ PCMCIA_CARD(TDK, DFL5610WS), 0},
{ PCMCIA_CARD(TELECOMDEVICE, LM5LT), 0 },
{ PCMCIA_CARD(TELECOMDEVICE, TCD_HPC100), NE2000DVF_AX88X90},
+ { PCMCIA_CARD(TJ, PTJ_LAN_T), 0 },
{ PCMCIA_CARD(ZONET, ZEN), 0},
{ { NULL } }
};
@@ -1017,7 +1018,7 @@ ed_miibus_readreg(device_t dev, int phy, int reg)
return (failed ? 0 : val);
}
-static void
+static int
ed_miibus_writereg(device_t dev, int phy, int reg, int data)
{
struct ed_softc *sc;
@@ -1028,7 +1029,7 @@ ed_miibus_writereg(device_t dev, int phy, int reg, int data)
* 0x11 through 0x1f.
*/
if (phy >= 0x11)
- return;
+ return (0);
sc = device_get_softc(dev);
(*sc->mii_writebits)(sc, 0xffffffff, 32);
@@ -1039,6 +1040,7 @@ ed_miibus_writereg(device_t dev, int phy, int reg, int data)
(*sc->mii_writebits)(sc, ED_MII_TURNAROUND, ED_MII_TURNAROUND_BITS);
(*sc->mii_writebits)(sc, data, ED_MII_DATA_BITS);
(*sc->mii_writebits)(sc, ED_MII_IDLE, ED_MII_IDLE_BITS);
+ return (0);
}
static int
OpenPOWER on IntegriCloud