summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Kristian Høgsberg 2007-04-17 20:06:14 -0400
committerGravatar Kristian Høgsberg 2007-04-17 20:06:14 -0400
commitfcba731c21fc7aadd952a9e5fb4f7635e64af4e8 (patch)
tree7558f72a4127664085824f6544e82845e38c2611
parentUse correct payload size for two-operand lock transactions. (diff)
Follow ioctl changes and header file move.
-rw-r--r--juju/juju.h2
-rw-r--r--juju/raw1394-iso.c13
2 files changed, 12 insertions, 3 deletions
diff --git a/juju/juju.h b/juju/juju.h
index d78d362..c7a2ebd 100644
--- a/juju/juju.h
+++ b/juju/juju.h
@@ -24,7 +24,7 @@
#include <stdlib.h>
#include <byteswap.h>
-#include <fw-device-cdev.h>
+#include <linux/firewire-cdev.h>
#include "../src/raw1394.h"
#include "../src/csr.h"
#include "config.h"
diff --git a/juju/raw1394-iso.c b/juju/raw1394-iso.c
index a320440..5e18dab 100644
--- a/juju/raw1394-iso.c
+++ b/juju/raw1394-iso.c
@@ -66,6 +66,7 @@ queue_packet(raw1394handle_t handle,
queue_iso.packets = ptr_to_u64(handle->iso.packets);
queue_iso.size = handle->iso.packet_index * sizeof handle->iso.packets[0];
queue_iso.data = ptr_to_u64(handle->iso.first_payload);
+ queue_iso.handle = 0;
handle->iso.packet_index = 0;
handle->iso.first_payload = handle->iso.head;
@@ -124,7 +125,8 @@ int raw1394_iso_xmit_start(raw1394handle_t handle, int start_on_cycle,
queue_xmit_packets(handle, prebuffer_packets);
if (handle->iso.prebuffer <= handle->iso.packet_count) {
- start_iso.cycle = start_on_cycle;
+ start_iso.cycle = start_on_cycle;
+ start_iso.handle = 0;
retval = ioctl(handle->iso.fd,
FW_CDEV_IOC_START_ISO, &start_iso);
@@ -212,6 +214,7 @@ int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle,
tag_mask == -1 ? FW_CDEV_ISO_CONTEXT_MATCH_ALL_TAGS : tag_mask;
/* sync is documented as 'not used' */
start_iso.sync = 0;
+ start_iso.handle = 0;
return ioctl(handle->iso.fd, FW_CDEV_IOC_START_ISO, &start_iso);
}
@@ -270,7 +273,8 @@ int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data,
handle->iso.packet_count >= handle->iso.prebuffer) {
/* Set this to 0 to indicate that we're running. */
handle->iso.prebuffer = 0;
- start_iso.cycle = handle->iso.start_on_cycle;
+ start_iso.cycle = handle->iso.start_on_cycle;
+ start_iso.handle = 0;
len = ioctl(handle->iso.fd,
FW_CDEV_IOC_START_ISO, &start_iso);
@@ -297,6 +301,7 @@ int raw1394_iso_xmit_sync(raw1394handle_t handle)
queue_iso.packets = ptr_to_u64(&skip);
queue_iso.size = sizeof skip;
queue_iso.data = 0;
+ queue_iso.handle = 0;
len = ioctl(handle->iso.fd, FW_CDEV_IOC_QUEUE_ISO, &queue_iso);
if (len < 0)
@@ -496,7 +501,11 @@ int raw1394_iso_recv_set_channel_mask(raw1394handle_t handle, u_int64_t mask)
void raw1394_iso_stop(raw1394handle_t handle)
{
+ struct fw_cdev_stop_iso stop_iso;
+
+ stop_iso.handle = 0;
ioctl(handle->iso.fd, FW_CDEV_IOC_STOP_ISO);
+
handle->iso.head = handle->iso.buffer;
handle->iso.tail = handle->iso.buffer;
handle->iso.first_payload = handle->iso.buffer;
retro' width='13' height='13' alt='Gravatar' /> dmaas 3-4/+12 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@101 53a565d1-3bb7-0310-b661-cf11e63c67ab 2003-01-06back out previous commit - don't drop the legacy API just yetGravatar dmaas 6-173/+130 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@100 53a565d1-3bb7-0310-b661-cf11e63c67ab 2003-01-05emulate legacy ISO reception API on top of new rawiso APIGravatar dmaas 7-131/+174 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@99 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-24update iso API for multi-channel reception and new packet buffer layoutGravatar dmaas 4-123/+236 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@98 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-20oops, irq_interval needs to be signedGravatar anonymous 1-1/+1 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@97 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-20dmaas - renamed exported arm definitions into the raw1394_ namespace; ↵Gravatar anonymous 3-124/+48 brought kernel-raw1394.h back in sync with the kernel version git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@96 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-16rawiso updates:Gravatar dmaas 3-18/+25 - changed return type of rawiso xmit/recv handlers from int to enum raw1394_iso_disposition - added an ioctl (RAW1394_ISO_QUEUE_ACTIVITY) to force an ISO_ACTIVITY event into the queue. This is needed for handling RAW1394_ISO_DEFER, to kick us out of the next read() instead of sleeping forever. - removed references to "8-byte" isochronous header - this is an OHCI-specific implementation detail git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@95 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@94 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@93 53a565d1-3bb7-0310-b661-cf11e63c67ab