Renamed the FRAMELEN macro to TRUEPHY_FRAMELEN as for powerpc

it seems to be possible to collide with FRAMELEN from machine/frame.h.

Found by:	zec
This commit is contained in:
Bjoern A. Zeeb 2008-11-28 23:44:13 +00:00
parent 5c890d3c4f
commit 1e7d7466b7

View File

@ -57,7 +57,8 @@
#include "miibus_if.h"
#define FRAMELEN(mtu) (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN + (mtu) + ETHER_CRC_LEN)
#define TRUEPHY_FRAMELEN(mtu) \
(ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN + (mtu) + ETHER_CRC_LEN)
static int truephy_service(struct mii_softc *, struct mii_data *, int);
static int truephy_attach(device_t);
@ -298,7 +299,7 @@ truephy_reset(struct mii_softc *sc)
mii_phy_reset(sc);
if (FRAMELEN(sc->mii_pdata->mii_ifp->if_mtu) > 2048) {
if (TRUEPHY_FRAMELEN(sc->mii_pdata->mii_ifp->if_mtu) > 2048) {
int conf;
conf = PHY_READ(sc, TRUEPHY_CONF);