4
* Written by Oron Peled <oron@actcom.co.il>
5
* Copyright (C) 2004-2006, Xorcom
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.
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.
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.
25
#include <linux/workqueue.h>
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);
45
extern struct workqueue_struct *xpp_worker;
48
#include <linux/proc_fs.h>
50
extern struct proc_dir_entry *xpp_proc_toplevel;
53
#define SPAN_REGISTERED(xpd) atomic_read(&(xpd)->zt_registered)
55
#endif /* XPP_ZAP_H */