pc.h

来自「优龙2410linux2.6.8内核源代码」· C头文件 代码 · 共 652 行 · 第 1/3 页

H
652
字号
     |                  V = 1 -> Protocol Speed is variable     |                  C = 0 -> speed setting according to standard     |                  C = 1 -> speed setting for chinese implementation  11 | 0 0 0 0 0 0 R T  P0 - V42bis Compression enable/disable, Low Byte     |                  T = 0 -> Transmit Direction enable     |                  T = 1 -> Transmit Direction disable     |                  R = 0 -> Receive  Direction enable     |                  R = 1 -> Receive  Direction disable  13 | 0 0 0 0 0 0 0 0  P0 - V42bis Compression enable/disable, High Byte  14 | X X X X X X X X  P1 - V42bis Dictionary Size, Low Byte  15 | X X X X X X X X  P1 - V42bis Dictionary Size, High Byte  16 | X X X X X X X X  P2 - V42bis String Length, Low Byte  17 | X X X X X X X X  P2 - V42bis String Length, High Byte  18 | X X X X X X X X  PIAFS extension length  19 | 1 0 0 0 0 0 0 0  PIAFS extension Id (0x80) - UDATA abilities  20 | U 0 0 0 0 0 0 D  UDATA abilities -> Note (2)     |                  up to now the following Bits are defined:     |                  D - signal DCD ON     |                  U - use extensive UDATA control communication     |                      for DDI test application+ Note (1): ----------+------+-----------------------------------------+| PIAFS Protocol      | Bit  |                                         || Speed configuration |    S | Bit 1 - Protocol Speed                  ||                     |      |         0 - 32K                         ||                     |      |         1 - 64K (default)               ||                     |    V | Bit 2 - Variable Protocol Speed         ||                     |      |         0 - Speed is fix                ||                     |      |         1 - Speed is variable (default) ||                     |      |             OVERWRITES 32k Bit 1        ||                     |    C | Bit 3   0 - Speed Settings according to ||                     |      |             PIAFS specification         ||                     |      |         1 - Speed setting for chinese   ||                     |      |             PIAFS implementation        ||                     |      | Explanation for chinese speed settings: ||                     |      |         if Bit 3 is set the following   ||                     |      |         rules apply:                    ||                     |      |         Bit1=0 Bit2=0: 32k fix          ||                     |      |         Bit1=1 Bit2=0: 64k fix          ||                     |      |         Bit1=0 Bit2=1: PIAFS is trying  ||                     |      |             to negotiate 32k is that is ||                     |      |             not possible it tries to    ||                     |      |             negotiate 64k               ||                     |      |         Bit1=1 Bit2=1: PIAFS is trying  ||                     |      |             to negotiate 64k is that is ||                     |      |             not possible it tries to    ||                     |      |             negotiate 32k               |+ Note (2): ----------+------+-----------------------------------------+| PIAFS               | Bit  | this byte defines the usage of UDATA    || Implementation      |      | control communication                   || UDATA usage         |    D | Bit 1 - DCD-ON signalling               ||                     |      |         0 - no DCD-ON is signalled      ||                     |      |             (default)                   ||                     |      |         1 - DCD-ON will be signalled    ||                     |    U | Bit 8 - DDI test application UDATA      ||                     |      |         control communication           ||                     |      |         0 - no UDATA control            ||                     |      |             communication (default)     ||                     |      |             sets as well the DCD-ON     ||                     |      |             signalling                  ||                     |      |         1 - UDATA control communication ||                     |      |             ATTENTION: Do not use these ||                     |      |                        setting if you   ||                     |      |                        are not really   ||                     |      |                        that you need it ||                     |      |                        and you know     ||                     |      |                        exactly what you ||                     |      |                        are doing.       ||                     |      |                        You can easily   ||                     |      |                        disable any      ||                     |      |                        data transfer.   |+---------------------+------+-----------------------------------------+*//*------------------------------------------------------------------*//* CAPI-like profile to indicate features on LAW_REQ                *//*------------------------------------------------------------------*/#define GL_INTERNAL_CONTROLLER_SUPPORTED     0x00000001L#define GL_EXTERNAL_EQUIPMENT_SUPPORTED      0x00000002L#define GL_HANDSET_SUPPORTED                 0x00000004L#define GL_DTMF_SUPPORTED                    0x00000008L#define GL_SUPPLEMENTARY_SERVICES_SUPPORTED  0x00000010L#define GL_CHANNEL_ALLOCATION_SUPPORTED      0x00000020L#define GL_BCHANNEL_OPERATION_SUPPORTED      0x00000040L#define GL_LINE_INTERCONNECT_SUPPORTED       0x00000080L#define B1_HDLC_SUPPORTED                    0x00000001L#define B1_TRANSPARENT_SUPPORTED             0x00000002L#define B1_V110_ASYNC_SUPPORTED              0x00000004L#define B1_V110_SYNC_SUPPORTED               0x00000008L#define B1_T30_SUPPORTED                     0x00000010L#define B1_HDLC_INVERTED_SUPPORTED           0x00000020L#define B1_TRANSPARENT_R_SUPPORTED           0x00000040L#define B1_MODEM_ALL_NEGOTIATE_SUPPORTED     0x00000080L#define B1_MODEM_ASYNC_SUPPORTED             0x00000100L#define B1_MODEM_SYNC_HDLC_SUPPORTED         0x00000200L#define B2_X75_SUPPORTED                     0x00000001L#define B2_TRANSPARENT_SUPPORTED             0x00000002L#define B2_SDLC_SUPPORTED                    0x00000004L#define B2_LAPD_SUPPORTED                    0x00000008L#define B2_T30_SUPPORTED                     0x00000010L#define B2_PPP_SUPPORTED                     0x00000020L#define B2_TRANSPARENT_NO_CRC_SUPPORTED      0x00000040L#define B2_MODEM_EC_COMPRESSION_SUPPORTED    0x00000080L#define B2_X75_V42BIS_SUPPORTED              0x00000100L#define B2_V120_ASYNC_SUPPORTED              0x00000200L#define B2_V120_ASYNC_V42BIS_SUPPORTED       0x00000400L#define B2_V120_BIT_TRANSPARENT_SUPPORTED    0x00000800L#define B2_LAPD_FREE_SAPI_SEL_SUPPORTED      0x00001000L#define B3_TRANSPARENT_SUPPORTED             0x00000001L#define B3_T90NL_SUPPORTED                   0x00000002L#define B3_ISO8208_SUPPORTED                 0x00000004L#define B3_X25_DCE_SUPPORTED                 0x00000008L#define B3_T30_SUPPORTED                     0x00000010L#define B3_T30_WITH_EXTENSIONS_SUPPORTED     0x00000020L#define B3_RESERVED_SUPPORTED                0x00000040L#define B3_MODEM_SUPPORTED                   0x00000080L#define MANUFACTURER_FEATURE_SLAVE_CODEC          0x00000001L#define MANUFACTURER_FEATURE_FAX_MORE_DOCUMENTS   0x00000002L#define MANUFACTURER_FEATURE_HARDDTMF             0x00000004L#define MANUFACTURER_FEATURE_SOFTDTMF_SEND        0x00000008L#define MANUFACTURER_FEATURE_DTMF_PARAMETERS      0x00000010L#define MANUFACTURER_FEATURE_SOFTDTMF_RECEIVE     0x00000020L#define MANUFACTURER_FEATURE_FAX_SUB_SEP_PWD      0x00000040L#define MANUFACTURER_FEATURE_V18                  0x00000080L#define MANUFACTURER_FEATURE_MIXER_CH_CH          0x00000100L#define MANUFACTURER_FEATURE_MIXER_CH_PC          0x00000200L#define MANUFACTURER_FEATURE_MIXER_PC_CH          0x00000400L#define MANUFACTURER_FEATURE_MIXER_PC_PC          0x00000800L#define MANUFACTURER_FEATURE_ECHO_CANCELLER       0x00001000L#define MANUFACTURER_FEATURE_RTP                  0x00002000L#define MANUFACTURER_FEATURE_T38                  0x00004000L#define MANUFACTURER_FEATURE_TRANSP_DELIVERY_CONF 0x00008000L#define MANUFACTURER_FEATURE_XONOFF_FLOW_CONTROL  0x00010000L#define MANUFACTURER_FEATURE_OOB_CHANNEL          0x00020000L#define MANUFACTURER_FEATURE_IN_BAND_CHANNEL      0x00040000L#define MANUFACTURER_FEATURE_IN_BAND_FEATURE      0x00080000L#define MANUFACTURER_FEATURE_PIAFS                0x00100000L#define MANUFACTURER_FEATURE_DTMF_TONE            0x00200000L#define MANUFACTURER_FEATURE_FAX_PAPER_FORMATS    0x00400000L#define MANUFACTURER_FEATURE_OK_FC_LABEL          0x00800000L#define MANUFACTURER_FEATURE_VOWN                 0x01000000L#define MANUFACTURER_FEATURE_XCONNECT             0x02000000L#define MANUFACTURER_FEATURE_DMACONNECT           0x04000000L#define MANUFACTURER_FEATURE_AUDIO_TAP            0x08000000L#define MANUFACTURER_FEATURE_FAX_NONSTANDARD      0x10000000L#define RTP_PRIM_PAYLOAD_PCMU_8000     0#define RTP_PRIM_PAYLOAD_1016_8000     1#define RTP_PRIM_PAYLOAD_G726_32_8000  2#define RTP_PRIM_PAYLOAD_GSM_8000      3#define RTP_PRIM_PAYLOAD_G723_8000     4#define RTP_PRIM_PAYLOAD_DVI4_8000     5#define RTP_PRIM_PAYLOAD_DVI4_16000    6#define RTP_PRIM_PAYLOAD_LPC_8000      7#define RTP_PRIM_PAYLOAD_PCMA_8000     8#define RTP_PRIM_PAYLOAD_G722_16000    9#define RTP_PRIM_PAYLOAD_QCELP_8000    12#define RTP_PRIM_PAYLOAD_G728_8000     14#define RTP_PRIM_PAYLOAD_G729_8000     18#define RTP_PRIM_PAYLOAD_GSM_HR_8000   30#define RTP_PRIM_PAYLOAD_GSM_EFR_8000  31#define RTP_ADD_PAYLOAD_BASE           32#define RTP_ADD_PAYLOAD_RED            32#define RTP_ADD_PAYLOAD_CN_8000        33#define RTP_ADD_PAYLOAD_DTMF           34#define RTP_PRIM_PAYLOAD_PCMU_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_PCMU_8000)#define RTP_PRIM_PAYLOAD_1016_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_1016_8000)#define RTP_PRIM_PAYLOAD_G726_32_8000_SUPPORTED  (1L << RTP_PRIM_PAYLOAD_G726_32_8000)#define RTP_PRIM_PAYLOAD_GSM_8000_SUPPORTED      (1L << RTP_PRIM_PAYLOAD_GSM_8000)#define RTP_PRIM_PAYLOAD_G723_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_G723_8000)#define RTP_PRIM_PAYLOAD_DVI4_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_DVI4_8000)#define RTP_PRIM_PAYLOAD_DVI4_16000_SUPPORTED    (1L << RTP_PRIM_PAYLOAD_DVI4_16000)#define RTP_PRIM_PAYLOAD_LPC_8000_SUPPORTED      (1L << RTP_PRIM_PAYLOAD_LPC_8000)#define RTP_PRIM_PAYLOAD_PCMA_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_PCMA_8000)#define RTP_PRIM_PAYLOAD_G722_16000_SUPPORTED    (1L << RTP_PRIM_PAYLOAD_G722_16000)#define RTP_PRIM_PAYLOAD_QCELP_8000_SUPPORTED    (1L << RTP_PRIM_PAYLOAD_QCELP_8000)#define RTP_PRIM_PAYLOAD_G728_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_G728_8000)#define RTP_PRIM_PAYLOAD_G729_8000_SUPPORTED     (1L << RTP_PRIM_PAYLOAD_G729_8000)#define RTP_PRIM_PAYLOAD_GSM_HR_8000_SUPPORTED   (1L << RTP_PRIM_PAYLOAD_GSM_HR_8000)#define RTP_PRIM_PAYLOAD_GSM_EFR_8000_SUPPORTED  (1L << RTP_PRIM_PAYLOAD_GSM_EFR_8000)#define RTP_ADD_PAYLOAD_RED_SUPPORTED            (1L << (RTP_ADD_PAYLOAD_RED - RTP_ADD_PAYLOAD_BASE))#define RTP_ADD_PAYLOAD_CN_8000_SUPPORTED        (1L << (RTP_ADD_PAYLOAD_CN_8000 - RTP_ADD_PAYLOAD_BASE))#define RTP_ADD_PAYLOAD_DTMF_SUPPORTED           (1L << (RTP_ADD_PAYLOAD_DTMF - RTP_ADD_PAYLOAD_BASE))/* virtual switching definitions */#define VSJOIN         1#define VSTRANSPORT    2#define VSGETPARAMS    3#define VSCAD          1#define VSRXCPNAME     2#define VSCALLSTAT     3#define VSINVOKEID    4#define VSCLMRKS       5#define VSTBCTIDENT    6/* -----------------------------------------------------------**** The PROTOCOL_FEATURE_STRING in feature.h (included         **** in prstart.sx and astart.sx) defines capabilities and      **** features of the actual protocol code. It's used as a bit   **** mask.                                                      **** The following Bits are defined:                            **** -----------------------------------------------------------*/#define PROTCAP_TELINDUS  0x0001  /* Telindus Variant of protocol code   */#define PROTCAP_MAN_IF    0x0002  /* Management interface implemented    */#define PROTCAP_V_42      0x0004  /* V42 implemented                     */#define PROTCAP_V90D      0x0008  /* V.90D (implies up to 384k DSP code) */#define PROTCAP_EXTD_FAX  0x0010  /* Extended FAX (ECM, 2D, T6, Polling) */#define PROTCAP_EXTD_RXFC 0x0020  /* RxFC (Extd Flow Control), OOB Chnl  */#define PROTCAP_VOIP      0x0040  /* VoIP (implies up to 512k DSP code)  */#define PROTCAP_CMA_ALLPR 0x0080  /* CMA support for all NL primitives   */#define PROTCAP_FREE8     0x0100  /* not used                            */#define PROTCAP_FREE9     0x0200  /* not used                            */#define PROTCAP_FREE10    0x0400  /* not used                            */#define PROTCAP_FREE11    0x0800  /* not used                            */#define PROTCAP_FREE12    0x1000  /* not used                            */#define PROTCAP_FREE13    0x2000  /* not used                            */#define PROTCAP_FREE14    0x4000  /* not used                            */#define PROTCAP_EXTENSION 0x8000  /* used for future extentions          */#else#endif /* PC_H_INCLUDED  } */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?