Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
uPD98402.h File Reference

Go to the source code of this file.

Macros

#define uPD98402_CMR   0x00 /* Command Register */
 
#define uPD98402_MDR   0x01 /* Mode Register */
 
#define uPD98402_PICR   0x02 /* PHY Interrupt Cause Register */
 
#define uPD98402_PIMR   0x03 /* PHY Interrupt Mask Register */
 
#define uPD98402_ACR   0x04 /* Alarm Cause Register */
 
#define uPD98402_ACMR   0x05 /* Alarm Cause Mask Register */
 
#define uPD98402_PCR   0x06 /* Performance Cause Register */
 
#define uPD98402_PCMR   0x07 /* Performance Cause Mask Register */
 
#define uPD98402_IACM   0x08 /* Internal Alarm Cause Mask Register */
 
#define uPD98402_B1ECT   0x09 /* B1 Error Count Register */
 
#define uPD98402_B2ECT   0x0a /* B2 Error Count Register */
 
#define uPD98402_B3ECT   0x0b /* B3 Error Count Regster */
 
#define uPD98402_PFECB   0x0c /* Path FEBE Count Register */
 
#define uPD98402_LECCT   0x0d /* Line FEBE Count Register */
 
#define uPD98402_HECCT   0x0e /* HEC Error Count Register */
 
#define uPD98402_FJCT   0x0f /* Frequence Justification Count Reg */
 
#define uPD98402_PCOCR   0x10 /* Perf. Counter Overflow Cause Reg */
 
#define uPD98402_PCOMR   0x11 /* Perf. Counter Overflow Mask Reg */
 
#define uPD98402_C11T   0x20 /* C11T Data Register */
 
#define uPD98402_C12T   0x21 /* C12T Data Register */
 
#define uPD98402_C13T   0x22 /* C13T Data Register */
 
#define uPD98402_F1T   0x23 /* F1T Data Register */
 
#define uPD98402_K2T   0x25 /* K2T Data Register */
 
#define uPD98402_C2T   0x26 /* C2T Data Register */
 
#define uPD98402_F2T   0x27 /* F2T Data Register */
 
#define uPD98402_C11R   0x30 /* C11T Data Register */
 
#define uPD98402_C12R   0x31 /* C12T Data Register */
 
#define uPD98402_C13R   0x32 /* C13T Data Register */
 
#define uPD98402_F1R   0x33 /* F1T Data Register */
 
#define uPD98402_K2R   0x35 /* K2T Data Register */
 
#define uPD98402_C2R   0x36 /* C2T Data Register */
 
#define uPD98402_F2R   0x37 /* F2T Data Register */
 
#define uPD98402_CMR_PFRF   0x01 /* Send path FERF */
 
#define uPD98402_CMR_LFRF   0x02 /* Send line FERF */
 
#define uPD98402_CMR_PAIS   0x04 /* Send path AIS */
 
#define uPD98402_CMR_LAIS   0x08 /* Send line AIS */
 
#define uPD98402_MDR_ALP   0x01 /* ATM layer loopback */
 
#define uPD98402_MDR_TPLP   0x02 /* PMD loopback, to host */
 
#define uPD98402_MDR_RPLP   0x04 /* PMD loopback, to network */
 
#define uPD98402_MDR_SS0   0x08 /* SS0 */
 
#define uPD98402_MDR_SS1   0x10 /* SS1 */
 
#define uPD98402_MDR_SS_MASK   0x18 /* mask */
 
#define uPD98402_MDR_SS_SHIFT   3 /* shift */
 
#define uPD98402_MDR_HEC   0x20 /* disable HEC inbound processing */
 
#define uPD98402_MDR_FSR   0x40 /* disable frame scrambler */
 
#define uPD98402_MDR_CSR   0x80 /* disable cell scrambler */
 
#define uPD98402_INT_PFM   0x01 /* performance counter has changed */
 
#define uPD98402_INT_ALM   0x02 /* line fault */
 
