Lines Matching refs:media

37  *	All media SHOULD work, FX is untested
641 if (dnetp->bnc_indicator == 0) /* Disable BNC and AUI media */
730 /* if the chosen media is non-MII, stop the port monitor */
1880 /* Rely on media code */
2054 /* Scrambler for SYM style media */
2062 /* Rely on media code */
3114 is_fdmedia(int media)
3116 if (media == MEDIA_TP_FD || media == MEDIA_SYM_SCR_FD)
3123 * "Linkset" is used to merge media that use the same link test check. So,
3128 linkset_add(uint32_t *set, int media)
3130 if (media == MEDIA_TP_FD || media == MEDIA_TP)
3132 else if (media == MEDIA_SYM_SCR_FD || media == MEDIA_SYM_SCR)
3134 else *set |= 1UL<<media;
3137 linkset_isset(uint32_t linkset, int media)
3139 return (((1UL<<media) & linkset) ? 1:0);
3184 * tells us that the first media entry in the SROM is the lowest
3190 * 10 link being chosen over a 100 link if both media are available.
3191 * So we continue trying the media until we have at least tried the
3192 * DEFAULT media.
3198 int media = block->media_code;
3201 if (dnetp->disallowed_media & (1UL<<media))
3210 media_str[media], block->type);
3219 if (!is_fdmedia(media))
3228 if (!linkset_isset(checked, media)) {
3229 linkset_add(&checked, media);
3230 if (((media == MEDIA_BNC ||
3231 media == MEDIA_AUI) &&
3234 linkset_add(&links_up, media);
3237 if (linkset_isset(links_up, media)) {
3239 * Half Duplex is *always* the favoured media.
3243 if (!is_fdmedia(media) &&
3247 * Cogent cards have the media in
3249 * this code forces the media test to
3250 * keep going until the default media
3261 } else if (!is_fdmedia(media)) {
3264 * properly by remembering the media
3272 * No media have already been found
3315 cmn_err(CE_WARN, "!dnet: Default media selected\n");
3417 * do this with all media within 50ms. However, the SMC 8432
3422 * required. This is done if the media type is TP
3769 * Find and configure the PHY media block. If NO PHY blocks are
4108 cmn_err(CE_WARN, "dnet: Too many media in SROM!");
4128 * There are three kinds of media block we need to worry about:
4146 /* No media data (csrs 13,14,15). Insert defaults */
4303 default: /* Unknown media block. Skip it. */
4340 block->command = 0x8e; /* PCS, PS off, media sense: bit7, pol=1 */
4344 block->command = 0x8e; /* PCS, PS off, media sense: bit7, pol=1 */
4348 block->command = 0x6d; /* PCS, PS, SCR on, media sense: bit6, pol=0 */
4352 block->command = 0x406d; /* PCS, PS, SCR on, media sense: bit6, pol=0 */
4362 block->command = 0x8000; /* No media sense, PCS, SCR, PS all off */
4371 block->command = 0x8e; /* PCS, PS off, media sense: bit7, pol=1 */
4380 block->command = 0x8e; /* PCS, PS off, media sense: bit7, pol=1 */
4389 block->command = 0x6d; /* PCS, PS, SCR on, media sense: bit6, pol=0 */
4398 block->command = 0x406d; /* PCS, PS, SCR on, media sense: bit6, pol=0 */
4523 cmn_err(CE_NOTE, "Block(%p): type %x, media %s, command: %x ",