[svn-commits] trunk r1117 - in /trunk: ./ include/ include/apilib/ include/oct6100api/ incl...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jun 19 07:34:06 MST 2006


Author: markster
Date: Mon Jun 19 09:34:05 2006
New Revision: 1117

URL: http://svn.digium.com/view/zaptel?rev=1117&view=rev
Log:
Merge the giant mess that is the Octasic API

Added:
    trunk/fw2h.c   (with props)
    trunk/include/
    trunk/include/apilib/
    trunk/include/apilib/octapi_bt0.h   (with props)
    trunk/include/apilib/octapi_largmath.h   (with props)
    trunk/include/apilib/octapi_llman.h   (with props)
    trunk/include/oct6100api/
    trunk/include/oct6100api/oct6100_adpcm_chan_inst.h   (with props)
    trunk/include/oct6100api/oct6100_adpcm_chan_priv.h   (with props)
    trunk/include/oct6100api/oct6100_adpcm_chan_pub.h   (with props)
    trunk/include/oct6100api/oct6100_api.h   (with props)
    trunk/include/oct6100api/oct6100_api_inst.h   (with props)
    trunk/include/oct6100api/oct6100_apimi.h   (with props)
    trunk/include/oct6100api/oct6100_apiud.h   (with props)
    trunk/include/oct6100api/oct6100_channel_inst.h   (with props)
    trunk/include/oct6100api/oct6100_channel_priv.h   (with props)
    trunk/include/oct6100api/oct6100_channel_pub.h   (with props)
    trunk/include/oct6100api/oct6100_chip_open_inst.h   (with props)
    trunk/include/oct6100api/oct6100_chip_open_priv.h   (with props)
    trunk/include/oct6100api/oct6100_chip_open_pub.h   (with props)
    trunk/include/oct6100api/oct6100_chip_stats_inst.h   (with props)
    trunk/include/oct6100api/oct6100_chip_stats_priv.h   (with props)
    trunk/include/oct6100api/oct6100_chip_stats_pub.h   (with props)
    trunk/include/oct6100api/oct6100_conf_bridge_inst.h   (with props)
    trunk/include/oct6100api/oct6100_conf_bridge_priv.h   (with props)
    trunk/include/oct6100api/oct6100_conf_bridge_pub.h   (with props)
    trunk/include/oct6100api/oct6100_debug_inst.h   (with props)
    trunk/include/oct6100api/oct6100_debug_priv.h   (with props)
    trunk/include/oct6100api/oct6100_debug_pub.h   (with props)
    trunk/include/oct6100api/oct6100_defines.h   (with props)
    trunk/include/oct6100api/oct6100_errors.h   (with props)
    trunk/include/oct6100api/oct6100_events_inst.h   (with props)
    trunk/include/oct6100api/oct6100_events_priv.h   (with props)
    trunk/include/oct6100api/oct6100_events_pub.h   (with props)
    trunk/include/oct6100api/oct6100_interrupts_inst.h   (with props)
    trunk/include/oct6100api/oct6100_interrupts_priv.h   (with props)
    trunk/include/oct6100api/oct6100_interrupts_pub.h   (with props)
    trunk/include/oct6100api/oct6100_memory_priv.h   (with props)
    trunk/include/oct6100api/oct6100_miscellaneous_priv.h   (with props)
    trunk/include/oct6100api/oct6100_mixer_inst.h   (with props)
    trunk/include/oct6100api/oct6100_mixer_priv.h   (with props)
    trunk/include/oct6100api/oct6100_mixer_pub.h   (with props)
    trunk/include/oct6100api/oct6100_phasing_tsst_inst.h   (with props)
    trunk/include/oct6100api/oct6100_phasing_tsst_priv.h   (with props)
    trunk/include/oct6100api/oct6100_phasing_tsst_pub.h   (with props)
    trunk/include/oct6100api/oct6100_playout_buf_inst.h   (with props)
    trunk/include/oct6100api/oct6100_playout_buf_priv.h   (with props)
    trunk/include/oct6100api/oct6100_playout_buf_pub.h   (with props)
    trunk/include/oct6100api/oct6100_remote_debug_inst.h   (with props)
    trunk/include/oct6100api/oct6100_remote_debug_priv.h   (with props)
    trunk/include/oct6100api/oct6100_remote_debug_pub.h   (with props)
    trunk/include/oct6100api/oct6100_tlv_inst.h   (with props)
    trunk/include/oct6100api/oct6100_tlv_priv.h   (with props)
    trunk/include/oct6100api/oct6100_tone_detection_inst.h   (with props)
    trunk/include/oct6100api/oct6100_tone_detection_priv.h   (with props)
    trunk/include/oct6100api/oct6100_tone_detection_pub.h   (with props)
    trunk/include/oct6100api/oct6100_tsi_cnct_inst.h   (with props)
    trunk/include/oct6100api/oct6100_tsi_cnct_priv.h   (with props)
    trunk/include/oct6100api/oct6100_tsi_cnct_pub.h   (with props)
    trunk/include/oct6100api/oct6100_tsst_inst.h   (with props)
    trunk/include/oct6100api/oct6100_tsst_priv.h   (with props)
    trunk/include/oct6100api/oct6100_version.h   (with props)
    trunk/include/octdef.h   (with props)
    trunk/include/octmac.h   (with props)
    trunk/include/octosdependant.h   (with props)
    trunk/include/octrpc/
    trunk/include/octrpc/oct6100_rpc_protocol.h   (with props)
    trunk/include/octrpc/rpc_protocol.h   (with props)
    trunk/include/octtype.h   (with props)
    trunk/include/octtypevx.h   (with props)
    trunk/include/octtypewin.h   (with props)
    trunk/octapi_bt0_private.h   (with props)
    trunk/octapi_llman_private.h   (with props)
    trunk/octvpm.h   (with props)
    trunk/vpm450m.c   (with props)
    trunk/vpm450m.h   (with props)
