Lines Matching refs:media

254      * Before we are sure this is the right media we need
293 tulip_media_set(tulip_softc_t * const sc, tulip_media_t media)
295 const tulip_media_info_t *mi = sc->tulip_mediums[media];
302 * If we are switching media, make sure we don't think there's
376 if (TULIP_IS_MEDIA_FD(media))
378 if (TULIP_IS_MEDIA_100MB(media))
386 tulip_linkup(tulip_softc_t * const sc, tulip_media_t media)
396 if (TULIP_CAN_MEDIA_FD(media)
397 && sc->tulip_mediums[TULIP_FD_MEDIA_OF(media)] != NULL)
398 media = TULIP_FD_MEDIA_OF(media);
400 if (TULIP_IS_MEDIA_FD(media)
401 && sc->tulip_mediums[TULIP_HD_MEDIA_OF(media)] != NULL)
402 media = TULIP_HD_MEDIA_OF(media);
406 if (sc->tulip_media != media) {
410 sc->tulip_media = media;
431 * No reason to change media if we have the right media.
462 tulip_media_t media;
467 * If one of the media blocks contained a default media flag,
470 for (media = TULIP_MEDIA_UNKNOWN; media < TULIP_MEDIA_MAX; media++) {
475 if ((mi = sc->tulip_mediums[media]) == NULL || TULIP_IS_MEDIA_FD(media))
481 * Remember the media is this is the "default" media.
484 maybe_media = media;
500 __func__, tulip_mediums[media], TULIP_CSR_READ(sc, csr_gp) & 0xFF,
504 * It does! If this is the first media we detected, then
505 * remember this media. If isn't the first, then there were
510 last_media = media;
511 } else if (last_media != media) {
571 * if we had selected media because of autonegotiation,
572 * we need to probe for the new media.
642 * Link Monitor failed. Probe for new media.
690 * If the SROM contained an explicit media to use, use it.
725 * If we really transmitted a packet, then that's the media we'll use.
729 /* XXX Check media status just to be sure */
744 * Check for media via the general purpose register.
746 * Try to sense the media via the GPR. If the same value
769 * Brute force. We cycle through each of the media types
787 * Try the next media.
805 * Only probe if we autonegotiated a media that hasn't failed.
834 * switch to another media if we tried this one enough.
839 device_printf(sc->tulip_dev, "poll media unknown!\n");
844 * Find the next media type to check for. Full Duplex
928 * If this board has no media, just return
942 tulip_21040_mediainfo_init(tulip_softc_t * const sc, tulip_media_t media)
949 if (media == TULIP_MEDIA_10BASET || media == TULIP_MEDIA_UNKNOWN) {
955 if (media == TULIP_MEDIA_AUIBNC || media == TULIP_MEDIA_UNKNOWN) {
959 if (media == TULIP_MEDIA_UNKNOWN) {
1129 * proper media to use.
1137 * Only then start scanning the other media for activity.
1138 * choose media with receive activity over those without.
1208 * Since this media failed to probe, try the other one.
1488 tulip_media_t media = sc->tulip_media;
1492 media = sc->tulip_media;
1494 media = sc->tulip_probe_media;
1498 if (media != TULIP_MEDIA_UNKNOWN && media != TULIP_MEDIA_MAX) {
1500 if (media < TULIP_MEDIA_MAX && sc->tulip_mediums[media] != NULL) {
1502 mi = sc->tulip_mediums[media];
1514 device_printf(sc->tulip_dev, "preset: bad media %d!\n", media);
1518 switch (media) {
1573 tulip_media_t const media, unsigned gpdata, unsigned cmdmode)
1576 sc->tulip_mediums[media] = mip;
2382 * Didn't find the right media block for this card.
2414 tulip_media_t media;
2421 media = tulip_srom_mediums[idx3].sm_type;
2422 if (media != TULIP_MEDIA_UNKNOWN) {
2425 sc->tulip_mediums[media] = mi;
2431 switch (media) {
2487 tulip_media_t media;
2493 media = tulip_srom_mediums[idx3].sm_type;
2494 if (media == TULIP_MEDIA_UNKNOWN)
2497 sc->tulip_mediums[media] = mi;
2499 if (media > gp_media && !TULIP_IS_MEDIA_FD(media)) {
2501 gp_media = media;
2576 tulip_media_t media;
2582 media = tulip_srom_mediums[idx3].sm_type;
2583 if (media == TULIP_MEDIA_UNKNOWN)
2586 sc->tulip_mediums[media] = mi;
2593 switch (media) {
2678 tulip_media_t media;
2684 media = tulip_srom_mediums[idx3].sm_type;
2685 if (media == TULIP_MEDIA_UNKNOWN)
2688 sc->tulip_mediums[media] = mi;
2700 if (TULIP_IS_MEDIA_TP(media))
2949 tulip_media_t media;
2953 for (media = TULIP_MEDIA_UNKNOWN; media < TULIP_MEDIA_MAX; media++) {
2954 if (sc->tulip_mediums[media] != NULL) {
2955 ifmedia_add(&sc->tulip_ifmedia, tulip_media_to_ifmedia[media],
2984 tulip_media_t media;
2985 for (media = TULIP_MEDIA_UNKNOWN; media < TULIP_MEDIA_MAX; media++) {
2986 if (sc->tulip_mediums[media] != NULL
2987 && sc->tulip_ifmedia.ifm_media == tulip_media_to_ifmedia[media]) {
2990 tulip_linkup(sc, media);
3270 /* initialize the media */
3670 * Escape from the loop before media poll has reset the TULIP!