1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_phasing_tsst_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_phasing_tsst.c. All elements defined in this
11
file are for private usage of the API. All public elements are defined
12
in the oct6100_phasing_tsst_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: 12 $
32
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
34
#ifndef __OCT6100_PHASING_TSST_PRIV_H__
35
#define __OCT6100_PHASING_TSST_PRIV_H__
37
/***************************** INCLUDE FILES *******************************/
39
/***************************** DEFINES *************************************/
41
#define mOCT6100_GET_PHASING_TSST_LIST_PNT( pSharedInfo, pList ) \
42
pList = ( tPOCT6100_API_PHASING_TSST )(( PUINT8 )pSharedInfo + pSharedInfo->ulPhasingTsstListOfst);
44
#define mOCT6100_GET_PHASING_TSST_ENTRY_PNT( pSharedInfo, pEntry, ulIndex ) \
45
pEntry = (( tPOCT6100_API_PHASING_TSST )(( PUINT8 )pSharedInfo + pSharedInfo->ulPhasingTsstListOfst)) + ulIndex;
47
#define mOCT6100_GET_PHASING_TSST_ALLOC_PNT( pSharedInfo, pAlloc ) \
48
pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulPhasingTsstAllocOfst);
50
/***************************** TYPES ***************************************/
53
/************************** FUNCTION PROTOTYPES *****************************/
55
UINT32 Oct6100ApiGetPhasingTsstSwSizes(
56
IN tPOCT6100_CHIP_OPEN f_pOpenChip,
57
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
59
UINT32 Oct6100ApiPhasingTsstSwInit(
60
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance );
62
UINT32 Oct6100PhasingTsstOpenSer(
63
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
64
IN OUT tPOCT6100_PHASING_TSST_OPEN f_pPhasingTsstOpen );
66
UINT32 Oct6100ApiCheckPhasingParams(
67
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
68
IN tPOCT6100_PHASING_TSST_OPEN f_pPhasingTsstOpen );
70
UINT32 Oct6100ApiReservePhasingResources(
71
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
72
IN tPOCT6100_PHASING_TSST_OPEN f_pPhasingTsstOpen,
73
OUT PUINT16 f_pusPhasingIndex,
74
OUT PUINT16 f_pusTsstIndex );
76
UINT32 Oct6100ApiWritePhasingStructs(
77
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
78
IN tPOCT6100_PHASING_TSST_OPEN f_pPhasingTsstOpen,
79
IN UINT16 f_usPhasingIndex,
80
IN UINT16 f_usTsstIndex );
82
UINT32 Oct6100ApiUpdatePhasingEntry(
83
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
84
IN OUT tPOCT6100_PHASING_TSST_OPEN f_pPhasingTsstOpen,
85
IN UINT16 f_usPhasingIndex,
86
IN UINT16 f_usTsstIndex );
88
UINT32 Oct6100PhasingTsstCloseSer(
89
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
90
IN OUT tPOCT6100_PHASING_TSST_CLOSE f_pPhasingTsstClose );
92
UINT32 Oct6100ApiAssertPhasingParams(
93
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
94
IN tPOCT6100_PHASING_TSST_CLOSE f_pPhasingTsstClose,
95
OUT PUINT16 f_pusPhasingIndex,
96
OUT PUINT16 f_pusTsstIndex );
98
UINT32 Oct6100ApiInvalidatePhasingStructs(
99
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
100
IN UINT16 f_usTsstIndex );
102
UINT32 Oct6100ApiReleasePhasingResources(
103
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
104
IN OUT UINT16 f_usPhasingIndex );
106
UINT32 Oct6100ApiReservePhasingEntry(
107
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
108
OUT PUINT16 f_pusPhasingIndex );
110
UINT32 Oct6100ApiReleasePhasingEntry(
111
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
112
IN UINT16 f_usPhasingIndex );
114
#endif /* #ifndef cOCT6100_REMOVE_PHASING_TSST */