Modified:
    trunk/   (props changed)
    trunk/Makefile
    trunk/wct4xxp_base.c

Propchange: trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Jun 19 09:34:05 2006
@@ -21,3 +21,6 @@
 *.so
 *.a
 version.h
+vpm450m_fw.h
+fw2h
+

Modified: trunk/Makefile
URL: http://svn.digium.com/view/zaptel/trunk/Makefile?rev=1117&r1=1116&r2=1117&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Mon Jun 19 09:34:05 2006
@@ -7,9 +7,10 @@
 
 .EXPORT_ALL_VARIABLES:
 
-PWD:=$(shell pwd)
-
 HOSTCC=gcc
+ifeq ($(PWD),)
+PWD=$(shell pwd)
+endif
 ifeq ($(DEB_HOST_GNU_TYPE),)
 UNAME_M:=$(shell uname -m)
 else
@@ -30,7 +31,7 @@
 KVERS_MAJ:=$(shell echo $(KVERS) | cut -d. -f1-2)
 KINCLUDES:=$(KSRC)/include
 
-CFLAGS+=-I. -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
+CFLAGS+=-I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
 ifneq (,$(findstring ppc,$(UNAME_M)))
 CFLAGS_PPC:=-fsigned-char
 endif
@@ -137,7 +138,9 @@
 
 MOD_DESTDIR:=zaptel
 
+EXTRA_CFLAGS := -I$(PWD)/include  -I$(PWD)/include/oct6100api
 obj-m:=$(MODULESO)
+wct4xxp-objs:=wct4xxp_base.o vpm450m.o
 
 # Also build xpp in the subdirectory xpp/ . But only for >=2.6.10 and only 
 # for i386. On other archs the module will probably build but panic.
@@ -156,7 +159,7 @@
   usbfxstest fxstest fxotune fxsdump ztdiag
 UTILSO:=$(UTILS:%=%.o)
 
-all: modules $(LIBTONEZONE_SO)
+all: vpm450m_fw.h modules $(LIBTONEZONE_SO)
 
 programs: $(BINS)
 
@@ -186,6 +189,8 @@
 
 tests: patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest
 
+wct4xxp.o: wct4xxp_base.o vpm450m.c vpm450m_fw.h
+
 tor2.o: tor2-hw.h tor2fw.h
 
 zaptel.o: digits.h arith.h sec.h mec.h sec-2.h mec2.h mec3.h zconfig.h
@@ -225,6 +230,9 @@
 
 tor2fw.h: makefw tormenta2.rbt
 	./makefw tormenta2.rbt tor2fw > tor2fw.h
+
+vpm450m_fw.h: fw2h OCT6114-128D.ima
+	./fw2h OCT6114-128D.ima vpm450m_fw.h
 
 radfw.h: makefw pciradio.rbt
 	./makefw pciradio.rbt radfw > radfw.h
@@ -417,15 +425,15 @@
 	install -m 644 zaptel.h torisa.h $(INC_DIR)/linux
 
 install-modules: install-$(BUILDVER)
-install-linux24: $(MODULES_BUILD)
+install-linux24: vpm450m_fw.h.o$(MODULES_BUILD)
 	install -d $(MOD_DIR)
 	install -m 644 $(MODULES_BUILD) $(MOD_DIR)
 
-install-linux26: $(MODULESKO)
+install-linux26: vpm450m_fw.h $(MODULESKO)
 	$(KMAKE_INST)
 
 clean:
-	rm -f torisatool makefw tor2fw.h radfw.h
+	rm -f torisatool makefw tor2fw.h radfw.h fw2h
 	rm -f $(BINS)
 	rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
 	rm -f $(TZOBJS) $(LIBTONEZONE_SO) *.lo

Added: trunk/fw2h.c
URL: http://svn.digium.com/view/zaptel/trunk/fw2h.c?rev=1117&view=auto
==============================================================================
--- trunk/fw2h.c (added)
+++ trunk/fw2h.c Mon Jun 19 09:34:05 2006
@@ -1,0 +1,47 @@
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <errno.h>
+int main(int argc, char *argv[])
+{
+	char *c;
+	int fd;
+	FILE *f;
+	int res;
+	int x;
+	unsigned char buf[1024];
+	if (argc != 3) {
+		fprintf(stderr, "Usage: fw2h <infile> <outfile>");
+		exit(1);
+	}
+	fd = open(argv[1], O_RDONLY);
+	if (fd < 0) {
+		fprintf(stderr, "Unable to open '%s': %s\n", argv[1], strerror(errno));
+		exit(1);
+	}
+	f = fopen(argv[2], "w+");
+	if (!f) {
+		fprintf(stderr, "Unable to open '%s' for writing: %s\n", argv[2], strerror(errno));
+		exit(1);
+	}
+	c = strrchr(argv[2], '.');
+	if (c) *c = '\0';
+	fprintf(f, "static unsigned char %s[] = {\t", argv[2]);
+	while ((res = read(fd, buf, sizeof(buf))) > 0) {
+		for (x = 0; x < res; x++) {
+			if (!(x % 16))
+				fprintf(f, "\n\t");
+			fprintf(f, "0x%02x, ", buf[x]);
+		}
+	}
+	fprintf(f, "\n};\n");
+	if (res < 0) {
+		fprintf(stderr, "Error reading file: %s\n", strerror(errno));
+		exit(1);
+	}
+	fclose(f);
+	close(fd);
+	exit(0);
+}

