1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_adpcm_chan_priv.h
5
Copyright (c) 2001-2007 Octasic Inc.
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.
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.
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
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.
28
$Octasic_Release: OCT612xAPI-01.00-PR49 $
30
$Octasic_Revision: 7 $
32
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
34
#ifndef __OCT6100_ADPCM_CHAN_PRIV_H__
35
#define __OCT6100_ADPCM_CHAN_PRIV_H__
37
/***************************** INCLUDE FILES *******************************/
39
/***************************** DEFINES *************************************/
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 );
45
#define mOCT6100_GET_ADPCM_CHAN_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \
46
pEntry = (( tPOCT6100_API_ADPCM_CHAN )(( PUINT8 )pSharedInfo + pSharedInfo->ulAdpcmChanListOfst)) + ulIndex;
48
#define mOCT6100_GET_ADPCM_CHAN_ALLOC_PNT( pSharedInfo, pAlloc ) \
49
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulAdpcmChanAllocOfst);
51
/***************************** TYPES ***************************************/
54
/************************** FUNCTION PROTOTYPES *****************************/
56
UINT32 Oct6100ApiGetAdpcmChanSwSizes(
57
IN tPOCT6100_CHIP_OPEN f_pOpenChip,
58
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
60
UINT32 Oct6100ApiAdpcmChanSwInit(
61
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
64
UINT32 Oct6100AdpcmChanOpenSer(
65
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
66
IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen );
68
UINT32 Oct6100ApiCheckAdpcmChanParams(
69
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70
IN OUT tPOCT6100_ADPCM_CHAN_OPEN f_pAdpcmChanOpen );
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 );
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 );
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 );
98
UINT32 Oct6100AdpcmChanCloseSer(
99
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
100
IN tPOCT6100_ADPCM_CHAN_CLOSE f_pAdpcmChanClose );
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 );
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 );
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 );
123
UINT32 Oct6100ApiReserveAdpcmChanEntry(
124
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
125
OUT PUINT16 f_pusAdpcmChanIndex );
127
UINT32 Oct6100ApiReleaseAdpcmChanEntry(
128
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
129
IN UINT16 f_usAdpcmChanIndex );
131
#endif /* __OCT6100_ADPCM_CHAN_PRIV_H__ */