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

« back to all changes in this revision

Viewing changes to oct612x/octdeviceapi/oct6100api/oct6100_memory_priv.h

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
 
 
3
 
File:  oct6100_memory_priv.h
4
 
 
5
 
    Copyright (c) 2001-2006 Octasic Inc.
6
 
    
7
 
Description: 
8
 
 
9
 
        File containing all private defines, macros, structures and prototypes 
10
 
        pertaining to the file oct6100_memory.c.  All elements defined in this 
11
 
        file are for private usage of the API.
12
 
 
13
 
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API  is 
14
 
free software; you can redistribute it and/or modify it under the terms of 
15
 
the GNU General Public License as published by the Free Software Foundation; 
16
 
either version 2 of the License, or (at your option) any later version.
17
 
 
18
 
The OCT6100 GPL API is distributed in the hope that it will be useful, but 
19
 
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
20
 
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
21
 
for more details. 
22
 
 
23
 
You should have received a copy of the GNU General Public License 
24
 
along with the OCT6100 GPL API; if not, write to the Free Software 
25
 
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26
 
 
27
 
$Octasic_Release: OCT612xAPI-01.00-PR43 $
28
 
 
29
 
$Octasic_Revision: 17 $
30
 
 
31
 
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
32
 
 
33
 
#ifndef __OCT6100_MEMORY_PRIV_H__
34
 
#define __OCT6100_MEMORY_PRIV_H__
35
 
 
36
 
/*****************************  INCLUDE FILES  *******************************/
37
 
 
38
 
 
39
 
/*****************************  DEFINES  *************************************/
40
 
 
41
 
/* TSI allocation pointer macros. */
42
 
#define mOCT6100_GET_TSI_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
43
 
                        pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulTsiMemoryAllocOfst );
44
 
 
45
 
/* Conversion memory allocation pointer macros. */
46
 
#define mOCT6100_GET_CONVERSION_MEMORY_ALLOC_PNT( pSharedInfo, pAlloc ) \
47
 
                        pAlloc = ( PVOID )(( PUINT8 )pSharedInfo + pSharedInfo->ulConversionMemoryAllocOfst );
48
 
 
49
 
/*****************************  TYPES  ***************************************/
50
 
 
51
 
 
52
 
/************************** FUNCTION PROTOTYPES  *****************************/
53
 
 
54
 
UINT32 Oct6100ApiGetMemorySwSizes(
55
 
                                IN              tPOCT6100_CHIP_OPEN                             f_pOpenChip,
56
 
                                OUT             tPOCT6100_API_INSTANCE_SIZES    f_pInstSizes );
57
 
 
58
 
UINT32 Oct6100ApiMemorySwInit(
59
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance );
60
 
 
61
 
UINT32 Oct6100ApiBufferPlayoutMemorySwInit(
62
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance );
63
 
 
64
 
UINT32 Oct6100ApiReserveBufferPlayoutMemoryNode( 
65
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
66
 
                                OUT             PUINT32                                                 f_pulNewNode );
67
 
 
68
 
UINT32 Oct6100ApiReleaseBufferPlayoutMemoryNode( 
69
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
70
 
                                IN              UINT32                                                  f_ulOldNode );
71
 
 
72
 
UINT32 Oct6100ApiReserveBufferPlayoutMemory( 
73
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
74
 
                                IN              UINT32                                                  f_ulSize, 
75
 
                                OUT             PUINT32                                                 f_pulMallocAddress );
76
 
 
77
 
UINT32 Oct6100ApiReleaseBufferPlayoutMemory(
78
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
79
 
                                IN              UINT32                                                  f_ulMallocAddress );
80
 
 
81
 
UINT32 Oct6100ApiReserveTsiMemEntry(
82
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
83
 
                                OUT             PUINT16                                                 f_pusTsiMemIndex );
84
 
 
85
 
UINT32 Oct6100ApiReleaseTsiMemEntry(
86
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
87
 
                                IN              UINT16                                                  f_usTsiMemIndex );
88
 
 
89
 
UINT32 Oct6100ApiReserveConversionMemEntry(
90
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
91
 
                                OUT             PUINT16                                                 f_pusConversionMemIndex );
92
 
 
93
 
UINT32 Oct6100ApiReleaseConversionMemEntry(
94
 
                                IN OUT  tPOCT6100_INSTANCE_API                  f_pApiInstance,
95
 
                                IN              UINT16                                                  f_usConversionMemIndex );
96
 
 
97
 
#endif /* __OCT6100_MEMORY_PRIV_H__ */