Deleted Added
full compact
34c34
< __FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 129876 2004-05-30 17:57:46Z phk $");
---
> __FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 135772 2004-09-24 22:24:33Z ps $");
96a97
> static void bcm5750_load_dspcode(struct mii_softc *);
148a150,155
> if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
> MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5750) {
> device_set_desc(dev, MII_STR_xxBROADCOM_BCM5750);
> return(0);
> }
>
581a589,611
> bcm5750_load_dspcode(struct mii_softc *sc)
> {
> static const struct {
> int reg;
> u_int16_t val;
> } dspcode[] = {
> { 0x18, 0x0c00 },
> { 0x17, 0x000a },
> { 0x15, 0x310b },
> { 0x17, 0x201f },
> { 0x15, 0x9506 },
> { 0x17, 0x401f },
> { 0x15, 0x14e2 },
> { 0x18, 0x0400 },
> { 0, 0 },
> };
> int i;
>
> for (i = 0; dspcode[i].reg != 0; i++)
> PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
> }
>
> static void
602a633,635
> case MII_MODEL_xxBROADCOM_BCM5750:
> bcm5750_load_dspcode(sc);
> break;