aboutsummaryrefslogtreecommitdiffstats
path: root/package/lqtapi/src/mps/vmmc-port.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-05-29 21:19:26 +0000
committerJohn Crispin <john@openwrt.org>2011-05-29 21:19:26 +0000
commit6608f419d1a23762f34482b4628f9159bcb81fc2 (patch)
tree3f0b966c3d64ee995d89ee1a904c4306eedf846d /package/lqtapi/src/mps/vmmc-port.c
parentc7cdee0230c999197b017fb4aadd49f5eb7dc0b8 (diff)
downloadupstream-6608f419d1a23762f34482b4628f9159bcb81fc2.tar.gz
upstream-6608f419d1a23762f34482b4628f9159bcb81fc2.tar.bz2
upstream-6608f419d1a23762f34482b4628f9159bcb81fc2.zip
* backport 2.6.8 patches to .39 / .32.33
* remove lqtapi * bump tapi/dsl to .39 * migrate to new ltq_ style api * add amazon_se support SVN-Revision: 27026
Diffstat (limited to 'package/lqtapi/src/mps/vmmc-port.c')
-rw-r--r--package/lqtapi/src/mps/vmmc-port.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/package/lqtapi/src/mps/vmmc-port.c b/package/lqtapi/src/mps/vmmc-port.c
deleted file mode 100644
index aa620a1e02..0000000000
--- a/package/lqtapi/src/mps/vmmc-port.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <linux/kernel.h>
-#include <linux/slab.h>
-
-#include <linux/tapi/tapi.h>
-
-#include "vmmc.h"
-#include "vmmc-port.h"
-#include "vmmc-alm.h"
-#include "vmmc-sig.h"
-
-int vmmc_port_ring(struct tapi_device *tdev, struct tapi_port *port, bool ring)
-{
- struct vmmc *vmmc = tdev_to_vmmc(tdev);
-
- return vmmc_alm_set_state(&vmmc->ports[port->id].alm,
- ring ? VMMC_ALM_STATE_RING : VMMC_ALM_STATE_ONHOOK);
-}
-
-int vmmc_port_send_dtmf_event(struct tapi_device *tdev,
- struct tapi_port *port, struct tapi_dtmf_event *event)
-{
- return 0;
-}
-
-struct vmmc_port *vmmc_port_init(struct vmmc *vmmc, struct vmmc_port *port,
- struct tapi_port *tport, unsigned int id)
-{
- vmmc_alm_init(&port->alm, vmmc, id);
- vmmc_sig_init(&port->sig, vmmc, id);
-
- port->sig_pin = vmmc_module_get_pin(&port->sig.module);
- vmmc_module_set_pin_input(&port->sig.module, port->sig_pin,
- &port->alm.module);
-
- vmmc_module_sync(&port->sig.module);
-
- vmmc_alm_set_state(&port->alm, VMMC_ALM_STATE_ONHOOK);
-
- tport->id = id;
- tapi_endpoint_set_data(&tport->ep, &port->alm.module);
-
- return port;
-}
-
-void vmmc_port_put(struct vmmc *vmmc, struct vmmc_port *port)
-{
- vmmc_module_put_pin(&port->sig.module, port->sig_pin);
-}