Propchange: trunk/fw2h.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/fw2h.c
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/fw2h.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/apilib/octapi_bt0.h
URL: http://svn.digium.com/view/zaptel/trunk/include/apilib/octapi_bt0.h?rev=1117&view=auto
==============================================================================
--- trunk/include/apilib/octapi_bt0.h (added)
+++ trunk/include/apilib/octapi_bt0.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,70 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:		octapi_bt0.h
+
+Copyright (c) 2001 Octasic Inc. All rights reserved.
+    
+Description: 
+
+This source code is Octasic Confidential. Use of and access to this code
+is covered by the Octasic Device Enabling Software License Agreement. 
+Acknowledgement of the Octasic Device Enabling Software License was 
+required for access to this code. A copy was also provided with the release.
+
+
+$Octasic_Release: OCT610xAPI-01.00-PR37 $
+
+$Octasic_Revision: 10 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+#ifndef __OCTAPI_BT0_H__
+#define __OCTAPI_BT0_H__
+
+
+#include "octdef.h"
+
+
+#define OCTAPI_BT0_BASE 0xFFFF0000
+#define OCTAPI_BT0_KEY_SIZE_NOT_MUTLIPLE_OF_UINT32	OCTAPI_BT0_BASE+0x0001
+#define OCTAPI_BT0_DATA_SIZE_NOT_MUTLIPLE_OF_UINT32	OCTAPI_BT0_BASE+0x0002
+#define OCTAPI_BT0_MALLOC_FAILED					OCTAPI_BT0_BASE+0x0003
+#define OCTAPI_BT0_NO_NODES_AVAILABLE				OCTAPI_BT0_BASE+0x0004
+#define OCTAPI_BT0_KEY_ALREADY_IN_TREE				OCTAPI_BT0_BASE+0x0005
+#define OCTAPI_BT0_KEY_NOT_IN_TREE					OCTAPI_BT0_BASE+0x0006
+
+/* Possible result for Find Or Add function.*/
+#define OCTAPI0_BT0_NODE_FOUND	0
+#define OCTAPI0_BT0_NODE_ADDDED	1
+
+#define OCTAPI_BT0_NO_SMALLER_KEY	0xAAAAAAAA
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus*/
+
+#define octapi_bt0_get_size( number_of_items, key_size, data_size, b_size ) OctApiBt0GetSize( (UINT32) number_of_items,(UINT32) key_size, (UINT32) data_size, (PUINT32) b_size ) 
+#define octapi_bt0_init(b, number_of_items, key_size, data_size)			OctApiBt0Init( (void **) b,(UINT32) number_of_items,(UINT32) key_size, (UINT32) data_size )
+#define octapi_bt0_add_node( b, key, data )									OctApiBt0AddNode( (void *) b,(void *) key,(void **) data )
+#define octapi_bt0_remove_node( b, key )									OctApiBt0RemoveNode( (void *) b,(void *) key )
+#define octapi_bt0_query_node( b, key, data )								OctApiBt0QueryNode( (void *) b,(void *) key,(void **) data )
+#define octapi_bt0_get_first_node( b,key, data )							OctApiBt0GetFirstNode( (void *) b,(void **) key, (void **) data )
+
+
+static UINT32 OctApiBt0GetSize( UINT32 number_of_items,UINT32 key_size, UINT32 data_size, UINT32 * b_size );
+static UINT32 OctApiBt0Init( void ** b,UINT32 number_of_items,UINT32 key_size, UINT32 data_size );
+UINT32 OctApiBt0AddNode( void * b,void * key,void ** data );
+UINT32 OctApiBt0RemoveNode( void * b,void * key );
+UINT32 OctApiBt0QueryNode( void * b,void * key,void ** data );
+UINT32 OctApiBt0GetFirstNode( void * b,void ** key, void ** data );
+UINT32 OctApiBt0FindOrAddNode(void * b,void * key,void ** data, UINT32 *fnct_result);
+
+UINT32 OctApiBt0AddNodeReportPrevNodeData(void * b,void * key,void ** data, void ** prev_data, UINT32 *fnct_result );
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus*/
+
+
+
+#endif /*__OCTAPI_BT0_H__*/

