| 1 |
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ |
| 2 |
|
| 3 |
File: oct6100_tsi_cnct_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_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. |
| 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: 14 $ |
| 31 |
|
| 32 |
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 33 |
|
| 34 |
#ifndef __OCT6100_TSI_CNCT_PRIV_H__ |
| 35 |
#define __OCT6100_TSI_CNCT_PRIV_H__ |
| 36 |
|
| 37 |
/***************************** INCLUDE FILES *******************************/ |
| 38 |
|
| 39 |
/***************************** DEFINES *************************************/ |
| 40 |
|
| 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 ); |
| 44 |
|
| 45 |
#define mOCT6100_GET_TSI_CNCT_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \ |
| 46 |
pEntry = (( tPOCT6100_API_TSI_CNCT )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiCnctListOfst)) + ulIndex; |
| 47 |
|
| 48 |
#define mOCT6100_GET_TSI_CNCT_ALLOC_PNT( pSharedInfo, pAlloc ) \ |
| 49 |
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiCnctAllocOfst); |
| 50 |
|
| 51 |
/***************************** TYPES ***************************************/ |
| 52 |
|
| 53 |
|
| 54 |
/************************** FUNCTION PROTOTYPES *****************************/ |
| 55 |
|
| 56 |
UINT32 Oct6100ApiGetTsiCnctSwSizes( |
| 57 |
IN tPOCT6100_CHIP_OPEN f_pOpenChip, |
| 58 |
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes ); |
| 59 |
|
| 60 |
UINT32 Oct6100ApiTsiCnctSwInit( |
| 61 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance ); |
| 62 |
|
| 63 |
|
| 64 |
UINT32 Oct6100TsiCnctOpenSer( |
| 65 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 66 |
IN OUT tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen ); |
| 67 |
|
| 68 |
UINT32 Oct6100ApiCheckTsiParams( |
| 69 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 70 |
IN tPOCT6100_TSI_CNCT_OPEN f_pTsiCnctOpen ); |
| 71 |
|
| 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 ); |
| 79 |
|
| 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 ); |
| 86 |
|
| 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 ); |
| 94 |
|
| 95 |
|
| 96 |
UINT32 Oct6100TsiCnctCloseSer( |
| 97 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 98 |
IN OUT tPOCT6100_TSI_CNCT_CLOSE f_pTsiCnctClose ); |
| 99 |
|
| 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 ); |
| 107 |
|
| 108 |
UINT32 Oct6100ApiInvalidateTsiStructs( |
| 109 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 110 |
IN UINT16 f_usInputTsstIndex, |
| 111 |
IN UINT16 f_usOutputTsstIndex ); |
| 112 |
|
| 113 |
UINT32 Oct6100ApiReleaseTsiResources( |
| 114 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 115 |
IN UINT16 f_usTsiChanIndex, |
| 116 |
IN UINT16 f_usTsiMemIndex ); |
| 117 |
|
| 118 |
UINT32 Oct6100ApiReserveTsiCnctEntry( |
| 119 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 120 |
OUT PUINT16 f_pusTsiChanIndex ); |
| 121 |
|
| 122 |
UINT32 Oct6100ApiReleaseTsiCnctEntry( |
| 123 |
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance, |
| 124 |
IN UINT16 f_usTsiChanIndex ); |
| 125 |
|
| 126 |
#endif /* __OCT6100_TSI_CNCT_PRIV_H__ */ |