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

« back to all changes in this revision

Viewing changes to oct612x/include/octosdependant.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: octosdependant.h
4
 
 
5
 
    Copyright (c) 2001-2006 Octasic Inc.
6
 
 
7
 
Description: 
8
 
 
9
 
        This file is included to set target-specific constants.
10
 
 
11
 
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API  is 
12
 
free software; you can redistribute it and/or modify it under the terms of 
13
 
the GNU General Public License as published by the Free Software Foundation; 
14
 
either version 2 of the License, or (at your option) any later version.
15
 
 
16
 
The OCT6100 GPL API is distributed in the hope that it will be useful, but 
17
 
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
18
 
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
19
 
for more details. 
20
 
 
21
 
You should have received a copy of the GNU General Public License 
22
 
along with the OCT6100 GPL API; if not, write to the Free Software 
23
 
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24
 
 
25
 
$Octasic_Release: OCT612xAPI-01.00-PR43 $
26
 
 
27
 
$Octasic_Revision: 16 $
28
 
 
29
 
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
30
 
 
31
 
#ifndef __OCTOSDEPENDANT_H__
32
 
#define __OCTOSDEPENDANT_H__
33
 
 
34
 
 
35
 
/*--------------------------------------------------------------------------
36
 
        C language
37
 
----------------------------------------------------------------------------*/
38
 
 
39
 
#ifdef __cplusplus
40
 
extern "C" {
41
 
#endif
42
 
 
43
 
 
44
 
 
45
 
/*****************************************************************************
46
 
 
47
 
  Known define values
48
 
 
49
 
        MSDEV:
50
 
                        WIN32           ==      WINDOWS 32 bit app
51
 
                        __WIN32__       ==      WINDOWS 32 bit app
52
 
                        _Windows        ==      WINDOWS 16 bit app
53
 
 
54
 
                        _WINDOWS        ==      Windows application .. not console
55
 
                        _DLL            ==      Dll Application
56
 
                        _CONSOLE        ==      Console Application .. no windows
57
 
 
58
 
        BORLANDC
59
 
                        __TURBOC__              == Turbo Compiler
60
 
                        __BORLANDC__    == Borland compiler
61
 
                        __OS2__                 == Borland OS2 compiler
62
 
                        _Windows                == Windows 16 bit app
63
 
 
64
 
        GCC Compiler
65
 
                        __GNUC__                == GCC Compiler
66
 
                        __unix__                == Unix system 
67
 
                        __vax__                 == Unix system 
68
 
                        unix                    == Unix system
69
 
                        vax                             == vax system
70
 
 
71
 
        TORNADO
72
 
                        _VXWORKS_               ==      VXWORK
73
 
 
74
 
        ECOS/CYGWIN
75
 
                        _ECOS_                  == eCos
76
 
 
77
 
        SOLARIS
78
 
                        _SOLARIS_               == Solaris
79
 
 
80
 
*****************************************************************************/
81
 
 
82
 
/* Machine endian type */
83
 
 
84
 
#define OCT_MACH_LITTLE_ENDIAN          1
85
 
#define OCT_MACH_BIG_ENDIAN                     2
86
 
 
87
 
/* Try to find current OCT_MACH_ENDIAN from compiler define values */
88
 
#if !defined( MACH_TYPE_BIG_ENDIAN ) && !defined( MACH_TYPE_LITTLE_ENDIAN )
89
 
 
90
 
        /* Look for intel */
91
 
        #if defined( _M_IX86 )  
92
 
                #define OCT_MACH_ENDIAN         OCT_MACH_LITTLE_ENDIAN
93
 
        /* Look for PowerPC */
94
 
        #elif defined( _M_MPPC  ) || defined( _M_PPC ) 
95
 
                #define OCT_MACH_ENDIAN         OCT_MACH_BIG_ENDIAN
96
 
        #elif defined( CPU )
97
 
                #if CPU==PPC860 || CPU==SIMNT
98
 
                        #define OCT_MACH_ENDIAN         OCT_MACH_BIG_ENDIAN
99
 
                #else
100
 
                        #define OCT_MACH_ENDIAN         OCT_MACH_LITTLE_ENDIAN  
101
 
                #endif
102
 
        /* Default is little endian */
103
 
        #else
104
 
                #define OCT_MACH_ENDIAN         OCT_MACH_LITTLE_ENDIAN  
105
 
        #endif
106
 
#else
107
 
        #if defined( MACH_TYPE_BIG_ENDIAN )
108
 
                #define OCT_MACH_ENDIAN         OCT_MACH_BIG_ENDIAN
109
 
        #else
110
 
                #define OCT_MACH_ENDIAN         OCT_MACH_LITTLE_ENDIAN  
111
 
        #endif
112
 
#endif
113
 
 
114
 
/* Find system type if not already defined */
115
 
#if !defined( OCT_NTDRVENV ) && !defined( OCT_VXENV ) && !defined( OCT_WINENV )
116
 
 
117
 
#if defined( WIN32 ) || defined( __WIN32__ ) || defined( _WIN32_ ) || defined( WIN32S )
118
 
        /* Verif if building a win32 driver */
119
 
        #if ( defined( WIN32 ) && WIN32==100 )
120
 
                #define OCT_NTDRVENV
121
 
        #else
122
 
                #define OCT_WINENV
123
 
        #endif
124
 
#elif defined( _VXWORKS_ )
125
 
        #define OCT_VXENV
126
 
#elif defined( _ECOS_ )
127
 
        #define OCT_ECOSENV
128
 
#elif defined( _SOLARIS_ )
129
 
        #define OCT_SOLARISENV
130
 
#elif defined( _LINUX_ )
131
 
        #define OCT_LINUXENV
132
 
#else
133
 
        /* Unknown environment */
134
 
        #define OCT_UNKNOWNENV
135
 
#endif  /* WIN env */
136
 
 
137
 
#endif /* Already defined */
138
 
 
139
 
#if defined( __KERNEL__ ) && defined( OCT_LINUXENV )
140
 
#define OCT_LINUXDRVENV
141
 
#endif
142
 
 
143
 
#ifdef _DEBUG
144
 
#define OCT_OPT_USER_DEBUG
145
 
#endif
146
 
 
147
 
/*--------------------------------------------------------------------------
148
 
        C language
149
 
----------------------------------------------------------------------------*/
150
 
 
151
 
#ifdef __cplusplus
152
 
}
153
 
#endif
154
 
 
155
 
#endif  /* __OCTOSDEPENDANT_H__ */