Lines Matching defs:portmode
221 /* This table is for Neptune portmode == PORT_1G_SERDES cases */
271 * Figure out nxgep->mac.portmode from nxge.conf, OBP's device properties,
273 * the portmode information by calling this function. For example, the
274 * Maramba system figures out the portmode information by calling function
288 if (nxgep->mac.portmode == PORT_10G_SERDES &&
294 nxgep->mac.portmode = 0;
302 nxgep->mac.portmode = PORT_HSP_MODE;
308 nxgep->mac.portmode = PORT_HSP_MODE;
314 nxgep->mac.portmode = PORT_HSP_MODE;
321 if (nxgep->mac.portmode == PORT_HSP_MODE) {
338 nxgep->mac.portmode = PORT_10G_SERDES;
345 nxgep->mac.portmode = PORT_10G_FIBER;
361 nxgep->mac.portmode = PORT_10G_SERDES;
366 nxgep->mac.portmode = PORT_1G_SERDES;
370 nxgep->mac.portmode = PORT_1G_COPPER;
374 nxgep->mac.portmode = PORT_1G_FIBER;
393 nxgep->mac.portmode = PORT_10G_FIBER;
409 nxgep->mac.portmode));
446 nxgep->mac.portmode = PORT_10G_FIBER;
453 nxgep->mac.portmode = PORT_1G_COPPER;
458 nxgep->mac.portmode = PORT_1G_FIBER;
468 nxgep->mac.portmode = PORT_10G_SERDES;
473 nxgep->mac.portmode = PORT_1G_SERDES;
489 nxgep->mac.portmode));
517 nxgep->mac.portmode = PORT_1G_COPPER;
520 nxgep->mac.portmode = PORT_10G_FIBER;
523 nxgep->mac.portmode = PORT_1G_FIBER;
533 nxgep->mac.portmode = PORT_10G_SERDES;
536 nxgep->mac.portmode = PORT_1G_SERDES;
546 "Got phy type [0x%x] from VPD", nxgep->mac.portmode));
585 switch (nxgep->mac.portmode) {
591 (nxgep->mac.portmode == PORT_1G_FIBER) ? "Fiber" :
603 (nxgep->mac.portmode == PORT_10G_FIBER) ? "Fiber" :
604 ((nxgep->mac.portmode == PORT_10G_COPPER) ?
628 "Unable to determine NIU portmode"));
633 if (nxgep->mac.portmode == 0) {
654 nxgep->mac.portmode = PORT_1G_COPPER;
657 nxgep->mac.portmode = PORT_10G_COPPER;
660 nxgep->mac.portmode = PORT_1G_FIBER;
663 nxgep->mac.portmode = PORT_10G_FIBER;
666 nxgep->mac.portmode = PORT_1G_SERDES;
669 nxgep->mac.portmode = PORT_10G_SERDES;
673 nxgep->mac.portmode = PORT_1G_RGMII_FIBER;
683 * portmode accordingly.
701 * Above switch has figured out nxge->mac.portmode, now set
703 * to portmode.
705 switch (nxgep->mac.portmode) {
744 (nxgep->mac.portmode == PORT_1G_COPPER) ?
772 (nxgep->mac.portmode == PORT_1G_FIBER) ?
800 (nxgep->mac.portmode == PORT_10G_FIBER) ?
817 if (nxgep->mac.portmode == PORT_10G_FIBER ||
818 nxgep->mac.portmode == PORT_10G_COPPER) {
954 ((nxgep->mac.portmode == PORT_1G_SERDES) ||
955 (nxgep->mac.portmode == PORT_1G_TN1010) ||
956 (nxgep->mac.portmode == PORT_1G_FIBER)) &&
981 nxge_port_mode_t portmode;
991 portmode = nxgep->mac.portmode;
998 if (nxgep->niu_type == N2_NIU && (portmode != PORT_10G_SERDES) &&
999 (portmode != PORT_10G_TN1010) &&
1000 (portmode != PORT_1G_TN1010) &&
1001 (portmode != PORT_1G_SERDES)) {
1036 nxge_port_mode_t portmode;
1046 portmode = nxgep->mac.portmode;
1051 ((nxgep->mac.portmode == PORT_1G_SERDES) ||
1052 (nxgep->mac.portmode == PORT_1G_TN1010) ||
1053 (nxgep->mac.portmode == PORT_1G_FIBER)) &&
1064 if ((portmode == PORT_10G_FIBER) ||
1065 (portmode == PORT_10G_COPPER) ||
1066 (portmode == PORT_10G_TN1010) ||
1067 (portmode == PORT_HSP_MODE) ||
1068 (portmode == PORT_10G_SERDES))
1072 if (portmode == PORT_1G_COPPER) {
1085 if ((portmode == PORT_10G_FIBER) ||
1086 (portmode == PORT_10G_COPPER) ||
1087 (portmode == PORT_10G_TN1010) ||
1088 (portmode == PORT_1G_TN1010) ||
1089 (portmode == PORT_HSP_MODE) ||
1090 (portmode == PORT_10G_SERDES)) {
1106 if ((portmode == PORT_10G_FIBER) ||
1107 (portmode == PORT_10G_COPPER) ||
1108 (portmode == PORT_10G_TN1010) ||
1109 (portmode == PORT_HSP_MODE) ||
1110 (portmode == PORT_10G_SERDES)) {
1122 } else if ((portmode == PORT_1G_FIBER) ||
1123 (portmode == PORT_1G_COPPER) ||
1124 (portmode == PORT_1G_SERDES) ||
1125 (portmode == PORT_1G_TN1010) ||
1126 (portmode == PORT_1G_RGMII_FIBER)) {
1129 portn, portmode, statsp->mac_stats.link_speed));
1142 " for port<%d>", portmode, portn));
1152 if ((portmode == PORT_1G_COPPER) ||
1153 (portmode == PORT_1G_RGMII_FIBER)) {
1190 nxge_port_mode_t portmode;
1198 portmode = nxgep->mac.portmode;
1204 if (portmode == PORT_1G_FIBER ||
1205 portmode == PORT_1G_TN1010 ||
1206 portmode == PORT_1G_SERDES) {
1207 if (portmode == PORT_1G_TN1010) {
1232 if (portmode == PORT_1G_TN1010) {
1243 } else if (portmode == PORT_10G_FIBER ||
1244 portmode == PORT_10G_COPPER ||
1245 portmode == PORT_10G_TN1010 ||
1246 portmode == PORT_HSP_MODE ||
1247 portmode == PORT_10G_SERDES) {
1282 } else if ((portmode == PORT_1G_COPPER) ||
1283 (portmode == PORT_1G_RGMII_FIBER)) {
1507 * nxge_set_tn1010_param to set portmode before re-initializing
1510 if (nxgep->mac.portmode == PORT_1G_TN1010 ||
1511 nxgep->mac.portmode == PORT_10G_TN1010) {
1517 if (nxgep->mac.portmode == PORT_10G_FIBER ||
1518 nxgep->mac.portmode == PORT_10G_COPPER ||
1519 nxgep->mac.portmode == PORT_10G_TN1010 ||
1520 nxgep->mac.portmode == PORT_HSP_MODE ||
1521 nxgep->mac.portmode == PORT_10G_SERDES) {
1571 } else if (nxgep->mac.portmode == PORT_1G_FIBER ||
1572 nxgep->mac.portmode == PORT_1G_TN1010 ||
1573 nxgep->mac.portmode == PORT_1G_SERDES) {
1734 * nxge_set_tn1010_param to set portmode before re-initializing
1737 if (nxgep->mac.portmode == PORT_1G_TN1010 ||
1738 nxgep->mac.portmode == PORT_10G_TN1010) {
1743 if (nxgep->mac.portmode == PORT_10G_FIBER ||
1744 nxgep->mac.portmode == PORT_10G_COPPER ||
1745 nxgep->mac.portmode == PORT_10G_TN1010 ||
1746 nxgep->mac.portmode == PORT_10G_SERDES) {
1839 } else if (nxgep->mac.portmode == PORT_1G_FIBER ||
1840 nxgep->mac.portmode == PORT_1G_TN1010 ||
1841 nxgep->mac.portmode == PORT_1G_SERDES) {
1923 portn, nxgep->mac.portmode));
3634 nxgep->mac.portmode = PORT_10G_FIBER;
3640 nxgep->mac.portmode = PORT_10G_FIBER;
3647 nxgep->mac.portmode = PORT_10G_COPPER;
3655 nxgep->mac.portmode = PORT_10G_FIBER;
3791 if (nxgep->mac.portmode == PORT_10G_SERDES || nxgep->phy_absent) {
3856 if (nxgep->mac.portmode == PORT_1G_SERDES) {
3867 if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
3868 (nxgep->mac.portmode == PORT_1G_FIBER)) {
4173 nxge_port_mode_t portmode;
4181 portmode = nxgep->mac.portmode;
4210 if ((portmode == PORT_10G_FIBER) ||
4211 (portmode == PORT_10G_COPPER) ||
4212 (portmode == PORT_10G_TN1010) ||
4213 (portmode == PORT_HSP_MODE) ||
4214 (portmode == PORT_10G_SERDES)) {
4822 if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) {
5455 if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
5456 (nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) {
5460 } else if ((nxgep->mac.portmode == PORT_1G_FIBER) ||
5461 (nxgep->mac.portmode == PORT_1G_SERDES)) {
5494 if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
5495 (nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) {
5499 } else if ((nxgep->mac.portmode == PORT_1G_FIBER) ||
5500 (nxgep->mac.portmode == PORT_1G_SERDES)) {
5648 if (nxgep->mac.portmode == PORT_1G_COPPER &&
5694 if (nxgep->mac.portmode == PORT_1G_COPPER &&
5802 } else if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) {
6023 nxge->mac.portmode == PORT_10G_FIBER ? "10g" : "mii",
6067 switch (nxgep->mac.portmode) {
6105 if (nxgep->mac.portmode != PORT_1G_RGMII_FIBER) {
6156 * nxge whose portmode equals PORT_1G_SERDES does not
6210 switch (nxgep->mac.portmode) {
6263 nxgep->mac.portmode = PORT_10G_SERDES;
6366 if (nxgep->mac.portmode == PORT_10G_SERDES) {
6440 if ((nxgep->mac.portmode == PORT_10G_FIBER) ||
6441 (nxgep->mac.portmode == PORT_10G_COPPER) ||
6442 (nxgep->mac.portmode == PORT_10G_SERDES)) {
6459 if (nxgep->mac.portmode == PORT_1G_TN1010 ||
6460 nxgep->mac.portmode == PORT_10G_TN1010) {
6466 * nxgep->portmode) and nxge_setup_xcvr_table (which sets
6644 if ((nxgep->mac.portmode == PORT_10G_FIBER ||
6645 nxgep->mac.portmode == PORT_10G_COPPER ||
6646 nxgep->mac.portmode == PORT_10G_SERDES) &&
6807 * portmode and link_speed
7405 if (nxgep->mac.portmode != PORT_10G_FIBER) {
7406 nxgep->mac.portmode = PORT_10G_FIBER;
7413 if (nxgep->mac.portmode != PORT_10G_FIBER) {
7414 nxgep->mac.portmode = PORT_10G_FIBER;
7423 if (nxgep->mac.portmode != PORT_10G_COPPER) {
7424 nxgep->mac.portmode = PORT_10G_COPPER;
7446 if (nxgep->mac.portmode != PORT_10G_FIBER) {
7447 nxgep->mac.portmode = PORT_10G_FIBER;
7733 * hw_p->niu_type for each nxge instance to figure out nxgep->mac.portmode
7734 * in case the portmode information is not available via OBP, nxge.conf,
8154 * P_NEPTUNE_NIU, then portmode
8159 * figuring out portmode.
8207 * P_NEPTUNE_NIU, then portmode
8212 * figuring out portmode.
8566 nxgep->mac.portmode = PORT_1G_RGMII_FIBER;
8575 mode.value, nxgep->mac.portmode));
8751 * nxgep->mac.portmode
8767 nxgep->mac.portmode = PORT_1G_TN1010;
8771 nxgep->mac.portmode = PORT_10G_TN1010;