~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to include/oct6100api/oct6100_events_priv.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2006-08-23 07:30:22 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20060823073022-nx352q7c5ih5hsdm
Tags: 1:1.2.8.dfsg-1
New Upstream Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef cOCT6100_REMOVE_EVENTS
 
2
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
 
3
 
 
4
File:  oct6100_events_priv.h
 
5
 
 
6
    Copyright (c) 2001-2005 Octasic Inc.
 
7
    
 
8
Description: 
 
9
 
 
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.
 
14
 
 
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.
 
19
 
 
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 
 
23
for more details. 
 
24
 
 
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.
 
28
 
 
29
$Octasic_Release: OCT612xAPI-01.00-PR38 $
 
30
 
 
31
$Octasic_Revision: 12 $
 
32
 
 
33
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
 
34
 
 
35
#ifndef __OCT6100_EVENTS_PRIV_H__
 
36
#define __OCT6100_EVENTS_PRIV_H__
 
37
 
 
38
/*****************************  INCLUDE FILES  *******************************/
 
39
 
 
40
 
 
41
/*****************************  DEFINES  *************************************/
 
42
 
 
43
#define mOCT6100_GET_TONE_EVENT_BUF_PNT( pSharedInfo, pSoftBuf )        \
 
44
                        pSoftBuf = ( PVOID )(( PVOID )pSharedInfo + pSharedInfo->SoftBufs.ulToneEventBufferMemOfst );
 
45
 
 
46
#define mOCT6100_GET_BUFFER_PLAYOUT_EVENT_BUF_PNT( pSharedInfo, pSoftBuf )      \
 
47
                        pSoftBuf = ( PVOID )(( PVOID )pSharedInfo + pSharedInfo->SoftBufs.ulBufPlayoutEventBufferMemOfst );
 
48
 
 
49
/*****************************  TYPES  ***************************************/
 
50
 
 
51
 
 
52
/************************** FUNCTION PROTOTYPES  *****************************/
 
53
 
 
54
static UINT32 Oct6100ApiGetEventsSwSizes(
 
55
                                IN              tPOCT6100_CHIP_OPEN                                     f_pOpenChip,
 
56
                                OUT             tPOCT6100_API_INSTANCE_SIZES            f_pInstSizes );
 
57
 
 
58
static UINT32 Oct6100EventGetToneSer(
 
59
                                IN OUT  tPOCT6100_INSTANCE_API                          f_pApiInstance,
 
60
                                IN OUT  tPOCT6100_EVENT_GET_TONE                        f_pEventGetTone );
 
61
 
 
62
static UINT32 Oct6100ApiTransferToneEvents(
 
63
                                IN OUT  tPOCT6100_INSTANCE_API                          f_pApiInstance,
 
64
                                IN              UINT32                                                          f_ulResetBuf );
 
65
 
 
66
 
 
67
 
 
68
UINT32 Oct6100BufferPlayoutGetEventSer(
 
69
                                IN OUT  tPOCT6100_INSTANCE_API                          f_pApiInstance,
 
70
                                IN OUT  tPOCT6100_BUFFER_PLAYOUT_GET_EVENT      f_pBufPlayoutGetEvent );
 
71
 
 
72
static UINT32 Oct6100BufferPlayoutTransferEvents(
 
73
                                IN OUT  tPOCT6100_INSTANCE_API                          f_pApiInstance,
 
74
                                IN              UINT32                                                          f_ulResetBuf );
 
75
 
 
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 );
 
82
 
 
83
#endif /* __OCT6100_EVENTS_PRIV_H__ */
 
84
#endif /* cOCT6100_REMOVE_EVENTS */