Debian Codegraph @

drivers/dahdi/wct4xxp/vpm450m.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2005-2006 Digium, Inc.
3 *
4 * Mark Spencer <[email protected]>
5 *
6 * All Rights Reserved
7 *
8 */
9
10 /*
11 * See http://www.asterisk.org for more information about
12 * the Asterisk project. Please do not directly contact
13 * any of the maintainers of this project for assistance;
14 * the project provides a web site, mailing lists and IRC
15 * channels for your use.
16 *
17 * This program is free software, distributed under the terms of
18 * the GNU General Public License Version 2 as published by the
19 * Free Software Foundation. See the LICENSE file included with
20 * this program for more details.
21 */
22
23 #ifndef _VPM450M_H
24 #define _VPM450M_H
25
26 #include <linux/firmware.h>
27
28 struct t4;
29 struct vpm450m;
30
31 /* From driver */
32 unsigned int oct_get_reg(void *data, unsigned int reg);
33 void oct_set_reg(void *data, unsigned int reg, unsigned int val);
34
35 /* From vpm450m */
36 struct vpm450m *init_vpm450m(struct device *device, int *isalaw,
37 int numspans, const struct firmware *firmware);
38 unsigned int get_vpm450m_capacity(struct device *device);
39 void vpm450m_setec(struct vpm450m *instance, int channel, int eclen);
40 void vpm450m_setdtmf(struct vpm450m *instance, int channel, int dtmfdetect, int dtmfmute);
41 int vpm450m_checkirq(struct vpm450m *vpm450m);
42 int vpm450m_getdtmf(struct vpm450m *vpm450m, int *channel, int *tone, int *start);
43 void release_vpm450m(struct vpm450m *instance);
44 void vpm450m_set_alaw_companding(struct vpm450m *vpm450m,
45 int channel, bool alaw);
46
47 extern int debug;
48
49 #endif