diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-27 02:02:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-08-27 02:02:42 +0000 |
commit | ff729b007e96a90d1d78b0271480779859d41b04 (patch) | |
tree | 34ae3b76710c3568412dcc983db1ce33e7984b34 /wct4xxp/vpm450m.h | |
parent | 059e0fa03c63025261ba8411132814046f5280f4 (diff) |
merge in new, cleaner Octasic API integration
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1359 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp/vpm450m.h')
-rw-r--r-- | wct4xxp/vpm450m.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/wct4xxp/vpm450m.h b/wct4xxp/vpm450m.h new file mode 100644 index 0000000..350ef1c --- /dev/null +++ b/wct4xxp/vpm450m.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2005-2006 Digium, Inc. + * + * Mark Spencer <markster@digium.com> + * + * All Rights Reserved + */ + +#ifndef _VPM450M_H +#define _VPM450M_H + + +struct vpm450m; +#ifdef HOTPLUG_FIRMWARE +struct firmware; +#endif + +/* From driver */ +extern unsigned int oct_get_reg(void *data, unsigned int reg); +extern void oct_set_reg(void *data, unsigned int reg, unsigned int val); + +/* From vpm450m2 */ +#ifdef HOTPLUG_FIRMWARE +extern struct vpm450m *init_vpm450m(void *wc, int *isalaw, const struct firmware *firmware); +#else +extern struct vpm450m *init_vpm450m(void *wc, int *isalaw); +#endif +extern void vpm450m_setec(struct vpm450m *instance, int channel, int eclen); +extern void vpm450m_setdtmf(struct vpm450m *instance, int channel, int dtmfdetect, int dtmfmute); +extern int vpm450m_checkirq(struct vpm450m *vpm450m); +extern int vpm450m_getdtmf(struct vpm450m *vpm450m, int *channel, int *tone, int *start); +extern void release_vpm450m(struct vpm450m *instance); +#endif |