#define uPD98402_INT_RFO   0x04 /* receive FIFO overflow */
 
#define uPD98402_INT_PCO   0x08 /* performance counter overflow */
 
#define uPD98402_INT_OTD   0x20 /* OTD has occurred */
 
#define uPD98402_INT_LOS   0x40 /* Loss Of Signal */
 
#define uPD98402_INT_LOF   0x80 /* Loss Of Frame */
 
#define uPD98402_ALM_PFRF   0x01 /* path FERF */
 
#define uPD98402_ALM_LFRF   0x02 /* line FERF */
 
#define uPD98402_ALM_PAIS   0x04 /* path AIS */
 
#define uPD98402_ALM_LAIS   0x08 /* line AIS */
 
#define uPD98402_ALM_LOD   0x10 /* loss of delineation */
 
#define uPD98402_ALM_LOP   0x20 /* loss of pointer */
 
#define uPD98402_ALM_OOF   0x40 /* out of frame */
 
#define uPD98402_PFM_PFEB   0x01 /* path FEBE */
 
#define uPD98402_PFM_LFEB   0x02 /* line FEBE */
 
#define uPD98402_PFM_B3E   0x04 /* B3 error */
 
#define uPD98402_PFM_B2E   0x08 /* B2 error */
 
#define uPD98402_PFM_B1E   0x10 /* B1 error */
 
#define uPD98402_PFM_FJ   0x20 /* frequency justification */
 
#define uPD98402_IACM_PFRF   0x01 /* don't generate path FERF */
 
#define uPD98402_IACM_LFRF   0x02 /* don't generate line FERF */
 
#define uPD98402_PCO_B1EC   0x01 /* B1ECT overflow */
 
#define uPD98402_PCO_B2EC   0x02 /* B2ECT overflow */
 
#define uPD98402_PCO_B3EC   0x04 /* B3ECT overflow */
 
#define uPD98402_PCO_PFBC   0x08 /* PFEBC overflow */
 
#define uPD98402_PCO_LFBC   0x10 /* LFEVC overflow */
 
#define uPD98402_PCO_HECC   0x20 /* HECCT overflow */
 
#define uPD98402_PCO_FJC   0x40 /* FJCT overflow */
 

Functions

int uPD98402_init (struct atm_dev *dev)
 

Macro Definition Documentation

#define uPD98402_ACMR   0x05 /* Alarm Cause Mask Register */

Definition at line 18 of file uPD98402.h.

#define uPD98402_ACR   0x04 /* Alarm Cause Register */

Definition at line 17 of file uPD98402.h.

#define uPD98402_ALM_LAIS   0x08 /* line AIS */

Definition at line 77 of file uPD98402.h.

#define uPD98402_ALM_LFRF   0x02 /* line FERF */

Definition at line 75 of file uPD98402.h.

#define uPD98402_ALM_LOD   0x10 /* loss of delineation */

Definition at line 78 of file uPD98402.h.

#define uPD98402_ALM_LOP   0x20 /* loss of pointer */

Definition at line 79 of file uPD98402.h.

#define uPD98402_ALM_OOF   0x40 /* out of frame */

Definition at line 80 of file uPD98402.h.

#define uPD98402_ALM_PAIS   0x04 /* path AIS */

Definition at line 76 of file uPD98402.h.

#define uPD98402_ALM_PFRF   0x01 /* path FERF */

Definition at line 74 of file uPD98402.h.

#define uPD98402_B1ECT   0x09 /* B1 Error Count Register */

Definition at line 22 of file uPD98402.h.

#define uPD98402_B2ECT   0x0a /* B2 Error Count Register */

Definition at line 23 of file uPD98402.h.

#define uPD98402_B3ECT   0x0b /* B3 Error Count Regster */

Definition at line 24 of file uPD98402.h.

#define uPD98402_C11R   0x30 /* C11T Data Register */

Definition at line 38 of file uPD98402.h.

