aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device-cdev.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-02-16 17:34:42 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:59 -0500
commitb82956685aab4a9d333714300eb8a86fed6c9ab3 (patch)
treedec07ca99cb70714ec1bb3e5c53314a7a5573e73 /drivers/firewire/fw-device-cdev.c
parent69cdb7268ca2e644665dae8ea26e35ce4e96679c (diff)
firewire: Implement functionality to stop isochronous DMA contexts.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device-cdev.c')
-rw-r--r--drivers/firewire/fw-device-cdev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c
index b738c997ef39..1ce33d4f91a3 100644
--- a/drivers/firewire/fw-device-cdev.c
+++ b/drivers/firewire/fw-device-cdev.c
@@ -514,6 +514,11 @@ static int ioctl_start_iso(struct client *client, void __user *arg)
514 request.speed, request.cycle); 514 request.speed, request.cycle);
515} 515}
516 516
517static int ioctl_stop_iso(struct client *client, void __user *arg)
518{
519 return fw_iso_context_stop(client->iso_context);
520}
521
517static int 522static int
518dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg) 523dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
519{ 524{
@@ -532,6 +537,8 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
532 return ioctl_queue_iso(client, arg); 537 return ioctl_queue_iso(client, arg);
533 case FW_CDEV_IOC_START_ISO: 538 case FW_CDEV_IOC_START_ISO:
534 return ioctl_start_iso(client, arg); 539 return ioctl_start_iso(client, arg);
540 case FW_CDEV_IOC_STOP_ISO:
541 return ioctl_stop_iso(client, arg);
535 default: 542 default:
536 return -EINVAL; 543 return -EINVAL;
537 } 544 }