2010-08-28 05:59:27 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2005-2006 Digium, Inc.
|
|
|
|
*
|
|
|
|
* Mark Spencer <markster@digium.com>
|
|
|
|
*
|
|
|
|
* All Rights Reserved
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
|
|
|
*
|
|
|
|
* This program is free software, distributed under the terms of
|
|
|
|
* the GNU General Public License Version 2 as published by the
|
|
|
|
* Free Software Foundation. See the LICENSE file included with
|
|
|
|
* this program for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _VPM450M_H
|
|
|
|
#define _VPM450M_H
|
|
|
|
|
|
|
|
#include <linux/firmware.h>
|
|
|
|
|
2013-06-25 04:22:18 +08:00
|
|
|
struct t4;
|
2010-08-28 05:59:27 +08:00
|
|
|
struct vpm450m;
|
|
|
|
|
|
|
|
/* From driver */
|
|
|
|
unsigned int oct_get_reg(void *data, unsigned int reg);
|
|
|
|
void oct_set_reg(void *data, unsigned int reg, unsigned int val);
|
|
|
|
|
|
|
|
/* From vpm450m */
|
2013-06-25 04:22:18 +08:00
|
|
|
struct vpm450m *init_vpm450m(struct device *device, int *isalaw,
|
|
|
|
int numspans, const struct firmware *firmware);
|
|
|
|
unsigned int get_vpm450m_capacity(struct device *device);
|
2010-08-28 05:59:27 +08:00
|
|
|
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);
|
2013-05-07 01:33:52 +08:00
|
|
|
void vpm450m_set_alaw_companding(struct vpm450m *vpm450m,
|
|
|
|
int channel, bool alaw);
|
2010-08-28 05:59:27 +08:00
|
|
|
|
2013-11-04 23:07:29 +08:00
|
|
|
extern int debug;
|
|
|
|
|
2010-08-28 05:59:27 +08:00
|
|
|
#endif
|