#define uPD98402_C11T   0x20 /* C11T Data Register */

Definition at line 31 of file uPD98402.h.

#define uPD98402_C12R   0x31 /* C12T Data Register */

Definition at line 39 of file uPD98402.h.

#define uPD98402_C12T   0x21 /* C12T Data Register */

Definition at line 32 of file uPD98402.h.

#define uPD98402_C13R   0x32 /* C13T Data Register */

Definition at line 40 of file uPD98402.h.

#define uPD98402_C13T   0x22 /* C13T Data Register */

Definition at line 33 of file uPD98402.h.

#define uPD98402_C2R   0x36 /* C2T Data Register */

Definition at line 43 of file uPD98402.h.

#define uPD98402_C2T   0x26 /* C2T Data Register */

Definition at line 36 of file uPD98402.h.

#define uPD98402_CMR   0x00 /* Command Register */

Definition at line 13 of file uPD98402.h.

#define uPD98402_CMR_LAIS   0x08 /* Send line AIS */

Definition at line 50 of file uPD98402.h.

#define uPD98402_CMR_LFRF   0x02 /* Send line FERF */

Definition at line 48 of file uPD98402.h.

#define uPD98402_CMR_PAIS   0x04 /* Send path AIS */

Definition at line 49 of file uPD98402.h.

#define uPD98402_CMR_PFRF   0x01 /* Send path FERF */

Definition at line 47 of file uPD98402.h.

#define uPD98402_F1R   0x33 /* F1T Data Register */

Definition at line 41 of file uPD98402.h.

#define uPD98402_F1T   0x23 /* F1T Data Register */

Definition at line 34 of file uPD98402.h.

#define uPD98402_F2R   0x37 /* F2T Data Register */

Definition at line 44 of file uPD98402.h.

#define uPD98402_F2T   0x27 /* F2T Data Register */

Definition at line 37 of file uPD98402.h.

#define uPD98402_FJCT   0x0f /* Frequence Justification Count Reg */

Definition at line 28 of file uPD98402.h.

#define uPD98402_HECCT   0x0e /* HEC Error Count Register */

Definition at line 27 of file uPD98402.h.

#define uPD98402_IACM   0x08 /* Internal Alarm Cause Mask Register */

Definition at line 21 of file uPD98402.h.

#define uPD98402_IACM_LFRF   0x02 /* don't generate line FERF */

Definition at line 92 of file uPD98402.h.

#define uPD98402_IACM_PFRF   0x01 /* don't generate path FERF */

Definition at line 91 of file uPD98402.h.

#define uPD98402_INT_ALM   0x02 /* line fault */

Definition at line 66 of file uPD98402.h.

#define uPD98402_INT_LOF   0x80 /* Loss Of Frame */

Definition at line 71 of file uPD98402.h.

#define uPD98402_INT_LOS   0x40 /* Loss Of Signal */

Definition at line 70 of file uPD98402.h.

#define uPD98402_INT_OTD   0x20 /* OTD has occurred */

Definition at line 69 of file uPD98402.h.

#define uPD98402_INT_PCO   0x08 /* performance counter overflow */

Definition at line 68 of file uPD98402.h.

#define uPD98402_INT_PFM   0x01 /* performance counter has changed */

Definition at line 65 of file uPD98402.h.

#define uPD98402_INT_RFO   0x04 /* receive FIFO overflow */

Definition at line 67 of file uPD98402.h.

#define uPD98402_K2R   0x35 /* K2T Data Register */

Definition at line 42 of file uPD98402.h.

#define uPD98402_K2T   0x25 /* K2T Data Register */

Definition at line 35 of file uPD98402.h.

#define uPD98402_LECCT   0x0d /* Line FEBE Count Register */

Definition at line 26 of file uPD98402.h.

#define uPD98402_MDR   0x01 /* Mode Register */

Definition at line 14 of file uPD98402.h.

