Debian Codegraph @

xpp/oct612x/octdeviceapi/oct6100api/oct6100_memory_priv.h

raw
1 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
3 File: oct6100_memory_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_memory.c. All elements defined in this
11 file are for private usage of the API.
12
13 This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
14 free software; you can redistribute it and/or modify it under the terms of
15 the GNU General Public License as published by the Free Software Foundation;
16 either version 2 of the License, or (at your option) any later version.
17
18 The OCT6100 GPL API is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with the OCT6100 GPL API; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26
27 $Octasic_Release: OCT612xAPI-01.00-PR49 $
28
29 $Octasic_Revision: 17 $
30
31 \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
32
33 #ifndef __OCT6100_MEMORY_PRIV_H__
34 #define __OCT6100_MEMORY_PRIV_H__
35
36 /***************************** INCLUDE FILES *******************************/
37
38
39 /***************************** DEFINES *************************************/
40
41 /* TSI allocation pointer macros. */
42 #define mOCT6100_GET_TSI_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
43 pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiMemoryAllocOfst );
44
45 /* Conversion memory allocation pointer macros. */
46 #define mOCT6100_GET_CONVERSION_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
47 pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulConversionMemoryAllocOfst );
48
49 /***************************** TYPES ***************************************/
50
51
52 /************************** FUNCTION PROTOTYPES *****************************/
53
54 UINT32 Oct6100ApiGetMemorySwSizes(
55 IN tPOCT6100_CHIP_OPEN f_pOpenChip,
56 OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
57
58 UINT32 Oct6100ApiMemorySwInit(
59 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
60
61 UINT32 Oct6100ApiBufferPlayoutMemorySwInit(
62 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
63
64 UINT32 Oct6100ApiReserveBufferPlayoutMemoryNode(
65 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
66 OUT PUINT32 f_pulNewNode );
67
68 UINT32 Oct6100ApiReleaseBufferPlayoutMemoryNode(
69 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70 IN UINT32 f_ulOldNode );
71
72 UINT32 Oct6100ApiReserveBufferPlayoutMemory(
73 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
74 IN UINT32 f_ulSize,
75 OUT PUINT32 f_pulMallocAddress );
76
77 UINT32 Oct6100ApiReleaseBufferPlayoutMemory(
78 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
79 IN UINT32 f_ulMallocAddress );
80
81 UINT32 Oct6100ApiReserveTsiMemEntry(
82 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
83 OUT PUINT16 f_pusTsiMemIndex );
84
85 UINT32 Oct6100ApiReleaseTsiMemEntry(
86 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
87 IN UINT16 f_usTsiMemIndex );
88
89 UINT32 Oct6100ApiReserveConversionMemEntry(
90 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
91 OUT PUINT16 f_pusConversionMemIndex );
92
93 UINT32 Oct6100ApiReleaseConversionMemEntry(
94 IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
95 IN UINT16 f_usConversionMemIndex );
96
97 #endif /* __OCT6100_MEMORY_PRIV_H__ */