diff options
Diffstat (limited to 'drivers/net/skfp/pcmplc.c')
-rw-r--r-- | drivers/net/skfp/pcmplc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/skfp/pcmplc.c b/drivers/net/skfp/pcmplc.c index ba45bc794d77..112d35b1bf0e 100644 --- a/drivers/net/skfp/pcmplc.c +++ b/drivers/net/skfp/pcmplc.c | |||
@@ -504,7 +504,7 @@ int sm_pm_get_ls(struct s_smc *smc, int phy) | |||
504 | 504 | ||
505 | #ifdef CONCENTRATOR | 505 | #ifdef CONCENTRATOR |
506 | if (!plc_is_installed(smc,phy)) | 506 | if (!plc_is_installed(smc,phy)) |
507 | return(PC_QLS) ; | 507 | return PC_QLS; |
508 | #endif | 508 | #endif |
509 | 509 | ||
510 | state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ; | 510 | state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ; |
@@ -528,7 +528,7 @@ int sm_pm_get_ls(struct s_smc *smc, int phy) | |||
528 | default : | 528 | default : |
529 | state = PC_LS_NONE ; | 529 | state = PC_LS_NONE ; |
530 | } | 530 | } |
531 | return(state) ; | 531 | return state; |
532 | } | 532 | } |
533 | 533 | ||
534 | static int plc_send_bits(struct s_smc *smc, struct s_phy *phy, int len) | 534 | static int plc_send_bits(struct s_smc *smc, struct s_phy *phy, int len) |
@@ -547,7 +547,7 @@ static int plc_send_bits(struct s_smc *smc, struct s_phy *phy, int len) | |||
547 | #if 0 | 547 | #if 0 |
548 | printf("PL_PCM_SIGNAL is set\n") ; | 548 | printf("PL_PCM_SIGNAL is set\n") ; |
549 | #endif | 549 | #endif |
550 | return(1) ; | 550 | return 1; |
551 | } | 551 | } |
552 | /* write bit[n] & length = 1 to regs */ | 552 | /* write bit[n] & length = 1 to regs */ |
553 | outpw(PLC(np,PL_VECTOR_LEN),len-1) ; /* len=nr-1 */ | 553 | outpw(PLC(np,PL_VECTOR_LEN),len-1) ; /* len=nr-1 */ |
@@ -562,7 +562,7 @@ static int plc_send_bits(struct s_smc *smc, struct s_phy *phy, int len) | |||
562 | printf("SIGNALING bit %d .. %d\n",phy->bitn,phy->bitn+len-1) ; | 562 | printf("SIGNALING bit %d .. %d\n",phy->bitn,phy->bitn+len-1) ; |
563 | #endif | 563 | #endif |
564 | #endif | 564 | #endif |
565 | return(0) ; | 565 | return 0; |
566 | } | 566 | } |
567 | 567 | ||
568 | /* | 568 | /* |
@@ -1590,12 +1590,12 @@ int pcm_status_twisted(struct s_smc *smc) | |||
1590 | { | 1590 | { |
1591 | int twist = 0 ; | 1591 | int twist = 0 ; |
1592 | if (smc->s.sas != SMT_DAS) | 1592 | if (smc->s.sas != SMT_DAS) |
1593 | return(0) ; | 1593 | return 0; |
1594 | if (smc->y[PA].twisted && (smc->y[PA].mib->fddiPORTPCMState == PC8_ACTIVE)) | 1594 | if (smc->y[PA].twisted && (smc->y[PA].mib->fddiPORTPCMState == PC8_ACTIVE)) |
1595 | twist |= 1 ; | 1595 | twist |= 1 ; |
1596 | if (smc->y[PB].twisted && (smc->y[PB].mib->fddiPORTPCMState == PC8_ACTIVE)) | 1596 | if (smc->y[PB].twisted && (smc->y[PB].mib->fddiPORTPCMState == PC8_ACTIVE)) |
1597 | twist |= 2 ; | 1597 | twist |= 2 ; |
1598 | return(twist) ; | 1598 | return twist; |
1599 | } | 1599 | } |
1600 | 1600 | ||
1601 | /* | 1601 | /* |
@@ -1636,9 +1636,9 @@ int pcm_rooted_station(struct s_smc *smc) | |||
1636 | for (n = 0 ; n < NUMPHYS ; n++) { | 1636 | for (n = 0 ; n < NUMPHYS ; n++) { |
1637 | if (smc->y[n].mib->fddiPORTPCMState == PC8_ACTIVE && | 1637 | if (smc->y[n].mib->fddiPORTPCMState == PC8_ACTIVE && |
1638 | smc->y[n].mib->fddiPORTNeighborType == TM) | 1638 | smc->y[n].mib->fddiPORTNeighborType == TM) |
1639 | return(0) ; | 1639 | return 0; |
1640 | } | 1640 | } |
1641 | return(1) ; | 1641 | return 1; |
1642 | } | 1642 | } |
1643 | 1643 | ||
1644 | /* | 1644 | /* |
@@ -1915,7 +1915,7 @@ int get_pcm_state(struct s_smc *smc, int np) | |||
1915 | case PL_PC9 : pcs = PC_MAINT ; break ; | 1915 | case PL_PC9 : pcs = PC_MAINT ; break ; |
1916 | default : pcs = PC_DISABLE ; break ; | 1916 | default : pcs = PC_DISABLE ; break ; |
1917 | } | 1917 | } |
1918 | return(pcs) ; | 1918 | return pcs; |
1919 | } | 1919 | } |
1920 | 1920 | ||
1921 | char *get_linestate(struct s_smc *smc, int np) | 1921 | char *get_linestate(struct s_smc *smc, int np) |
@@ -1937,7 +1937,7 @@ char *get_linestate(struct s_smc *smc, int np) | |||
1937 | default: ls = "unknown" ; break ; | 1937 | default: ls = "unknown" ; break ; |
1938 | #endif | 1938 | #endif |
1939 | } | 1939 | } |
1940 | return(ls) ; | 1940 | return ls; |
1941 | } | 1941 | } |
1942 | 1942 | ||
1943 | char *get_pcmstate(struct s_smc *smc, int np) | 1943 | char *get_pcmstate(struct s_smc *smc, int np) |
@@ -1959,7 +1959,7 @@ char *get_pcmstate(struct s_smc *smc, int np) | |||
1959 | case PL_PC9 : pcs = "MAINT" ; break ; | 1959 | case PL_PC9 : pcs = "MAINT" ; break ; |
1960 | default : pcs = "UNKNOWN" ; break ; | 1960 | default : pcs = "UNKNOWN" ; break ; |
1961 | } | 1961 | } |
1962 | return(pcs) ; | 1962 | return pcs; |
1963 | } | 1963 | } |
1964 | 1964 | ||
1965 | void list_phy(struct s_smc *smc) | 1965 | void list_phy(struct s_smc *smc) |