diff options
author | jkim <jkim@FreeBSD.org> | 2007-02-12 19:33:22 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2007-02-12 19:33:22 +0000 |
commit | abb3ed529cfea1325d1e7d64234e223d817eef97 (patch) | |
tree | 911f515f590acd27551cbd4ebeb560b1de138896 /sys/dev | |
parent | 1563757ce2343085b0a63d95f2f69c81167465f0 (diff) | |
download | FreeBSD-src-abb3ed529cfea1325d1e7d64234e223d817eef97.zip FreeBSD-src-abb3ed529cfea1325d1e7d64234e223d817eef97.tar.gz |
Replace magic numbers with corresponding definitions.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mii/brgphy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index 204fa64..4a6033e 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -574,14 +574,14 @@ brgphy_fixup_ber_bug(struct mii_softc *sc) int reg; u_int16_t val; } dspcode[] = { - { 0x18, 0x0c00 }, - { 0x17, 0x000a }, - { 0x15, 0x310b }, - { 0x17, 0x201f }, - { 0x15, 0x9506 }, - { 0x17, 0x401f }, - { 0x15, 0x14e2 }, - { 0x18, 0x0400 }, + { BRGPHY_MII_AUXCTL, 0x0c00 }, + { BRGPHY_MII_DSP_ADDR_REG, 0x000a }, + { BRGPHY_MII_DSP_RW_PORT, 0x310b }, + { BRGPHY_MII_DSP_ADDR_REG, 0x201f }, + { BRGPHY_MII_DSP_RW_PORT, 0x9506 }, + { BRGPHY_MII_DSP_ADDR_REG, 0x401f }, + { BRGPHY_MII_DSP_RW_PORT, 0x14e2 }, + { BRGPHY_MII_AUXCTL, 0x0400 }, { 0, 0 }, }; int i; |