Propchange: trunk/include/apilib/octapi_bt0.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/apilib/octapi_bt0.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/apilib/octapi_bt0.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/apilib/octapi_largmath.h
URL: http://svn.digium.com/view/zaptel/trunk/include/apilib/octapi_largmath.h?rev=1117&view=auto
==============================================================================
--- trunk/include/apilib/octapi_largmath.h (added)
+++ trunk/include/apilib/octapi_largmath.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,62 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:		octapi_largmath.h
+
+Copyright (c) 2001 Octasic Inc. All rights reserved.
+    
+Description: 
+
+This source code is Octasic Confidential. Use of and access to this code
+is covered by the Octasic Device Enabling Software License Agreement. 
+Acknowledgement of the Octasic Device Enabling Software License was 
+required for access to this code. A copy was also provided with the release.
+
+
+$Octasic_Release: OCT610xAPI-01.00-PR37 $
+
+$Octasic_Revision: 5 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+#ifndef __OCTAPI_LARGMATH_H__
+#define __OCTAPI_LARGMATH_H__
+
+
+
+#include "octdef.h"
+
+
+
+#define OCTAPI_LM_DIVISION_BY_ZERO 0xFFFF
+#define OCTAPI_LM_OVERFLOW 0xFFFE
+#define OCTAPI_LM_ARRAY_SIZE_MISMATCH 0xFFFD
+
+#define OCTAPI_LM_MAX_OPTIMIZE_MUL 10
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus*/
+
+#define octapi_lm_add( a, alen, b, blen, z,  zlen)					OctApiLmAdd( (PUINT32) a, (USHORT) alen, (PUINT32) b, (USHORT) blen, (PUINT32) z, (USHORT) zlen )
+#define octapi_lm_subtract( a, alen, bneg, blen, z,  zlen, neg)		OctApiLmSubtract( (PUINT32) a, (USHORT) alen, (PUINT32) bneg, (USHORT) blen, (PUINT32) z, (USHORT) zlen, (USHORT*) neg )
+#define octapi_lm_compare( a, alen, bneg, blen, neg)				OctApiLmCompare( (PUINT32) a, (USHORT) alen, (PUINT32) bneg, (USHORT) blen, (USHORT*) neg )
+#define octapi_lm_multiply( a, b, ablen, z)							OctApiLmMultiply( (PUINT32) a, (PUINT32) b, (USHORT) ablen, (PUINT32) z )
+#define octapi_lm_divide( n, d, q, r, ndqrlen)						OctApiLmDivide( (PUINT32) n, (PUINT32) d, (PUINT32) q, (PUINT32) r, (USHORT) ndqrlen )
+#define octapi_lm_shiftright1( a, alen)								OctApiLmShiftRight1( (PUINT32) a, (USHORT) alen )
+#define octapi_lm_shiftn( a, alen, shiftleft, shiftn)				OctApiLmShiftn( (PUINT32) a, (USHORT) alen, (USHORT) shiftleft, (USHORT) shiftn )
+#define octapi_lm_getmsb( a, alen, msb_pos)							OctApiLmGetMsb( (PUINT32) a, (USHORT) alen, (USHORT*) msb_pos )
+	
+
+static UINT32 OctApiLmAdd( PUINT32 a, USHORT alen, PUINT32 b, USHORT blen, PUINT32 z, USHORT zlen );
+static UINT32 OctApiLmSubtract( PUINT32 a, USHORT alen, PUINT32 bneg, USHORT blen, PUINT32 z, USHORT zlen, PUSHORT neg );
+UINT32 OctApiLmCompare( PUINT32 a, USHORT alen, PUINT32 bneg, USHORT blen, PUSHORT neg );
+UINT32 OctApiLmMultiply( PUINT32 a, PUINT32 b, USHORT ablen, PUINT32 z );
+UINT32 OctApiLmDivide( PUINT32 n, PUINT32 d, PUINT32 q, PUINT32 r, USHORT ndqrlen );
+UINT32 OctApiLmShiftRight1( PUINT32 a, USHORT alen );
+UINT32 OctApiLmShiftn( PUINT32 a, USHORT alen, USHORT shiftleft, USHORT shiftn );
+UINT32 OctApiLmGetMsb( PUINT32 a, USHORT alen, PUSHORT msb_pos );
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus*/
+
+#endif /*__OCTAPI_LARGMATH_H__*/

