mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[ifxmips]
* adds a rewrite of the tapi drivers + sip app. this is the result of lars' gsoc 2010 project, Thanks ! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23840 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
25
package/libtapi/src/tapi-device.h
Normal file
25
package/libtapi/src/tapi-device.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user