1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_memory_priv.h
5
Copyright (c) 2001-2006 Octasic Inc.
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.
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.
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
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.
27
$Octasic_Release: OCT612xAPI-01.00-PR43 $
29
$Octasic_Revision: 17 $
31
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
33
#ifndef __OCT6100_MEMORY_PRIV_H__
34
#define __OCT6100_MEMORY_PRIV_H__
36
/***************************** INCLUDE FILES *******************************/
39
/***************************** DEFINES *************************************/
41
/* TSI allocation pointer macros. */
42
#define mOCT6100_GET_TSI_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
43
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiMemoryAllocOfst );
45
/* Conversion memory allocation pointer macros. */
46
#define mOCT6100_GET_CONVERSION_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
47
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulConversionMemoryAllocOfst );
49
/***************************** TYPES ***************************************/
52
/************************** FUNCTION PROTOTYPES *****************************/
54
UINT32 Oct6100ApiGetMemorySwSizes(
55
IN tPOCT6100_CHIP_OPEN f_pOpenChip,
56
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
58
UINT32 Oct6100ApiMemorySwInit(
59
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
61
UINT32 Oct6100ApiBufferPlayoutMemorySwInit(
62
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
64
UINT32 Oct6100ApiReserveBufferPlayoutMemoryNode(
65
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
66
OUT PUINT32 f_pulNewNode );
68
UINT32 Oct6100ApiReleaseBufferPlayoutMemoryNode(
69
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70
IN UINT32 f_ulOldNode );
72
UINT32 Oct6100ApiReserveBufferPlayoutMemory(
73
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
75
OUT PUINT32 f_pulMallocAddress );
77
UINT32 Oct6100ApiReleaseBufferPlayoutMemory(
78
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
79
IN UINT32 f_ulMallocAddress );
81
UINT32 Oct6100ApiReserveTsiMemEntry(
82
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
83
OUT PUINT16 f_pusTsiMemIndex );
85
UINT32 Oct6100ApiReleaseTsiMemEntry(
86
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
87
IN UINT16 f_usTsiMemIndex );
89
UINT32 Oct6100ApiReserveConversionMemEntry(
90
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
91
OUT PUINT16 f_pusConversionMemIndex );
93
UINT32 Oct6100ApiReleaseConversionMemEntry(
94
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
95
IN UINT16 f_usConversionMemIndex );
97
#endif /* __OCT6100_MEMORY_PRIV_H__ */