1
#ifndef cOCT6100_REMOVE_EVENTS
2
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
4
File: oct6100_events_priv.h
6
Copyright (c) 2001-2005 Octasic Inc.
10
File containing all private defines, macros, structures and prototypes
11
pertaining to the file oct6100_events.c. All elements defined in this
12
file are for private usage of the API. All public elements are defined
13
in the oct6100_events_pub.h file.
15
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
16
free software; you can redistribute it and/or modify it under the terms of
17
the GNU General Public License as published by the Free Software Foundation;
18
either version 2 of the License, or (at your option) any later version.
20
The OCT6100 GPL API is distributed in the hope that it will be useful, but
21
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25
You should have received a copy of the GNU General Public License
26
along with the OCT6100 GPL API; if not, write to the Free Software
27
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
29
$Octasic_Release: OCT612xAPI-01.00-PR38 $
31
$Octasic_Revision: 12 $
33
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
35
#ifndef __OCT6100_EVENTS_PRIV_H__
36
#define __OCT6100_EVENTS_PRIV_H__
38
/***************************** INCLUDE FILES *******************************/
41
/***************************** DEFINES *************************************/
43
#define mOCT6100_GET_TONE_EVENT_BUF_PNT( pSharedInfo, pSoftBuf ) \
44
pSoftBuf = ( PVOID )(( PVOID )pSharedInfo + pSharedInfo->SoftBufs.ulToneEventBufferMemOfst );
46
#define mOCT6100_GET_BUFFER_PLAYOUT_EVENT_BUF_PNT( pSharedInfo, pSoftBuf ) \
47
pSoftBuf = ( PVOID )(( PVOID )pSharedInfo + pSharedInfo->SoftBufs.ulBufPlayoutEventBufferMemOfst );
49
/***************************** TYPES ***************************************/
52
/************************** FUNCTION PROTOTYPES *****************************/
54
static UINT32 Oct6100ApiGetEventsSwSizes(
55
IN tPOCT6100_CHIP_OPEN f_pOpenChip,
56
OUT tPOCT6100_API_INSTANCE_SIZES f_pInstSizes );
58
static UINT32 Oct6100EventGetToneSer(
59
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
60
IN OUT tPOCT6100_EVENT_GET_TONE f_pEventGetTone );
62
static UINT32 Oct6100ApiTransferToneEvents(
63
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
64
IN UINT32 f_ulResetBuf );
68
UINT32 Oct6100BufferPlayoutGetEventSer(
69
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
70
IN OUT tPOCT6100_BUFFER_PLAYOUT_GET_EVENT f_pBufPlayoutGetEvent );
72
static UINT32 Oct6100BufferPlayoutTransferEvents(
73
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
74
IN UINT32 f_ulResetBuf );
76
static UINT32 Oct6100BufferPlayoutCheckForSpecificEvent(
77
IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
78
IN UINT32 f_ulChannelIndex,
79
IN UINT32 f_ulChannelPort,
80
IN BOOL f_fSaveToSoftBuffer,
81
OUT PBOOL f_pfEventDetected );
83
#endif /* __OCT6100_EVENTS_PRIV_H__ */
84
#endif /* cOCT6100_REMOVE_EVENTS */