Propchange: trunk/include/apilib/octapi_largmath.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/apilib/octapi_largmath.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/apilib/octapi_largmath.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/apilib/octapi_llman.h
URL: http://svn.digium.com/view/zaptel/trunk/include/apilib/octapi_llman.h?rev=1117&view=auto
==============================================================================
--- trunk/include/apilib/octapi_llman.h (added)
+++ trunk/include/apilib/octapi_llman.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,127 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:		octapi_llman.h
+
+Copyright (c) 2001 Octasic Inc. All rights reserved.
+    
+Description: 
+
+This source code is Octasic Confidential. Use of and access to this code
+is covered by the Octasic Device Enabling Software License Agreement. 
+Acknowledgement of the Octasic Device Enabling Software License was 
+required for access to this code. A copy was also provided with the release.
+
+
+$Octasic_Release: OCT610xAPI-01.00-PR37 $
+
+$Octasic_Revision: 7 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+#include "octdef.h"
+
+/* Error defines*/
+#define OCTAPI_LLM_MEMORY_NOT_ALLOCATED 0xFFFFFFFF
+#define OCTAPI_LLM_NO_STRUCTURES_LEFT 0xFFFFFFFE
+#define OCTAPI_LLM_BLOCKNUM_OUT_OF_RANGE 0xFFFFFFFD
+#define OCTAPI_LLM_ELEMENT_ALREADY_ASSIGNED 0xFFFFFFFC
+#define OCTAPI_LLM_ELEMENT_NOT_FOUND 0xFFFFFFFB
+#define OCTAPI_LLM_LIST_EMPTY 0xFFFFFFFA
+#define OCTAPI_LLM_INVALID_LIST_HANDLE 0xFFFFFFF9
+#define OCTAPI_LLM_TREE_NODE_ABSENT 0xFFFFFFF8
+#define OCTAPI_LLM_INTERNAL_ERROR0 0xFFFFFFF7
+#define OCTAPI_LLM_INTERNAL_ERROR1 0xFFFFFFF6
+#define OCTAPI_LLM_INVALID_PARAMETER 0xFFFFFFF5
+
+#define OCTAPI_LLM2_MEMORY_NOT_ALLOCATED 0xFEFFFFFF
+#define OCTAPI_LLM2_NO_STRUCTURES_LEFT 0xFEFFFFFE
+#define OCTAPI_LLM2_BLOCKNUM_OUT_OF_RANGE 0xFEFFFFFD
+#define OCTAPI_LLM2_ELEMENT_ALREADY_ASSIGNED 0xFEFFFFFC
+#define OCTAPI_LLM2_ELEMENT_NOT_FOUND 0xFEFFFFFB
+#define OCTAPI_LLM2_LIST_EMPTY 0xFEFFFFFA
+#define OCTAPI_LLM2_INVALID_LIST_HANDLE 0xFEFFFFF9
+#define OCTAPI_LLM2_TREE_NODE_ABSENT 0xFEFFFFF8
+#define OCTAPI_LLM2_INTERNAL_ERROR0 0xFEFFFFF7
+#define OCTAPI_LLM2_INTERNAL_ERROR1 0xFEFFFFF6
+#define OCTAPI_LLM2_INVALID_PARAMETER 0xFEFFFFF5
+
+/* Other defines*/
+#define OCTAPI_LLM_LIST_APPEND 0xFFFFFFFF
+#define OCTAPI_LLM2_INSERT_ERROR			0xFFFFFFFF
+#define OCTAPI_LLM2_INSERT_FIRST_NODE		0xFFFF0000
+#define OCTAPI_LLM2_INSERT_LIST_NODE		0xFFFF0001
+#define OCTAPI_LLM2_INSERT_LAST_NODE		0xFFFF0002
+#define OCTAPI_LLM2_INSERT_BEFORE_LAST_NODE	0xFFFF0003
+#define OCTAPI_LLM2_REMOVE_ERROR			0xFFFFFFFF
+#define OCTAPI_LLM2_REMOVE_FIRST_NODE		0xFFFF0004
+#define OCTAPI_LLM2_REMOVE_LIST_NODE		0xFFFF0005
+#define OCTAPI_LLM2_REMOVE_LAST_NODE		0xFFFF0006
+#define OCTAPI_LLM2_REMOVE_BEFORE_LAST_NODE	0xFFFF0007
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus*/
+
+#define octapi_llm_alloc_get_size( number_of_items, l_size)									OctapiLlmAllocGetSize( (UINT32) number_of_items,(PUINT32) l_size )
+#define octapi_llm_alloc_init( l, number_of_items)											OctapiLlmAllocInit( (PVOID*) l,(UINT32) number_of_items)
+#define octapi_llm_alloc_info( l, allocated_items, available_items)							OctapiLlmAllocInfo( (PVOID) l, (PUINT32) allocated_items, (PUINT32) available_items )
+#define octapi_llm_alloc_alloc( l, blocknum)												OctapiLlmAllocAlloc( (PVOID) l, (PUINT32) blocknum )
+#define octapi_llm_alloc_dealloc( l, blocknum)												OctapiLlmAllocDealloc( (PVOID) l,(UINT32) blocknum )
+#define octapi_llm_list_get_size( number_of_items, number_of_lists, user_info_size, l_size)	OctApiLlmListGetSize( (UINT32) number_of_items,(UINT32) number_of_lists,(UINT32) user_info_size,(PUINT32) l_size )
+#define octapi_llm_list_init( l, number_of_items, number_of_lists, user_info_size)			OctApiLlmListInit( (PVOID*) l,(UINT32) number_of_items,(UINT32) number_of_lists,(UINT32) user_info_size )
+#define octapi_llm_list_info( l, allocated_lists, allocated_items, free_lists, free_items )	OctApiLlmListInfo( (PVOID) l,(PUINT32) allocated_lists,(PUINT32) allocated_items,(PUINT32) free_lists,(PUINT32) free_items )
+#define octapi_llm_list_create( l, list_handle)												OctApiLlmListCreate( (PVOID) l,(PUINT32) list_handle )
+#define octapi_llm_list_create_full( l, list_length, plist_handle)							OctApiLlmListCreateFull( (PVOID) l, (UINT32) list_length, (PUINT32) plist_handle )
+#define octapi_llm_list_append_items( l,  list_handle,  num_items)							OctApiLlmListAppendItems( (PVOID) l, (UINT32) list_handle, (UINT32) num_items )
+#define octapi_llm_list_append_and_set_items( l, list_handle, num_items, data_list)			OctApiLlmListAppendAndSetItems( (PVOID) l, (UINT32) list_handle, (UINT32) num_items, (PVOID) data_list )
+#define octapi_llm_list_delete( l, list_handle )											OctApiLlmListDelete( (PVOID) l,(UINT32) list_handle )
+#define octapi_llm_list_length( l, list_handle, number_of_items_in_list)					OctApiLlmListLength( (PVOID) l,(UINT32) list_handle, (PUINT32) number_of_items_in_list )
+#define octapi_llm_list_insert_item( l, list_handle, item_number, item_data_pnt)			OctApiLlmListInsertItem( (PVOID) l,(UINT32) list_handle,(UINT32) item_number,(PVOID*) item_data_pnt )
+#define octapi_llm_list_remove_item( l, list_handle, item_number)							OctApiLlmListRemoveItem( (PVOID) l,(UINT32) list_handle,(UINT32) item_number )
+#define octapi_llm_list_item_data( l, list_handle, item_number, item_data_pnt)				OctApiLlmListItemData( (PVOID) l,(UINT32) list_handle,(UINT32) item_number,(PVOID*) item_data_pnt )
+#define octapi_llm_list_copy_data( l, list_handle, start_item, data_length, pdata_list)		OctApiLlmListCopyData( (PVOID) l, (UINT32) list_handle, (UINT32) start_item, (UINT32) data_length, (PVOID) pdata_list )
+#define octapi_llm_list_set_items( l, list_handle, start_item, data_length, pdata_list)		OctApiLlmListSetItems( (PVOID) l, (UINT32) list_handle, (UINT32) start_item, (UINT32) data_length, (PVOID) pdata_list )
+
+
+/* Alloc man.*/
+static UINT32 OctapiLlmAllocGetSize( UINT32 number_of_items,PUINT32 l_size );
+static UINT32 OctapiLlmAllocInit( PVOID* l,UINT32 number_of_items);
+static UINT32 OctapiLlmAllocInfo( PVOID l, PUINT32 allocated_items, PUINT32 available_items );
+static UINT32 OctapiLlmAllocAlloc( PVOID l, PUINT32 blocknum );
+static UINT32 OctapiLlmAllocDealloc( PVOID l,UINT32 blocknum );
+
+/* Time managed alloc man.*/
+UINT32 OctApiTllmAllocGetSize( UINT32 number_of_items, PUINT32 l_size );
+UINT32 OctApiTllmAllocInit( PVOID* l, UINT32 number_of_items );
+UINT32 OctApiTllmAllocInfo( PVOID l, PUINT32 allocated_items, PUINT32 available_items );
+UINT32 OctApiTllmAllocAlloc( PVOID l, PUINT32 blocknum, UINT32 current_time[2] );
+UINT32 OctApiTllmAllocDealloc( PVOID l, UINT32 blocknum, UINT32 timeout_value, UINT32 current_time[2] );
+
+/* List man.*/
+UINT32 OctApiLlmListGetSize( UINT32 number_of_items,UINT32 number_of_lists,UINT32 user_info_size,PUINT32 l_size );
+UINT32 OctApiLlmListInit( PVOID* l,UINT32 number_of_items,UINT32 number_of_lists,UINT32 user_info_size );
+UINT32 OctApiLlmListInfo( PVOID l,PUINT32 allocated_lists,PUINT32 allocated_items,PUINT32 free_lists,PUINT32 free_items );
+UINT32 OctApiLlmListCreate( PVOID l,PUINT32 list_handle );
+UINT32 OctApiLlmListCreateFull( PVOID l, UINT32 list_length, UINT32* plist_handle );
+UINT32 OctApiLlmListAppendItems( PVOID l, UINT32 list_handle, UINT32 num_items );
+UINT32 OctApiLlmListAppendAndSetItems( PVOID l, UINT32 list_handle, UINT32 num_items, PVOID data_list );
+UINT32 OctApiLlmListDelete( PVOID l,UINT32 list_handle );
+UINT32 OctApiLlmListLength( PVOID l,UINT32 list_handle, PUINT32 number_of_items_in_list );
+UINT32 OctApiLlmListInsertItem( PVOID l,UINT32 list_handle,UINT32 item_number,PVOID* item_data_pnt );
+UINT32 OctApiLlmListRemoveItem( PVOID l,UINT32 list_handle,UINT32 item_number );
+UINT32 OctApiLlmListItemData( PVOID l,UINT32 list_handle,UINT32 item_number,PVOID* item_data_pnt );
+UINT32 OctApiLlmListCopyData( PVOID l, UINT32 list_handle, UINT32 start_item, UINT32 data_length, PVOID pdata_list );
+UINT32 OctApiLlmListSetItems( PVOID l, UINT32 list_handle, UINT32 start_item, UINT32 data_length, PVOID pdata_list );
+
+/* Second list manager using a key to order info in the list.*/
+UINT32 OctApiLlm2ListGetSize( UINT32 number_of_items,UINT32 number_of_lists,UINT32 user_info_size,PUINT32 l_size );
+UINT32 OctApiLlm2ListInit( PVOID* l,UINT32 number_of_items,UINT32 number_of_lists,UINT32 user_info_size );
+UINT32 OctApiLlm2ListCreate( PVOID l,PUINT32 list_handle );
+UINT32 OctApiLlm2ListLength( PVOID l,UINT32 list_handle, PUINT32 number_of_items_in_list );
+UINT32 OctApiLlm2ListInsertItem(void * l,UINT32 list_handle,UINT32 item_key,void ** item_data_pnt, void ** prev_item_data_pnt, void ** prev_prev_item_data_pnt, PUINT32 insert_status_pnt );
+UINT32 OctApiLlm2ListRemoveItem(void * l,UINT32 list_handle,UINT32 item_key, PUINT32 prev_item_key_pnt, PUINT32 prev_prev_item_key_pnt, PUINT32 remove_status_pnt );
+UINT32 OctApiLlm2ListItemData( PVOID l,UINT32 list_handle,UINT32 item_key,PVOID* item_data_pnt, PUINT32 item_number );
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus*/

