msk(4): Add flag to mark the controller is 100baseTX only
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 31 Jul 2011 06:33:17 +0000 (14:33 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 31 Jul 2011 06:58:06 +0000 (14:58 +0800)
Obtained-from: FreeBSD 192723

sys/dev/netif/msk/if_msk.c
sys/dev/netif/msk/if_mskreg.h

index fe5858e..30ed31b 100644 (file)
@@ -1575,6 +1575,7 @@ mskc_attach(device_t dev)
                break;
        case CHIP_ID_YUKON_FE:
                sc->msk_clock = 100;    /* 100 Mhz */
+               sc->msk_pflags |= MSK_FLAG_FASTETHER;
                break;
        case CHIP_ID_YUKON_XL:
                sc->msk_clock = 156;    /* 156 Mhz */
index beb5c4e..733cad1 100644 (file)
@@ -2363,6 +2363,7 @@ struct msk_if_softc {
        int                     msk_phyaddr;
        int                     msk_link;
        uint32_t                msk_flags;
+#define MSK_FLAG_FASTETHER     0x0004
 #define MSK_FLAG_RAMBUF                0x0010
        struct callout          msk_tick_ch;
        uint32_t                msk_txq;        /* Tx. Async Queue offset */