#define uPD98402_MDR_ALP   0x01 /* ATM layer loopback */

Definition at line 53 of file uPD98402.h.

#define uPD98402_MDR_CSR   0x80 /* disable cell scrambler */

Definition at line 62 of file uPD98402.h.

#define uPD98402_MDR_FSR   0x40 /* disable frame scrambler */

Definition at line 61 of file uPD98402.h.

#define uPD98402_MDR_HEC   0x20 /* disable HEC inbound processing */

Definition at line 60 of file uPD98402.h.

#define uPD98402_MDR_RPLP   0x04 /* PMD loopback, to network */

Definition at line 55 of file uPD98402.h.

#define uPD98402_MDR_SS0   0x08 /* SS0 */

Definition at line 56 of file uPD98402.h.

#define uPD98402_MDR_SS1   0x10 /* SS1 */

Definition at line 57 of file uPD98402.h.

#define uPD98402_MDR_SS_MASK   0x18 /* mask */

Definition at line 58 of file uPD98402.h.

#define uPD98402_MDR_SS_SHIFT   3 /* shift */

Definition at line 59 of file uPD98402.h.

#define uPD98402_MDR_TPLP   0x02 /* PMD loopback, to host */

Definition at line 54 of file uPD98402.h.

#define uPD98402_PCMR   0x07 /* Performance Cause Mask Register */

Definition at line 20 of file uPD98402.h.

#define uPD98402_PCO_B1EC   0x01 /* B1ECT overflow */

Definition at line 95 of file uPD98402.h.

#define uPD98402_PCO_B2EC   0x02 /* B2ECT overflow */

Definition at line 96 of file uPD98402.h.

#define uPD98402_PCO_B3EC   0x04 /* B3ECT overflow */

Definition at line 97 of file uPD98402.h.

#define uPD98402_PCO_FJC   0x40 /* FJCT overflow */

Definition at line 101 of file uPD98402.h.

#define uPD98402_PCO_HECC   0x20 /* HECCT overflow */

Definition at line 100 of file uPD98402.h.

#define uPD98402_PCO_LFBC   0x10 /* LFEVC overflow */

Definition at line 99 of file uPD98402.h.

#define uPD98402_PCO_PFBC   0x08 /* PFEBC overflow */

Definition at line 98 of file uPD98402.h.

#define uPD98402_PCOCR   0x10 /* Perf. Counter Overflow Cause Reg */

Definition at line 29 of file uPD98402.h.

#define uPD98402_PCOMR   0x11 /* Perf. Counter Overflow Mask Reg */

Definition at line 30 of file uPD98402.h.

#define uPD98402_PCR   0x06 /* Performance Cause Register */

Definition at line 19 of file uPD98402.h.

#define uPD98402_PFECB   0x0c /* Path FEBE Count Register */

Definition at line 25 of file uPD98402.h.

#define uPD98402_PFM_B1E   0x10 /* B1 error */

Definition at line 87 of file uPD98402.h.

#define uPD98402_PFM_B2E   0x08 /* B2 error */

Definition at line 86 of file uPD98402.h.

#define uPD98402_PFM_B3E   0x04 /* B3 error */

Definition at line 85 of file uPD98402.h.

#define uPD98402_PFM_FJ   0x20 /* frequency justification */

Definition at line 88 of file uPD98402.h.

#define uPD98402_PFM_LFEB   0x02 /* line FEBE */

Definition at line 84 of file uPD98402.h.

#define uPD98402_PFM_PFEB   0x01 /* path FEBE */

Definition at line 83 of file uPD98402.h.

#define uPD98402_PICR   0x02 /* PHY Interrupt Cause Register */

Definition at line 15 of file uPD98402.h.

#define uPD98402_PIMR   0x03 /* PHY Interrupt Mask Register */

Definition at line 16 of file uPD98402.h.

Function Documentation

int uPD98402_init ( struct atm_dev dev)

Definition at line 248 of file uPD98402.c.