aboutsummaryrefslogtreecommitdiffstats
path: root/package/libtapi/src/tapi-device.h
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2010-11-03 19:12:34 +0000
committerJohn Crispin <john@openwrt.org>2010-11-03 19:12:34 +0000
commita8b2a07f375edefec242de9f20d4aefafa927517 (patch)
treed15f5bb696bfa9dfd9555788d411e0ba59b99a65 /package/libtapi/src/tapi-device.h
parent72ae8452cda47d6e18e664097a4adbc0eee3fc7b (diff)
downloadupstream-a8b2a07f375edefec242de9f20d4aefafa927517.tar.gz
upstream-a8b2a07f375edefec242de9f20d4aefafa927517.tar.bz2
upstream-a8b2a07f375edefec242de9f20d4aefafa927517.zip
* adds a rewrite of the tapi drivers + sip app. this is the result of lars' gsoc 2010 project, Thanks !
SVN-Revision: 23840
Diffstat (limited to 'package/libtapi/src/tapi-device.h')
-rw-r--r--package/libtapi/src/tapi-device.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/libtapi/src/tapi-device.h b/package/libtapi/src/tapi-device.h
new file mode 100644
index 0000000000..27658b9d83
--- /dev/null
+++ b/package/libtapi/src/tapi-device.h
@@ -0,0 +1,25 @@
+#ifndef __TAPI_DEVICE_H__
+#define __TAPI_DEVICE_H__
+
+struct tapi_device {
+ int control_fd;
+ int stream_fd;
+ struct tapi_port *ports;
+ char stream_path[100];
+
+ unsigned int id;
+
+ unsigned int num_ports;
+};
+
+struct tapi_endpoint;
+
+int tapi_device_open(unsigned int id, struct tapi_device *dev);
+
+int tapi_link_alloc(struct tapi_device *dev, unsigned int ep1, unsigned int ep2);
+int tapi_link_free(struct tapi_device *dev, unsigned int link);
+int tapi_link_enable(struct tapi_device *dev, unsigned int link);
+int tapi_link_disable(struct tapi_device *dev, unsigned int link);
+int tapi_sync(struct tapi_device *dev);
+
+#endif