Path: blob/master/drivers/isdn/hardware/eicon/capi20.h
15115 views
1/*2*3Copyright (c) Eicon Networks, 2002.4*5This source file is supplied for the use with6Eicon Networks range of DIVA Server Adapters.7*8Eicon File Revision : 2.19*10This program is free software; you can redistribute it and/or modify11it under the terms of the GNU General Public License as published by12the Free Software Foundation; either version 2, or (at your option)13any later version.14*15This program is distributed in the hope that it will be useful,16but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY17implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.18See the GNU General Public License for more details.19*20You should have received a copy of the GNU General Public License21along with this program; if not, write to the Free Software22Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.23*24*/25#ifndef _INC_CAPI2026#define _INC_CAPI2027/* operations on message queues */28/* the common device type for CAPI20 drivers */29#define FILE_DEVICE_CAPI20 0x800130/* DEVICE_CONTROL codes for user and kernel mode applications */31#define CAPI20_CTL_REGISTER 0x080132#define CAPI20_CTL_RELEASE 0x080233#define CAPI20_CTL_GET_MANUFACTURER 0x080534#define CAPI20_CTL_GET_VERSION 0x080635#define CAPI20_CTL_GET_SERIAL 0x080736#define CAPI20_CTL_GET_PROFILE 0x080837/* INTERNAL_DEVICE_CONTROL codes for kernel mode applicatios only */38#define CAPI20_CTL_PUT_MESSAGE 0x080339#define CAPI20_CTL_GET_MESSAGE 0x080440/* the wrapped codes as required by the system */41#define CAPI_CTL_CODE(f,m) CTL_CODE(FILE_DEVICE_CAPI20,f,m,FILE_ANY_ACCESS)42#define IOCTL_CAPI_REGISTER CAPI_CTL_CODE(CAPI20_CTL_REGISTER,METHOD_BUFFERED)43#define IOCTL_CAPI_RELEASE CAPI_CTL_CODE(CAPI20_CTL_RELEASE,METHOD_BUFFERED)44#define IOCTL_CAPI_GET_MANUFACTURER CAPI_CTL_CODE(CAPI20_CTL_GET_MANUFACTURER,METHOD_BUFFERED)45#define IOCTL_CAPI_GET_VERSION CAPI_CTL_CODE(CAPI20_CTL_GET_VERSION,METHOD_BUFFERED)46#define IOCTL_CAPI_GET_SERIAL CAPI_CTL_CODE(CAPI20_CTL_GET_SERIAL,METHOD_BUFFERED)47#define IOCTL_CAPI_GET_PROFILE CAPI_CTL_CODE(CAPI20_CTL_GET_PROFILE,METHOD_BUFFERED)48#define IOCTL_CAPI_PUT_MESSAGE CAPI_CTL_CODE(CAPI20_CTL_PUT_MESSAGE,METHOD_BUFFERED)49#define IOCTL_CAPI_GET_MESSAGE CAPI_CTL_CODE(CAPI20_CTL_GET_MESSAGE,METHOD_BUFFERED)50struct divas_capi_register_params {51word MessageBufferSize;52word maxLogicalConnection;53word maxBDataBlocks;54word maxBDataLen;55};56struct divas_capi_version {57word CapiMajor;58word CapiMinor;59word ManuMajor;60word ManuMinor;61};62typedef struct api_profile_s {63word Number;64word Channels;65dword Global_Options;66dword B1_Protocols;67dword B2_Protocols;68dword B3_Protocols;69} API_PROFILE;70/* ISDN Common API message types */71#define _ALERT_R 0x800172#define _CONNECT_R 0x800273#define _CONNECT_I 0x820274#define _CONNECT_ACTIVE_I 0x820375#define _DISCONNECT_R 0x800476#define _DISCONNECT_I 0x820477#define _LISTEN_R 0x800578#define _INFO_R 0x800879#define _INFO_I 0x820880#define _SELECT_B_REQ 0x804181#define _FACILITY_R 0x808082#define _FACILITY_I 0x828083#define _CONNECT_B3_R 0x808284#define _CONNECT_B3_I 0x828285#define _CONNECT_B3_ACTIVE_I 0x828386#define _DISCONNECT_B3_R 0x808487#define _DISCONNECT_B3_I 0x828488#define _DATA_B3_R 0x808689#define _DATA_B3_I 0x828690#define _RESET_B3_R 0x808791#define _RESET_B3_I 0x828792#define _CONNECT_B3_T90_ACTIVE_I 0x828893#define _MANUFACTURER_R 0x80ff94#define _MANUFACTURER_I 0x82ff95/* OR this to convert a REQUEST to a CONFIRM */96#define CONFIRM 0x010097/* OR this to convert a INDICATION to a RESPONSE */98#define RESPONSE 0x010099/*------------------------------------------------------------------*/100/* diehl isdn private MANUFACTURER codes */101/*------------------------------------------------------------------*/102#define _DI_MANU_ID 0x44444944103#define _DI_ASSIGN_PLCI 0x0001104#define _DI_ADV_CODEC 0x0002105#define _DI_DSP_CTRL 0x0003106#define _DI_SIG_CTRL 0x0004107#define _DI_RXT_CTRL 0x0005108#define _DI_IDI_CTRL 0x0006109#define _DI_CFG_CTRL 0x0007110#define _DI_REMOVE_CODEC 0x0008111#define _DI_OPTIONS_REQUEST 0x0009112#define _DI_SSEXT_CTRL 0x000a113#define _DI_NEGOTIATE_B3 0x000b114/*------------------------------------------------------------------*/115/* parameter structures */116/*------------------------------------------------------------------*/117/* ALERT-REQUEST */118typedef struct {119byte structs[1]; /* Additional Info */120} _ALT_REQP;121/* ALERT-CONFIRM */122typedef struct {123word Info;124} _ALT_CONP;125/* CONNECT-REQUEST */126typedef struct {127word CIP_Value;128byte structs[1]; /* Called party number,129Called party subaddress,130Calling party number,131Calling party subaddress,132B_protocol,133BC,134LLC,135HLC,136Additional Info */137} _CON_REQP;138/* CONNECT-CONFIRM */139typedef struct {140word Info;141} _CON_CONP;142/* CONNECT-INDICATION */143typedef struct {144word CIP_Value;145byte structs[1]; /* Called party number,146Called party subaddress,147Calling party number,148Calling party subaddress,149BC,150LLC,151HLC,152Additional Info */153} _CON_INDP;154/* CONNECT-RESPONSE */155typedef struct {156word Accept;157byte structs[1]; /* B_protocol,158Connected party number,159Connected party subaddress,160LLC */161} _CON_RESP;162/* CONNECT-ACTIVE-INDICATION */163typedef struct {164byte structs[1]; /* Connected party number,165Connected party subaddress,166LLC */167} _CON_A_INDP;168/* CONNECT-ACTIVE-RESPONSE */169typedef struct {170byte structs[1]; /* empty */171} _CON_A_RESP;172/* DISCONNECT-REQUEST */173typedef struct {174byte structs[1]; /* Additional Info */175} _DIS_REQP;176/* DISCONNECT-CONFIRM */177typedef struct {178word Info;179} _DIS_CONP;180/* DISCONNECT-INDICATION */181typedef struct {182word Info;183} _DIS_INDP;184/* DISCONNECT-RESPONSE */185typedef struct {186byte structs[1]; /* empty */187} _DIS_RESP;188/* LISTEN-REQUEST */189typedef struct {190dword Info_Mask;191dword CIP_Mask;192byte structs[1]; /* Calling party number,193Calling party subaddress */194} _LIS_REQP;195/* LISTEN-CONFIRM */196typedef struct {197word Info;198} _LIS_CONP;199/* INFO-REQUEST */200typedef struct {201byte structs[1]; /* Called party number,202Additional Info */203} _INF_REQP;204/* INFO-CONFIRM */205typedef struct {206word Info;207} _INF_CONP;208/* INFO-INDICATION */209typedef struct {210word Number;211byte structs[1]; /* Info element */212} _INF_INDP;213/* INFO-RESPONSE */214typedef struct {215byte structs[1]; /* empty */216} _INF_RESP;217/* SELECT-B-REQUEST */218typedef struct {219byte structs[1]; /* B-protocol */220} _SEL_B_REQP;221/* SELECT-B-CONFIRM */222typedef struct {223word Info;224} _SEL_B_CONP;225/* FACILITY-REQUEST */226typedef struct {227word Selector;228byte structs[1]; /* Facility parameters */229} _FAC_REQP;230/* FACILITY-CONFIRM STRUCT FOR SUPPLEMENT. SERVICES */231typedef struct {232byte struct_length;233word function;234byte length;235word SupplementaryServiceInfo;236dword SupportedServices;237} _FAC_CON_STRUCTS;238/* FACILITY-CONFIRM */239typedef struct {240word Info;241word Selector;242byte structs[1]; /* Facility parameters */243} _FAC_CONP;244/* FACILITY-INDICATION */245typedef struct {246word Selector;247byte structs[1]; /* Facility parameters */248} _FAC_INDP;249/* FACILITY-RESPONSE */250typedef struct {251word Selector;252byte structs[1]; /* Facility parameters */253} _FAC_RESP;254/* CONNECT-B3-REQUEST */255typedef struct {256byte structs[1]; /* NCPI */257} _CON_B3_REQP;258/* CONNECT-B3-CONFIRM */259typedef struct {260word Info;261} _CON_B3_CONP;262/* CONNECT-B3-INDICATION */263typedef struct {264byte structs[1]; /* NCPI */265} _CON_B3_INDP;266/* CONNECT-B3-RESPONSE */267typedef struct {268word Accept;269byte structs[1]; /* NCPI */270} _CON_B3_RESP;271/* CONNECT-B3-ACTIVE-INDICATION */272typedef struct {273byte structs[1]; /* NCPI */274} _CON_B3_A_INDP;275/* CONNECT-B3-ACTIVE-RESPONSE */276typedef struct {277byte structs[1]; /* empty */278} _CON_B3_A_RESP;279/* DISCONNECT-B3-REQUEST */280typedef struct {281byte structs[1]; /* NCPI */282} _DIS_B3_REQP;283/* DISCONNECT-B3-CONFIRM */284typedef struct {285word Info;286} _DIS_B3_CONP;287/* DISCONNECT-B3-INDICATION */288typedef struct {289word Info;290byte structs[1]; /* NCPI */291} _DIS_B3_INDP;292/* DISCONNECT-B3-RESPONSE */293typedef struct {294byte structs[1]; /* empty */295} _DIS_B3_RESP;296/* DATA-B3-REQUEST */297typedef struct {298dword Data;299word Data_Length;300word Number;301word Flags;302} _DAT_B3_REQP;303/* DATA-B3-REQUEST 64 BIT Systems */304typedef struct {305dword Data;306word Data_Length;307word Number;308word Flags;309void *pData;310} _DAT_B3_REQ64P;311/* DATA-B3-CONFIRM */312typedef struct {313word Number;314word Info;315} _DAT_B3_CONP;316/* DATA-B3-INDICATION */317typedef struct {318dword Data;319word Data_Length;320word Number;321word Flags;322} _DAT_B3_INDP;323/* DATA-B3-INDICATION 64 BIT Systems */324typedef struct {325dword Data;326word Data_Length;327word Number;328word Flags;329void *pData;330} _DAT_B3_IND64P;331/* DATA-B3-RESPONSE */332typedef struct {333word Number;334} _DAT_B3_RESP;335/* RESET-B3-REQUEST */336typedef struct {337byte structs[1]; /* NCPI */338} _RES_B3_REQP;339/* RESET-B3-CONFIRM */340typedef struct {341word Info;342} _RES_B3_CONP;343/* RESET-B3-INDICATION */344typedef struct {345byte structs[1]; /* NCPI */346} _RES_B3_INDP;347/* RESET-B3-RESPONSE */348typedef struct {349byte structs[1]; /* empty */350} _RES_B3_RESP;351/* CONNECT-B3-T90-ACTIVE-INDICATION */352typedef struct {353byte structs[1]; /* NCPI */354} _CON_B3_T90_A_INDP;355/* CONNECT-B3-T90-ACTIVE-RESPONSE */356typedef struct {357word Reject;358byte structs[1]; /* NCPI */359} _CON_B3_T90_A_RESP;360/*------------------------------------------------------------------*/361/* message structure */362/*------------------------------------------------------------------*/363typedef struct _API_MSG CAPI_MSG;364typedef struct _MSG_HEADER CAPI_MSG_HEADER;365struct _API_MSG {366struct _MSG_HEADER {367word length;368word appl_id;369word command;370word number;371byte controller;372byte plci;373word ncci;374} header;375union {376_ALT_REQP alert_req;377_ALT_CONP alert_con;378_CON_REQP connect_req;379_CON_CONP connect_con;380_CON_INDP connect_ind;381_CON_RESP connect_res;382_CON_A_INDP connect_a_ind;383_CON_A_RESP connect_a_res;384_DIS_REQP disconnect_req;385_DIS_CONP disconnect_con;386_DIS_INDP disconnect_ind;387_DIS_RESP disconnect_res;388_LIS_REQP listen_req;389_LIS_CONP listen_con;390_INF_REQP info_req;391_INF_CONP info_con;392_INF_INDP info_ind;393_INF_RESP info_res;394_SEL_B_REQP select_b_req;395_SEL_B_CONP select_b_con;396_FAC_REQP facility_req;397_FAC_CONP facility_con;398_FAC_INDP facility_ind;399_FAC_RESP facility_res;400_CON_B3_REQP connect_b3_req;401_CON_B3_CONP connect_b3_con;402_CON_B3_INDP connect_b3_ind;403_CON_B3_RESP connect_b3_res;404_CON_B3_A_INDP connect_b3_a_ind;405_CON_B3_A_RESP connect_b3_a_res;406_DIS_B3_REQP disconnect_b3_req;407_DIS_B3_CONP disconnect_b3_con;408_DIS_B3_INDP disconnect_b3_ind;409_DIS_B3_RESP disconnect_b3_res;410_DAT_B3_REQP data_b3_req;411_DAT_B3_REQ64P data_b3_req64;412_DAT_B3_CONP data_b3_con;413_DAT_B3_INDP data_b3_ind;414_DAT_B3_IND64P data_b3_ind64;415_DAT_B3_RESP data_b3_res;416_RES_B3_REQP reset_b3_req;417_RES_B3_CONP reset_b3_con;418_RES_B3_INDP reset_b3_ind;419_RES_B3_RESP reset_b3_res;420_CON_B3_T90_A_INDP connect_b3_t90_a_ind;421_CON_B3_T90_A_RESP connect_b3_t90_a_res;422byte b[200];423} info;424};425/*------------------------------------------------------------------*/426/* non-fatal errors */427/*------------------------------------------------------------------*/428#define _NCPI_IGNORED 0x0001429#define _FLAGS_IGNORED 0x0002430#define _ALERT_IGNORED 0x0003431/*------------------------------------------------------------------*/432/* API function error codes */433/*------------------------------------------------------------------*/434#define GOOD 0x0000435#define _TOO_MANY_APPLICATIONS 0x1001436#define _BLOCK_TOO_SMALL 0x1002437#define _BUFFER_TOO_BIG 0x1003438#define _MSG_BUFFER_TOO_SMALL 0x1004439#define _TOO_MANY_CONNECTIONS 0x1005440#define _REG_CAPI_BUSY 0x1007441#define _REG_RESOURCE_ERROR 0x1008442#define _REG_CAPI_NOT_INSTALLED 0x1009443#define _WRONG_APPL_ID 0x1101444#define _BAD_MSG 0x1102445#define _QUEUE_FULL 0x1103446#define _GET_NO_MSG 0x1104447#define _MSG_LOST 0x1105448#define _WRONG_NOTIFY 0x1106449#define _CAPI_BUSY 0x1107450#define _RESOURCE_ERROR 0x1108451#define _CAPI_NOT_INSTALLED 0x1109452#define _NO_EXTERNAL_EQUIPMENT 0x110a453#define _ONLY_EXTERNAL_EQUIPMENT 0x110b454/*------------------------------------------------------------------*/455/* addressing/coding error codes */456/*------------------------------------------------------------------*/457#define _WRONG_STATE 0x2001458#define _WRONG_IDENTIFIER 0x2002459#define _OUT_OF_PLCI 0x2003460#define _OUT_OF_NCCI 0x2004461#define _OUT_OF_LISTEN 0x2005462#define _OUT_OF_FAX 0x2006463#define _WRONG_MESSAGE_FORMAT 0x2007464#define _OUT_OF_INTERCONNECT_RESOURCES 0x2008465/*------------------------------------------------------------------*/466/* configuration error codes */467/*------------------------------------------------------------------*/468#define _B1_NOT_SUPPORTED 0x3001469#define _B2_NOT_SUPPORTED 0x3002470#define _B3_NOT_SUPPORTED 0x3003471#define _B1_PARM_NOT_SUPPORTED 0x3004472#define _B2_PARM_NOT_SUPPORTED 0x3005473#define _B3_PARM_NOT_SUPPORTED 0x3006474#define _B_STACK_NOT_SUPPORTED 0x3007475#define _NCPI_NOT_SUPPORTED 0x3008476#define _CIP_NOT_SUPPORTED 0x3009477#define _FLAGS_NOT_SUPPORTED 0x300a478#define _FACILITY_NOT_SUPPORTED 0x300b479#define _DATA_LEN_NOT_SUPPORTED 0x300c480#define _RESET_NOT_SUPPORTED 0x300d481#define _SUPPLEMENTARY_SERVICE_NOT_SUPPORTED 0x300e482#define _REQUEST_NOT_ALLOWED_IN_THIS_STATE 0x3010483#define _FACILITY_SPECIFIC_FUNCTION_NOT_SUPP 0x3011484/*------------------------------------------------------------------*/485/* reason codes */486/*------------------------------------------------------------------*/487#define _L1_ERROR 0x3301488#define _L2_ERROR 0x3302489#define _L3_ERROR 0x3303490#define _OTHER_APPL_CONNECTED 0x3304491#define _CAPI_GUARD_ERROR 0x3305492#define _L3_CAUSE 0x3400493/*------------------------------------------------------------------*/494/* b3 reason codes */495/*------------------------------------------------------------------*/496#define _B_CHANNEL_LOST 0x3301497#define _B2_ERROR 0x3302498#define _B3_ERROR 0x3303499/*------------------------------------------------------------------*/500/* fax error codes */501/*------------------------------------------------------------------*/502#define _FAX_NO_CONNECTION 0x3311503#define _FAX_TRAINING_ERROR 0x3312504#define _FAX_REMOTE_REJECT 0x3313505#define _FAX_REMOTE_ABORT 0x3314506#define _FAX_PROTOCOL_ERROR 0x3315507#define _FAX_TX_UNDERRUN 0x3316508#define _FAX_RX_OVERFLOW 0x3317509#define _FAX_LOCAL_ABORT 0x3318510#define _FAX_PARAMETER_ERROR 0x3319511/*------------------------------------------------------------------*/512/* line interconnect error codes */513/*------------------------------------------------------------------*/514#define _LI_USER_INITIATED 0x0000515#define _LI_LINE_NO_LONGER_AVAILABLE 0x3805516#define _LI_INTERCONNECT_NOT_ESTABLISHED 0x3806517#define _LI_LINES_NOT_COMPATIBLE 0x3807518#define _LI2_USER_INITIATED 0x0000519#define _LI2_PLCI_HAS_NO_BCHANNEL 0x3800520#define _LI2_LINES_NOT_COMPATIBLE 0x3801521#define _LI2_NOT_IN_SAME_INTERCONNECTION 0x3802522/*------------------------------------------------------------------*/523/* global options */524/*------------------------------------------------------------------*/525#define GL_INTERNAL_CONTROLLER_SUPPORTED 0x00000001L526#define GL_EXTERNAL_EQUIPMENT_SUPPORTED 0x00000002L527#define GL_HANDSET_SUPPORTED 0x00000004L528#define GL_DTMF_SUPPORTED 0x00000008L529#define GL_SUPPLEMENTARY_SERVICES_SUPPORTED 0x00000010L530#define GL_CHANNEL_ALLOCATION_SUPPORTED 0x00000020L531#define GL_BCHANNEL_OPERATION_SUPPORTED 0x00000040L532#define GL_LINE_INTERCONNECT_SUPPORTED 0x00000080L533#define GL_ECHO_CANCELLER_SUPPORTED 0x00000100L534/*------------------------------------------------------------------*/535/* protocol selection */536/*------------------------------------------------------------------*/537#define B1_HDLC 0538#define B1_TRANSPARENT 1539#define B1_V110_ASYNC 2540#define B1_V110_SYNC 3541#define B1_T30 4542#define B1_HDLC_INVERTED 5543#define B1_TRANSPARENT_R 6544#define B1_MODEM_ALL_NEGOTIATE 7545#define B1_MODEM_ASYNC 8546#define B1_MODEM_SYNC_HDLC 9547#define B2_X75 0548#define B2_TRANSPARENT 1549#define B2_SDLC 2550#define B2_LAPD 3551#define B2_T30 4552#define B2_PPP 5553#define B2_TRANSPARENT_NO_CRC 6554#define B2_MODEM_EC_COMPRESSION 7555#define B2_X75_V42BIS 8556#define B2_V120_ASYNC 9557#define B2_V120_ASYNC_V42BIS 10558#define B2_V120_BIT_TRANSPARENT 11559#define B2_LAPD_FREE_SAPI_SEL 12560#define B3_TRANSPARENT 0561#define B3_T90NL 1562#define B3_ISO8208 2563#define B3_X25_DCE 3564#define B3_T30 4565#define B3_T30_WITH_EXTENSIONS 5566#define B3_RESERVED 6567#define B3_MODEM 7568/*------------------------------------------------------------------*/569/* facility definitions */570/*------------------------------------------------------------------*/571#define SELECTOR_HANDSET 0572#define SELECTOR_DTMF 1573#define SELECTOR_V42BIS 2574#define SELECTOR_SU_SERV 3575#define SELECTOR_POWER_MANAGEMENT 4576#define SELECTOR_LINE_INTERCONNECT 5577#define SELECTOR_ECHO_CANCELLER 6578/*------------------------------------------------------------------*/579/* supplementary services definitions */580/*------------------------------------------------------------------*/581#define S_GET_SUPPORTED_SERVICES 0x0000582#define S_LISTEN 0x0001583#define S_HOLD 0x0002584#define S_RETRIEVE 0x0003585#define S_SUSPEND 0x0004586#define S_RESUME 0x0005587#define S_ECT 0x0006588#define S_3PTY_BEGIN 0x0007589#define S_3PTY_END 0x0008590#define S_CALL_DEFLECTION 0x000d591#define S_CALL_FORWARDING_START 0x0009592#define S_CALL_FORWARDING_STOP 0x000a593#define S_INTERROGATE_DIVERSION 0x000b /* or interrogate parameters */594#define S_INTERROGATE_NUMBERS 0x000c595#define S_CCBS_REQUEST 0x000f596#define S_CCBS_DEACTIVATE 0x0010597#define S_CCBS_INTERROGATE 0x0011598#define S_CCBS_CALL 0x0012599#define S_MWI_ACTIVATE 0x0013600#define S_MWI_DEACTIVATE 0x0014601#define S_CONF_BEGIN 0x0017602#define S_CONF_ADD 0x0018603#define S_CONF_SPLIT 0x0019604#define S_CONF_DROP 0x001a605#define S_CONF_ISOLATE 0x001b606#define S_CONF_REATTACH 0x001c607#define S_CCBS_ERASECALLLINKAGEID 0x800d608#define S_CCBS_STOP_ALERTING 0x8012609#define S_CCBS_INFO_RETAIN 0x8013610#define S_MWI_INDICATE 0x8014611#define S_CONF_PARTYDISC 0x8016612#define S_CONF_NOTIFICATION 0x8017613/* Service Masks */614#define MASK_HOLD_RETRIEVE 0x00000001615#define MASK_TERMINAL_PORTABILITY 0x00000002616#define MASK_ECT 0x00000004617#define MASK_3PTY 0x00000008618#define MASK_CALL_FORWARDING 0x00000010619#define MASK_CALL_DEFLECTION 0x00000020620#define MASK_MWI 0x00000100621#define MASK_CCNR 0x00000200622#define MASK_CONF 0x00000400623/*------------------------------------------------------------------*/624/* dtmf definitions */625/*------------------------------------------------------------------*/626#define DTMF_LISTEN_START 1627#define DTMF_LISTEN_STOP 2628#define DTMF_DIGITS_SEND 3629#define DTMF_SUCCESS 0630#define DTMF_INCORRECT_DIGIT 1631#define DTMF_UNKNOWN_REQUEST 2632/*------------------------------------------------------------------*/633/* line interconnect definitions */634/*------------------------------------------------------------------*/635#define LI_GET_SUPPORTED_SERVICES 0636#define LI_REQ_CONNECT 1637#define LI_REQ_DISCONNECT 2638#define LI_IND_CONNECT_ACTIVE 1639#define LI_IND_DISCONNECT 2640#define LI_FLAG_CONFERENCE_A_B ((dword) 0x00000001L)641#define LI_FLAG_CONFERENCE_B_A ((dword) 0x00000002L)642#define LI_FLAG_MONITOR_A ((dword) 0x00000004L)643#define LI_FLAG_MONITOR_B ((dword) 0x00000008L)644#define LI_FLAG_ANNOUNCEMENT_A ((dword) 0x00000010L)645#define LI_FLAG_ANNOUNCEMENT_B ((dword) 0x00000020L)646#define LI_FLAG_MIX_A ((dword) 0x00000040L)647#define LI_FLAG_MIX_B ((dword) 0x00000080L)648#define LI_CONFERENCING_SUPPORTED ((dword) 0x00000001L)649#define LI_MONITORING_SUPPORTED ((dword) 0x00000002L)650#define LI_ANNOUNCEMENTS_SUPPORTED ((dword) 0x00000004L)651#define LI_MIXING_SUPPORTED ((dword) 0x00000008L)652#define LI_CROSS_CONTROLLER_SUPPORTED ((dword) 0x00000010L)653#define LI2_GET_SUPPORTED_SERVICES 0654#define LI2_REQ_CONNECT 1655#define LI2_REQ_DISCONNECT 2656#define LI2_IND_CONNECT_ACTIVE 1657#define LI2_IND_DISCONNECT 2658#define LI2_FLAG_INTERCONNECT_A_B ((dword) 0x00000001L)659#define LI2_FLAG_INTERCONNECT_B_A ((dword) 0x00000002L)660#define LI2_FLAG_MONITOR_B ((dword) 0x00000004L)661#define LI2_FLAG_MIX_B ((dword) 0x00000008L)662#define LI2_FLAG_MONITOR_X ((dword) 0x00000010L)663#define LI2_FLAG_MIX_X ((dword) 0x00000020L)664#define LI2_FLAG_LOOP_B ((dword) 0x00000040L)665#define LI2_FLAG_LOOP_PC ((dword) 0x00000080L)666#define LI2_FLAG_LOOP_X ((dword) 0x00000100L)667#define LI2_CROSS_CONTROLLER_SUPPORTED ((dword) 0x00000001L)668#define LI2_ASYMMETRIC_SUPPORTED ((dword) 0x00000002L)669#define LI2_MONITORING_SUPPORTED ((dword) 0x00000004L)670#define LI2_MIXING_SUPPORTED ((dword) 0x00000008L)671#define LI2_REMOTE_MONITORING_SUPPORTED ((dword) 0x00000010L)672#define LI2_REMOTE_MIXING_SUPPORTED ((dword) 0x00000020L)673#define LI2_B_LOOPING_SUPPORTED ((dword) 0x00000040L)674#define LI2_PC_LOOPING_SUPPORTED ((dword) 0x00000080L)675#define LI2_X_LOOPING_SUPPORTED ((dword) 0x00000100L)676/*------------------------------------------------------------------*/677/* echo canceller definitions */678/*------------------------------------------------------------------*/679#define EC_GET_SUPPORTED_SERVICES 0680#define EC_ENABLE_OPERATION 1681#define EC_DISABLE_OPERATION 2682#define EC_ENABLE_NON_LINEAR_PROCESSING 0x0001683#define EC_DO_NOT_REQUIRE_REVERSALS 0x0002684#define EC_DETECT_DISABLE_TONE 0x0004685#define EC_ENABLE_ADAPTIVE_PREDELAY 0x0008686#define EC_NON_LINEAR_PROCESSING_SUPPORTED 0x0001687#define EC_BYPASS_ON_ANY_2100HZ_SUPPORTED 0x0002688#define EC_BYPASS_ON_REV_2100HZ_SUPPORTED 0x0004689#define EC_ADAPTIVE_PREDELAY_SUPPORTED 0x0008690#define EC_BYPASS_INDICATION 1691#define EC_BYPASS_DUE_TO_CONTINUOUS_2100HZ 1692#define EC_BYPASS_DUE_TO_REVERSED_2100HZ 2693#define EC_BYPASS_RELEASED 3694/*------------------------------------------------------------------*/695/* function prototypes */696/*------------------------------------------------------------------*/697/*------------------------------------------------------------------*/698#endif /* _INC_CAPI20 */699700701