diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-15 02:24:18 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-15 02:24:18 +0000 |
commit | 41e0e5c06fead266ce179424b18134aeac2c5762 (patch) | |
tree | 246b5055fddf29d43c4d1a7c195ff3f3e1460ac4 /xpp/cards.h | |
parent | 6aa681528c72a21a011883dcdcd35130bd066eac (diff) |
initial import of Xorcom Astribank driver (issue #6452, with minor mods)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@949 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/cards.h')
-rw-r--r-- | xpp/cards.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xpp/cards.h b/xpp/cards.h new file mode 100644 index 0000000..26e53f0 --- /dev/null +++ b/xpp/cards.h @@ -0,0 +1,23 @@ +#ifndef CARDS_H +#define CARDS_H + +#include "xpd.h" + +struct xpd_card_ops { + int (*card_new)(xpd_t *xpd); + int (*card_remove)(xpd_t *xpd); +#if 0 + int (*zaptel_setup)(xpd_t *xpd); + int (*zaptel_cleanup)(xpd_t *xpd); +#endif + int (*card_startup)(struct zt_span *span); + int (*card_shutdown)(struct zt_span *span); + int (*card_spanconfig)(struct zt_span *span, struct zt_lineconfig *lc); + int (*card_chanconfig)(struct zt_chan *chan, int sigtype); + int (*card_sethook)(struct zt_chan *chan, int hookstate); + int (*card_ioctl)(struct zt_chan *chan, unsigned int cmd, unsigned long arg); +}; + +xops_t *get_xops(xpd_type_t xpd_type); + +#endif /* CARDS_H */ |