Debian Codegraph @

xpp/oct612x/include/oct6100api/oct6100_api_inst.h

raw
1 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
3 File: oct6100_api_inst.h
4
5 Copyright (c) 2001-2007 Octasic Inc.
6
7 Description:
8
9 File containing the definition of the API instance structure.
10
11 This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
12 free software; you can redistribute it and/or modify it under the terms of
13 the GNU General Public License as published by the Free Software Foundation;
14 either version 2 of the License, or (at your option) any later version.
15
16 The OCT6100 GPL API is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with the OCT6100 GPL API; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24
25 $Octasic_Release: OCT612xAPI-01.00-PR49 $
26
27 $Octasic_Revision: 40 $
28
29 \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
30
31 #ifndef __OCT6100_API_INST_H__
32 #define __OCT6100_API_INST_H__
33
34 /***************************** INCLUDE FILES *******************************/
35
36
37 /***************************** DEFINES *************************************/
38
39
40 /***************************** TYPES ***************************************/
41
42 typedef struct _OCT6100_SHARED_INFO_
43 {
44 /* Local copy of chip configuration structure. */
45 tOCT6100_API_CHIP_CONFIG ChipConfig;
46
47 /* Miscellaneous calculations and mapping of static structures in external memory. */
48 tOCT6100_API_MISCELLANEOUS MiscVars;
49 tOCT6100_API_MEMORY_MAP MemoryMap;
50
51 /* Error stats structure. */
52 tOCT6100_API_CHIP_ERROR_STATS ErrorStats;
53 tOCT6100_API_CHIP_STATS ChipStats;
54
55 /* Mixer information. */
56 tOCT6100_API_MIXER MixerInfo;
57
58 /* Image breakdown information. */
59 tOCT6100_API_IMAGE_REGION ImageRegion[ cOCT6100_MAX_IMAGE_REGION ];
60 tOCT6100_API_IMAGE_INFO ImageInfo;
61
62 /* Configuration and management of interrupts. */
63 tOCT6100_API_INTRPT_CONFIG IntrptConfig;
64 tOCT6100_API_INTRPT_MANAGE IntrptManage;
65 /* Remote debugging. */
66 tOCT6100_API_REMOTE_DEBUG_INFO RemoteDebugInfo;
67 /* Chip debugging information. */
68 tOCT6100_API_DEBUG DebugInfo;
69
70 /* Management variables of software and hardware buffers. */
71 tOCT6100_API_SOFT_BUFS SoftBufs;
72
73 /* Caller buffer playout memory management structure. */
74 tOCT6100_API_BUFFER_PLAYOUT_MALLOC_INFO PlayoutInfo;
75
76
77
78 UINT32 ulChannelListOfst;
79 UINT32 ulChannelAllocOfst;
80
81 UINT32 ulConversionMemoryAllocOfst;
82
83 UINT32 ulTsiMemoryAllocOfst;
84 UINT32 ulExtraTsiMemoryAllocOfst;
85 UINT32 ulEchoMemoryAllocOfst;
86
87 UINT32 ulTsstAllocOfst;
88 UINT32 ulTsstListOfst;
89 UINT32 ulTsstListAllocOfst;
90
91 UINT32 ulTsiCnctListOfst;
92 UINT32 ulTsiCnctAllocOfst;
93
94 UINT32 ulMixerEventListOfst;
95 UINT32 ulMixerEventAllocOfst;
96
97 UINT32 ulCopyEventListOfst;
98 UINT32 ulCopyEventAllocOfst;
99
100 UINT32 ulBiDirChannelListOfst;
101 UINT32 ulBiDirChannelAllocOfst;
102
103 UINT32 ulConfBridgeListOfst;
104 UINT32 ulConfBridgeAllocOfst;
105
106 UINT32 ulFlexConfParticipantListOfst;
107 UINT32 ulFlexConfParticipantAllocOfst;
108
109 UINT32 ulPlayoutBufListOfst;
110 UINT32 ulPlayoutBufAllocOfst;
111 UINT32 ulPlayoutBufMemoryNodeListOfst;
112
113
114
115 UINT32 ulAdpcmChanListOfst;
116 UINT32 ulAdpcmChanAllocOfst;
117
118 UINT32 ulPhasingTsstListOfst;
119 UINT32 ulPhasingTsstAllocOfst;
120
121 } tOCT6100_SHARED_INFO, *tPOCT6100_SHARED_INFO;
122
123 typedef struct _OCT6100_INSTANCE_API_
124 {
125 /* Pointer to portion of API instance structure shared amongst all processes. */
126 tPOCT6100_SHARED_INFO pSharedInfo;
127
128 /* Pointer to user-supplied, process context structure. The structure is
129 a parameter to all user-supplied functions. */
130 PVOID pProcessContext;
131
132 /* Handles to all serialization objects used by the API. */
133 tOCT6100_USER_SERIAL_OBJECT ulApiSerObj;
134
135
136 } tOCT6100_INSTANCE_API, *tPOCT6100_INSTANCE_API;
137
138 #endif /* __OCT6100_API_INST_H__ */