diff options
author | John Crispin <john@openwrt.org> | 2011-05-29 21:19:26 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-05-29 21:19:26 +0000 |
commit | 6608f419d1a23762f34482b4628f9159bcb81fc2 (patch) | |
tree | 3f0b966c3d64ee995d89ee1a904c4306eedf846d /package/lqtapi/src/mps/vmmc-link.c | |
parent | c7cdee0230c999197b017fb4aadd49f5eb7dc0b8 (diff) | |
download | upstream-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-link.c')
-rw-r--r-- | package/lqtapi/src/mps/vmmc-link.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/package/lqtapi/src/mps/vmmc-link.c b/package/lqtapi/src/mps/vmmc-link.c deleted file mode 100644 index 42d11dbb6e..0000000000 --- a/package/lqtapi/src/mps/vmmc-link.c +++ /dev/null @@ -1,52 +0,0 @@ -#include <linux/kernel.h> -#include <linux/slab.h> -#include <linux/tapi/tapi.h> - -#include "vmmc-link.h" -#include "vmmc-module.h" - -struct vmmc_tapi_link { - struct tapi_link tapi_link; - struct vmmc_link vmmc_link; -}; - -struct tapi_link *vmmc_tapi_link_alloc(struct tapi_device *tdev, - struct tapi_endpoint *ep1, struct tapi_endpoint *ep2) -{ - struct vmmc_tapi_link *link = kzalloc(sizeof(*link), GFP_KERNEL); - struct vmmc_module *module1 = tapi_endpoint_to_vmmc_module(ep1); - struct vmmc_module *module2 = tapi_endpoint_to_vmmc_module(ep2); - - vmmc_link_init(&link->vmmc_link, module1, module2); - - return &link->tapi_link; -} - -void vmmc_tapi_link_free(struct tapi_device *tdev, struct tapi_link *tapi_link) -{ - struct vmmc_tapi_link *link = container_of(tapi_link, struct vmmc_tapi_link, - tapi_link); - - vmmc_link_put(&link->vmmc_link); - kfree(link); -} - -int vmmc_tapi_link_enable(struct tapi_device *tdev, - struct tapi_link *tapi_link) -{ - struct vmmc_tapi_link *link = container_of(tapi_link, struct vmmc_tapi_link, - tapi_link); - - vmmc_link_enable(&link->vmmc_link); - return 0; -} - -int vmmc_tapi_link_disable(struct tapi_device *tdev, - struct tapi_link *tapi_link) -{ - struct vmmc_tapi_link *link = container_of(tapi_link, struct vmmc_tapi_link, - tapi_link); - - vmmc_link_disable(&link->vmmc_link); - return 0; -} |