Propchange: trunk/include/apilib/octapi_llman.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/apilib/octapi_llman.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/apilib/octapi_llman.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/oct6100api/oct6100_adpcm_chan_inst.h
URL: http://svn.digium.com/view/zaptel/trunk/include/oct6100api/oct6100_adpcm_chan_inst.h?rev=1117&view=auto
==============================================================================
--- trunk/include/oct6100api/oct6100_adpcm_chan_inst.h (added)
+++ trunk/include/oct6100api/oct6100_adpcm_chan_inst.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,74 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:  oct6100_adpcm_chan_inst.h
+
+    Copyright (c) 2001-2005 Octasic Inc.
+    
+Description: 
+
+	File containing all defines, macros, and structures pertaining to the file
+	oct6100_adpcm_chan.c.  All elements defined in this file are for public
+	usage of the API.  All private elements are defined in the
+	oct6100_adpcm_chan_priv.h file.
+
+This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API  is 
+free software; you can redistribute it and/or modify it under the terms of 
+the GNU General Public License as published by the Free Software Foundation; 
+either version 2 of the License, or (at your option) any later version.
+
+The OCT6100 GPL API is distributed in the hope that it will be useful, but 
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
+for more details. 
+
+You should have received a copy of the GNU General Public License 
+along with the OCT6100 GPL API; if not, write to the Free Software 
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+
+$Octasic_Release: OCT612xAPI-01.00-PR38 $
+
+$Octasic_Revision: 5 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+
+#ifndef __OCT6100_ADPCM_CHAN_INST_H__
+#define __OCT6100_ADPCM_CHAN_INST_H__
+
+/*****************************  INCLUDE FILES  *******************************/
+
+/*****************************  DEFINES  *************************************/
+
+/*****************************  TYPES  ***************************************/
+
+typedef struct _OCT6100_API_ADPCM_CHAN_
+{
+	/* Flag specifying whether the entry is used or not. */
+	UINT8	fReserved;
+	
+	/* Count used to manage entry handles allocated to user. */
+	UINT8	byEntryOpenCnt;
+
+	/* TSI chariot memory entry. */
+	UINT16	usTsiMemIndex;
+	
+	/* ADPCM memory entry. */
+	UINT16	usAdpcmMemIndex;
+
+	/* Input and output timeslot information. */
+	UINT16	usInputTimeslot;
+	UINT16	usInputStream;
+	UINT8	byInputNumTssts;
+	UINT8	byInputPcmLaw;
+
+	UINT16	usOutputTimeslot;
+	UINT16	usOutputStream;
+	UINT8	byOutputNumTssts;
+	UINT8	byOutputPcmLaw;
+
+	/* Internal info for quick access to structures associated to this TSI cnct. */
+	UINT16	usInputTsstIndex;
+	UINT16	usOutputTsstIndex;
+
+} tOCT6100_API_ADPCM_CHAN, *tPOCT6100_API_ADPCM_CHAN;
+
+#endif /* __OCT6100_ADPCM_CHAN_INST_H__ */

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_inst.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_inst.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_inst.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/oct6100api/oct6100_adpcm_chan_priv.h
URL: http://svn.digium.com/view/zaptel/trunk/include/oct6100api/oct6100_adpcm_chan_priv.h?rev=1117&view=auto
==============================================================================
--- trunk/include/oct6100api/oct6100_adpcm_chan_priv.h (added)
+++ trunk/include/oct6100api/oct6100_adpcm_chan_priv.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,131 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:  oct6100_adpcm_chan_priv.h
+
+    Copyright (c) 2001-2005 Octasic Inc.
+    
+Description: 
+
+	File containing all private defines, macros, structures and prototypes 
+	pertaining to the file oct6100_adpcm_chan.c.  All elements defined in this 
+	file are for private usage of the API.  All public elements are defined 
+	in the oct6100_adpcm_chan_pub.h file.
+
+This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API  is 
+free software; you can redistribute it and/or modify it under the terms of 
+the GNU General Public License as published by the Free Software Foundation; 
+either version 2 of the License, or (at your option) any later version.
+
+The OCT6100 GPL API is distributed in the hope that it will be useful, but 
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
+for more details. 
+
+You should have received a copy of the GNU General Public License 
+along with the OCT6100 GPL API; if not, write to the Free Software 
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+
+$Octasic_Release: OCT612xAPI-01.00-PR38 $
+
+$Octasic_Revision: 5 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+
+#ifndef __OCT6100_ADPCM_CHAN_PRIV_H__
+#define __OCT6100_ADPCM_CHAN_PRIV_H__
+
+/*****************************  INCLUDE FILES  *******************************/
+
+/*****************************  DEFINES  *************************************/
+
+/* ADPCM channel list pointer macros. */
+#define mOCT6100_GET_ADPCM_CHAN_LIST_PNT( pSharedInfo, pList ) \
+			pList = ( tPOCT6100_API_ADPCM_CHAN )(( PVOID )pSharedInfo + pSharedInfo->ulAdpcmChanListOfst );
+
+#define mOCT6100_GET_ADPCM_CHAN_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \
+			pEntry = (( tPOCT6100_API_ADPCM_CHAN )(( PVOID )pSharedInfo + pSharedInfo->ulAdpcmChanListOfst)) + ulIndex;
+
+#define mOCT6100_GET_ADPCM_CHAN_ALLOC_PNT( pSharedInfo, pAlloc ) \
+			pAlloc = ( PVOID )(( PVOID )pSharedInfo + pSharedInfo->ulAdpcmChanAllocOfst);
+
+/*****************************  TYPES  ***************************************/
+
+
+/************************** FUNCTION PROTOTYPES  *****************************/
+
+static UINT32 Oct6100ApiGetAdpcmChanSwSizes(
+				IN		tPOCT6100_CHIP_OPEN				f_pOpenChip,
+				OUT		tPOCT6100_API_INSTANCE_SIZES	f_pInstSizes );
+
+static UINT32 Oct6100ApiAdpcmChanSwInit(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance );
+
+
+UINT32 Oct6100AdpcmChanOpenSer(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN		f_pAdpcmChanOpen );
+
+UINT32 Oct6100ApiCheckAdpcmChanParams(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN		f_pAdpcmChanOpen );
+
+UINT32 Oct6100ApiReserveAdpcmChanResources(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN		f_pAdpcmChanOpen,
+				OUT		PUINT16							f_pusTsiChanIndex,
+				OUT		PUINT16							f_pusAdpcmMemIndex,
+				OUT		PUINT16							f_pusTsiMemIndex,
+				OUT		PUINT16							f_pusInputTsstIndex,
+				OUT		PUINT16							f_pusOutputTsstIndex );
+
+UINT32 Oct6100ApiWriteAdpcmChanStructs(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN		f_pAdpcmChanOpen,
+				IN		UINT16							f_usAdpcmMemIndex,
+				IN		UINT16							f_usTsiMemIndex,
+				IN		UINT16							f_usInputTsstIndex,
+				IN		UINT16							f_usOutputTsstIndex );
+
+UINT32 Oct6100ApiUpdateAdpcmChanEntry(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN		f_pAdpcmChanOpen,
+				IN		UINT16							f_usTsiChanIndex,
+				IN		UINT16							f_usAdpcmMemIndex,
+				IN		UINT16							f_usTsiMemIndex,
+				IN		UINT16							f_usInputTsstIndex,
+				IN		UINT16							f_usOutputTsstIndex );
+
+UINT32 Oct6100AdpcmChanCloseSer(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN		tPOCT6100_ADPCM_CHAN_CLOSE		f_pAdpcmChanClose );
+
+UINT32 Oct6100ApiAssertAdpcmChanParams( 
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN		tPOCT6100_ADPCM_CHAN_CLOSE		f_pAdpcmChanClose,
+				OUT		PUINT16							f_pusTsiChanIndex,
+				OUT		PUINT16							f_pusAdpcmMemIndex,
+				OUT		PUINT16							f_pusTsiMemIndex,
+				OUT		PUINT16							f_pusInputTsstIndex,
+				OUT		PUINT16							f_pusOutputTsstIndex );
+
+UINT32 Oct6100ApiInvalidateAdpcmChanStructs( 
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN		UINT16							f_usAdpcmChanIndex,
+				IN		UINT16							f_usInputTsstIndex,
+				IN		UINT16							f_usOutputTsstIndex );
+
+UINT32 Oct6100ApiReleaseAdpcmChanResources( 
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN		UINT16							f_usTsiChanIndex,
+				IN		UINT16							f_usAdpcmMemIndex,
+				IN		UINT16							f_usTsiMemIndex );
+
+UINT32 Oct6100ApiReserveAdpcmChanEntry(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				OUT		PUINT16							f_pusAdpcmChanIndex );
+
+UINT32 Oct6100ApiReleaseAdpcmChanEntry(
+				IN OUT	tPOCT6100_INSTANCE_API			f_pApiInstance,
+				IN		UINT16							f_usAdpcmChanIndex );
+
+#endif /* __OCT6100_ADPCM_CHAN_PRIV_H__ */

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_priv.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_priv.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_priv.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/oct6100api/oct6100_adpcm_chan_pub.h
URL: http://svn.digium.com/view/zaptel/trunk/include/oct6100api/oct6100_adpcm_chan_pub.h?rev=1117&view=auto
==============================================================================
--- trunk/include/oct6100api/oct6100_adpcm_chan_pub.h (added)
+++ trunk/include/oct6100api/oct6100_adpcm_chan_pub.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,90 @@
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+File:  oct6100_adpcm_chan_pub.h
+
+    Copyright (c) 2001-2005 Octasic Inc.
+    
+Description: 
+
+	File containing all defines, macros, and structures pertaining to the file
+	oct6100_adpcm_chan.c.  All elements defined in this file are for public
+	usage of the API.  All private elements are defined in the
+	oct6100_adpcm_chan_priv.h file.
+
+This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API  is 
+free software; you can redistribute it and/or modify it under the terms of 
+the GNU General Public License as published by the Free Software Foundation; 
+either version 2 of the License, or (at your option) any later version.
+
+The OCT6100 GPL API is distributed in the hope that it will be useful, but 
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
+for more details. 
+
+You should have received a copy of the GNU General Public License 
+along with the OCT6100 GPL API; if not, write to the Free Software 
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+
+$Octasic_Release: OCT612xAPI-01.00-PR38 $
+
+$Octasic_Revision: 4 $
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+
+#ifndef __OCT6100_ADPCM_CHAN_PUB_H__
+#define __OCT6100_ADPCM_CHAN_PUB_H__
+
+/*****************************  INCLUDE FILES  *******************************/
+
+
+/*****************************  DEFINES  *************************************/
+
+
+/*****************************  TYPES  ***************************************/
+
+typedef struct _OCT6100_ADPCM_CHAN_OPEN_
+{
+	PUINT32	pulChanHndl;
+
+	UINT32	ulInputTimeslot;
+	UINT32	ulInputStream;
+	UINT32	ulInputNumTssts;
+	UINT32	ulInputPcmLaw;
+
+	UINT32	ulOutputTimeslot;
+	UINT32	ulOutputStream;
+	UINT32	ulOutputNumTssts;
+	UINT32	ulOutputPcmLaw;
+
+	UINT32	ulChanMode;			/* Encoding or decoding. */
+
+	UINT32	ulEncodingRate;
+	UINT32	ulDecodingRate;		
+
+	UINT32	ulAdpcmNibblePosition;
+
+} tOCT6100_ADPCM_CHAN_OPEN, *tPOCT6100_ADPCM_CHAN_OPEN;
+
+typedef struct _OCT6100_ADPCM_CHAN_CLOSE_
+{
+	UINT32	ulChanHndl;
+
+} tOCT6100_ADPCM_CHAN_CLOSE, *tPOCT6100_ADPCM_CHAN_CLOSE;
+
+
+/************************** FUNCTION PROTOTYPES  *****************************/
+
+
+UINT32 Oct6100AdpcmChanOpenDef(
+				OUT		tPOCT6100_ADPCM_CHAN_OPEN				f_pAdpcmChanOpen );
+UINT32 Oct6100AdpcmChanOpen(
+				IN OUT	tPOCT6100_INSTANCE_API					f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_OPEN				f_pAdpcmChanOpen );
+
+UINT32 Oct6100AdpcmChanCloseDef(
+				OUT		tPOCT6100_ADPCM_CHAN_CLOSE				f_pAdpcmChanClose );
+UINT32 Oct6100AdpcmChanClose(
+				IN OUT	tPOCT6100_INSTANCE_API					f_pApiInstance,
+				IN OUT	tPOCT6100_ADPCM_CHAN_CLOSE				f_pAdpcmChanClose );
+
+#endif /* __OCT6100_ADPCM_CHAN_PUB_H__ */

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_pub.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_pub.h
------------------------------------------------------------------------------
    svn:keywords = author id date revision

Propchange: trunk/include/oct6100api/oct6100_adpcm_chan_pub.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/include/oct6100api/oct6100_api.h
URL: http://svn.digium.com/view/zaptel/trunk/include/oct6100api/oct6100_api.h?rev=1117&view=auto
==============================================================================
--- trunk/include/oct6100api/oct6100_api.h (added)
+++ trunk/include/oct6100api/oct6100_api.h Mon Jun 19 09:34:05 2006
@@ -1,0 +1,84 @@

[... 42507 lines stripped ...]


More information about the svn-commits mailing list