Lines Matching refs:media

278 static void xl_choose_media(struct xl_softc *sc, int *media);
479 * plus some non-MII media settings. In order to allow this, we have to
480 * add the extra media to the miibus's ifmedia struct, but we can't do
484 * extra media.
745 xl_setmode(struct xl_softc *sc, int media)
759 if (IFM_SUBTYPE(media) == IFM_10_T) {
771 if (IFM_SUBTYPE(media) == IFM_100_FX) {
782 if (IFM_SUBTYPE(media) == IFM_10_5) {
791 if (IFM_SUBTYPE(media) == IFM_10_FL) {
803 if (IFM_SUBTYPE(media) == IFM_10_2) {
813 if ((media & IFM_GMASK) == IFM_FDX ||
814 IFM_SUBTYPE(media) == IFM_100_FX) {
825 if (IFM_SUBTYPE(media) == IFM_10_2)
924 * or manufacturing defects that can cause the media options register
929 * the attach routine pretty badly because it doesn't know what media
931 * will try to guess the media options values and warn the user of a
939 * If some of the media options bits are set, assume they are
962 "WARNING: no media options bits set in the media options register!!\n");
966 "attempting to guess media type; you should probably consult your vendor\n");
1074 int media, pmcap;
1373 * Now we have to see what sort of media we have.
1380 device_printf(dev, "media options word: %x\n", sc->xl_media);
1473 media = IFM_ETHER|IFM_100_TX|IFM_FDX;
1474 xl_choose_media(sc, &media);
1477 ifmedia_set(&sc->ifmedia, media);
1506 * Choose a default media.
1512 xl_choose_media(struct xl_softc *sc, int *media)
1519 *media = IFM_ETHER|IFM_10_T;
1520 xl_setmode(sc, *media);
1525 *media = IFM_ETHER|IFM_10_FL;
1526 xl_setmode(sc, *media);
1528 *media = IFM_ETHER|IFM_10_5;
1529 xl_setmode(sc, *media);
1533 *media = IFM_ETHER|IFM_10_2;
1534 xl_setmode(sc, *media);
1542 *media = IFM_ETHER|IFM_100_FX;
1551 *media = IFM_ETHER|IFM_10_T;
2906 * Set media options.
2949 * Report current media status.