Debian Codegraph @

xpp/oct612x/octdeviceapi/oct6100api/oct6100_adpcm_chan_priv.h

raw
1 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
3 File: oct6100_adpcm_chan_priv.h
4
5 Copyright (c) 2001-2007 Octasic Inc.
6
7 Description:
8
9 File containing all private defines, macros, structures and prototypes
10 pertaining to the file oct6100_adpcm_chan.c. All elements defined in this
11 file are for private usage of the API. All public elements are defined
12 in the oct6100_adpcm_chan_pub.h file.
13
14 This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
15 free software; you can redistribute it and/or modify it under the terms of
16 the GNU General Public License as published by the Free Software Foundation;
17 either version 2 of the License, or (at your option) any later version.
18
19 The OCT6100 GPL API is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with the OCT6100 GPL API; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27
28 $Octasic_Release: OCT612xAPI-01.00-PR49 $
29
30 $Octasic_Revision: 7 $
31
32 \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
33
34 #ifndef __OCT6100_ADPCM_CHAN_PRIV_H__
35 #define __OCT6100_ADPCM_CHAN_PRIV_H__
36
37 /***************************** INCLUDE FILES *******************************/
38
39 /***************************** DEFINES *************************************/
40
41 /* ADPCM channel list pointer macros. */
42 #define mOCT6100_GET_ADPCM_CHAN_LIST_PNT( pSharedInfo, pList ) \
43 pList = ( tPOCT6100_API_ADPCM_CHAN )(( PUINT8 )pSharedInfo + pSharedInfo->ulAdpcmChanListOfst );
44
45 #define mOCT6100_GET_ADPCM_CHAN_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \
46 pEntry = (( tPOCT6100_API_ADPCM_CHAN )(( PUINT8 )pSharedInfo + pSharedInfo->ulAdpcmChanListOfst)) + ulIndex;
47
48 #define mOCT6100_GET_ADPCM_CHAN_ALLOC_PNT( pSharedInfo, pAlloc ) \
49 pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulAdpcmChanAllocOfst);
50
51 /***************************** TYPES ***************************************/
52
53
54 /************************** FUNCTION PROTOTYPES *****************************/
55
56 UINT32 Oct6100ApiGetAdpcmChanSwSizes(
57 IN tPOCT6100_CHIP_OPEN f_pOpenChip,
58 OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
59
60 UINT32 Oct6100ApiAdpcmChanSwInit(
61 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
62
63
64 UINT32 Oct6100AdpcmChanOpenSer(
65 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
66 IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen );
67
68 UINT32 Oct6100ApiCheckAdpcmChanParams(
69 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70 IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen );
71
72 UINT32 Oct6100ApiReserveAdpcmChanResources(
73 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
74 IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen,
75 OUT PUINT16 f_pusTsiChanIndex,
76 OUT PUINT16 f_pusAdpcmMemIndex,
77 OUT PUINT16 f_pusTsiMemIndex,
78 OUT PUINT16 f_pusInputTsstIndex,
79 OUT PUINT16 f_pusOutputTsstIndex );
80
81 UINT32 Oct6100ApiWriteAdpcmChanStructs(
82 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
83 IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen,
84 IN UINT16 f_usAdpcmMemIndex,
85 IN UINT16 f_usTsiMemIndex,
86 IN UINT16 f_usInputTsstIndex,
87 IN UINT16 f_usOutputTsstIndex );
88
89 UINT32 Oct6100ApiUpdateAdpcmChanEntry(
90 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
91 IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen,
92 IN UINT16 f_usTsiChanIndex,
93 IN UINT16 f_usAdpcmMemIndex,
94 IN UINT16 f_usTsiMemIndex,
95 IN UINT16 f_usInputTsstIndex,
96 IN UINT16 f_usOutputTsstIndex );
97
98 UINT32 Oct6100AdpcmChanCloseSer(
99 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
100 IN tPOCT6100_ADPCM_CHAN_CLOSE f_pAdpcmChanClose );
101
102 UINT32 Oct6100ApiAssertAdpcmChanParams(
103 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
104 IN tPOCT6100_ADPCM_CHAN_CLOSE f_pAdpcmChanClose,
105 OUT PUINT16 f_pusTsiChanIndex,
106 OUT PUINT16 f_pusAdpcmMemIndex,
107 OUT PUINT16 f_pusTsiMemIndex,
108 OUT PUINT16 f_pusInputTsstIndex,
109 OUT PUINT16 f_pusOutputTsstIndex );
110
111 UINT32 Oct6100ApiInvalidateAdpcmChanStructs(
112 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
113 IN UINT16 f_usAdpcmChanIndex,
114 IN UINT16 f_usInputTsstIndex,
115 IN UINT16 f_usOutputTsstIndex );
116
117 UINT32 Oct6100ApiReleaseAdpcmChanResources(
118 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
119 IN UINT16 f_usTsiChanIndex,
120 IN UINT16 f_usAdpcmMemIndex,
121 IN UINT16 f_usTsiMemIndex );
122
123 UINT32 Oct6100ApiReserveAdpcmChanEntry(
124 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
125 OUT PUINT16 f_pusAdpcmChanIndex );
126
127 UINT32 Oct6100ApiReleaseAdpcmChanEntry(
128 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
129 IN UINT16 f_usAdpcmChanIndex );
130
131 #endif /* __OCT6100_ADPCM_CHAN_PRIV_H__ */