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

« back to all changes in this revision

Viewing changes to xpp/xpp_zap.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
 
#ifndef XPP_ZAP_H
2
 
#define XPP_ZAP_H
3
 
/*
4
 
 * Written by Oron Peled <oron@actcom.co.il>
5
 
 * Copyright (C) 2004-2006, Xorcom
6
 
 *
7
 
 * All rights reserved.
8
 
 *
9
 
 * This program is free software; you can redistribute it and/or modify
10
 
 * it under the terms of the GNU General Public License as published by
11
 
 * the Free Software Foundation; either version 2 of the License, or
12
 
 * (at your option) any later version.
13
 
 *
14
 
 * This program is distributed in the hope that it will be useful,
15
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
 * GNU General Public License for more details.
18
 
 *
19
 
 * You should have received a copy of the GNU General Public License
20
 
 * along with this program; if not, write to the Free Software
21
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
 
 *
23
 
 */
24
 
 
25
 
#include <linux/workqueue.h>
26
 
#include "xpd.h"
27
 
#include "xproto.h"
28
 
 
29
 
void xpd_disconnect(xpd_t *xpd);
30
 
int packet_send(xbus_t *xbus, xpacket_t *pack_tx);
31
 
void card_detected(struct card_desc_struct *card_desc);
32
 
xpd_t *xpd_alloc(size_t privsize, xbus_t *xbus, int xpd_num, const xproto_table_t *proto_table, int channels, byte revision);
33
 
void xpd_remove(xpd_t *xpd);
34
 
void update_xpd_status(xpd_t *xpd, int alarm_flag);
35
 
void update_zap_ring(xpd_t *xpd, int pos, bool on);
36
 
void update_line_status(xpd_t *xpd, int pos, bool good);
37
 
void fill_beep(u_char *buf, int duration);
38
 
void xpp_tick(unsigned long param);
39
 
int xpp_open(struct zt_chan *chan);
40
 
int xpp_close(struct zt_chan *chan);
41
 
int xpp_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long arg);
42
 
int xpp_maint(struct zt_span *span, int cmd);
43
 
void sync_master_is(xpd_t *xpd);
44
 
 
45
 
extern struct workqueue_struct          *xpp_worker;
46
 
 
47
 
#ifdef CONFIG_PROC_FS
48
 
#include <linux/proc_fs.h>
49
 
 
50
 
extern struct proc_dir_entry    *xpp_proc_toplevel;
51
 
#endif
52
 
 
53
 
#define SPAN_REGISTERED(xpd)    atomic_read(&(xpd)->zt_registered)
54
 
 
55
 
#endif  /* XPP_ZAP_H */