diff options
Diffstat (limited to 'wct4xxp/vpm450m.h')
-rw-r--r-- | wct4xxp/vpm450m.h | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/wct4xxp/vpm450m.h b/wct4xxp/vpm450m.h index 6e7454b..50205db 100644 --- a/wct4xxp/vpm450m.h +++ b/wct4xxp/vpm450m.h @@ -4,30 +4,50 @@ * Mark Spencer <markster@digium.com> * * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * */ #ifndef _VPM450M_H #define _VPM450M_H - struct vpm450m; + #ifdef HOTPLUG_FIRMWARE struct firmware; #endif +static const char *oct064_firmware = "OCT6114-64D.ima"; +static const char *oct128_firmware = "OCT6114-128D.ima"; + /* 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); +unsigned int oct_get_reg(void *data, unsigned int reg); +void oct_set_reg(void *data, unsigned int reg, unsigned int val); -/* From vpm450m2 */ +/* From vpm450m */ #ifdef HOTPLUG_FIRMWARE -extern struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans, const struct firmware *firmware); +struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans, const struct firmware *firmware); #else -extern struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans); +struct vpm450m *init_vpm450m(void *wc, int *isalaw, int numspans); #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); + +void vpm450m_setec(struct vpm450m *instance, int channel, int eclen); +void vpm450m_setdtmf(struct vpm450m *instance, int channel, int dtmfdetect, int dtmfmute); +int vpm450m_checkirq(struct vpm450m *vpm450m); +int vpm450m_getdtmf(struct vpm450m *vpm450m, int *channel, int *tone, int *start); +void release_vpm450m(struct vpm450m *instance); + #endif |