1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_tsi_cnct_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_tsi_cnct.c. All elements defined in
11
this file are for private usage of the API. All public elements are
12
defined in the oct6100_tsi_cnct_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: 14 $
32
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
34
#ifndef __OCT6100_TSI_CNCT_PRIV_H__
35
#define __OCT6100_TSI_CNCT_PRIV_H__
37
/***************************** INCLUDE FILES *******************************/
39
/***************************** DEFINES *************************************/
41
/* TSI connection list pointer macros. */
42
#define mOCT6100_GET_TSI_CNCT_LIST_PNT( pSharedInfo, pList ) \
43
pList = ( tPOCT6100_API_TSI_CNCT )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiCnctListOfst );
45
#define mOCT6100_GET_TSI_CNCT_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \
46
pEntry = (( tPOCT6100_API_TSI_CNCT )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiCnctListOfst)) + ulIndex;
48
#define mOCT6100_GET_TSI_CNCT_ALLOC_PNT( pSharedInfo, pAlloc ) \
49
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiCnctAllocOfst);
51
/***************************** TYPES ***************************************/
54
/************************** FUNCTION PROTOTYPES *****************************/
56
UINT32 Oct6100ApiGetTsiCnctSwSizes(
57
IN tPOCT6100_CHIP_OPEN f_pOpenChip,
58
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
60
UINT32 Oct6100ApiTsiCnctSwInit(
61
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
64
UINT32 Oct6100TsiCnctOpenSer(
65
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
66
IN OUT tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen );
68
UINT32 Oct6100ApiCheckTsiParams(
69
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70
IN tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen );
72
UINT32 Oct6100ApiReserveTsiResources(
73
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
74
IN tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen,
75
OUT PUINT16 f_pusTsiChanIndex,
76
OUT PUINT16 f_pusTsiMemIndex,
77
OUT PUINT16 f_pusInputTsstIndex,
78
OUT PUINT16 f_pusOutputTsstIndex );
80
UINT32 Oct6100ApiWriteTsiStructs(
81
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
82
IN tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen,
83
IN UINT16 f_usTsiMemIndex,
84
IN UINT16 f_usInputTsstIndex,
85
IN UINT16 f_usOutputTsstIndex );
87
UINT32 Oct6100ApiUpdateTsiEntry(
88
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
89
IN OUT tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen,
90
IN UINT16 f_usTsiChanIndex,
91
IN UINT16 f_usTsiMemIndex,
92
IN UINT16 f_usInputTsstIndex,
93
IN UINT16 f_usOutputTsstIndex );
96
UINT32 Oct6100TsiCnctCloseSer(
97
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
98
IN OUT tPOCT6100_TSI_CNCT_CLOSE f_pTsiCnctClose );
100
UINT32 Oct6100ApiAssertTsiParams(
101
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
102
IN tPOCT6100_TSI_CNCT_CLOSE f_pTsiCnctClose,
103
OUT PUINT16 f_pusTsiChanIndex,
104
OUT PUINT16 f_pusTsiMemIndex,
105
OUT PUINT16 f_pusInputTsstIndex,
106
OUT PUINT16 f_pusOutputTsstIndex );
108
UINT32 Oct6100ApiInvalidateTsiStructs(
109
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
110
IN UINT16 f_usInputTsstIndex,
111
IN UINT16 f_usOutputTsstIndex );
113
UINT32 Oct6100ApiReleaseTsiResources(
114
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
115
IN UINT16 f_usTsiChanIndex,
116
IN UINT16 f_usTsiMemIndex );
118
UINT32 Oct6100ApiReserveTsiCnctEntry(
119
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
120
OUT PUINT16 f_pusTsiChanIndex );
122
UINT32 Oct6100ApiReleaseTsiCnctEntry(
123
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
124
IN UINT16 f_usTsiChanIndex );
126
#endif /* __OCT6100_TSI_CNCT_PRIV_H__ */