1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_debug_inst.h
5
Copyright (c) 2001-2007 Octasic Inc.
9
File containing all defines, macros, and structures pertaining to the file
10
oct6100_debug.c. All elements defined in this file are for public
11
usage of the API. All private elements are defined in the
12
oct6100_debug_priv.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: 10 $
32
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
34
#ifndef __OCT6100_DEBUG_INST_H__
35
#define __OCT6100_DEBUG_INST_H__
37
/***************************** INCLUDE FILES *******************************/
40
/***************************** DEFINES *************************************/
43
/***************************** TYPES ***************************************/
45
typedef struct _OCT6100_API_DEBUG_
47
/* Information from the TLVs. */
48
UINT32 ulDebugEventSize;
49
UINT32 ulMatrixBaseAddress;
50
UINT32 ulDebugChanStatsByteSize;
51
UINT32 ulDebugChanLiteStatsByteSize;
52
UINT32 ulHotChannelSelectBaseAddress;
53
UINT32 ulMatrixTimestampBaseAddress;
54
UINT32 ulAfWritePtrByteOffset;
55
UINT32 ulRecordedPcmEventByteSize;
56
UINT32 ulMatrixWpBaseAddress;
58
/* Pouch counter presence in the image. */
61
/* Record channel indexes. */
62
UINT16 usRecordMemIndex;
63
UINT16 usRecordChanIndex;
65
UINT16 usRecordRinRoutTsiMemIndex;
66
UINT16 usRecordSinSoutTsiMemIndex;
68
/* Debug channel information.*/
69
UINT16 usCurrentDebugChanIndex;
71
/* Matrix event mask. */
72
UINT16 usMatrixCBMask;
74
/* If data is being dumped now. */
75
UINT8 fDebugDataBeingDumped;
77
/* Index of the last event retrieved. */
78
UINT16 usLastDebugEventIndex;
80
/* Number of events to retrieve. */
83
/* Chip debug event write ptr. */
84
UINT16 usChipDebugEventWritePtr;
86
/* Hot channel read data. */
87
UINT16 ausHotChannelData[ 2 ];
89
/* Last PCM sample index. */
90
UINT32 ulLastPcmSampleIndex;
92
/* Last AF log read pointer. */
93
UINT16 usLastAfLogReadPtr;
95
/* AF log hardware write pointer. */
96
UINT16 usAfLogWritePtr;
98
/* Last tone event index retrieved. */
99
UINT16 usLastToneEventIndex;
101
/* Whether the image version string has been copied in the user buffer. */
102
BOOL fImageVersionCopied;
104
/* Whether the api version string has been copied in the user buffer. */
105
BOOL fApiVersionCopied;
107
/* Total number of bytes that will be returned for the current dump. */
108
UINT32 ulDebugDataTotalNumBytes;
110
/* Field to detect if the ISR is called present? */
111
BOOL fIsIsrCalledField;
113
/* Remaining number of bytes that will be returned for the current dump. */
114
UINT32 ulDebugDataRemainingNumBytes;
116
/* AF events control block size. */
117
UINT32 ulAfEventCbByteSize;
119
/* Current user selected data mode. Must be kept constant throughout a debug session. */
120
UINT32 ulCurrentGetDataMode;
122
} tOCT6100_API_DEBUG, *tPOCT6100_API_DEBUG;
124
#endif /* __OCT6100_DEBUG_INST_H__ */