summaryrefslogtreecommitdiffstats
path: root/src/raw1394.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix documentation of return values of raw1394_start_ family of functionsGravatar Stefan Richter 2010-02-011-7/+7
| | | | | | | | | | | | | | | | | | | If running on top of the raw1394 kernel driver (any kernel version) or on top of firewire-core (kernel version <= 2.6.29), raw1394_start_* functions will return a value > 0 on success, not == 0. Only with firewire-core of kernel 2.6.30 or later, == 0 is returned on success. The exact value depends on which driver is used, on CPU architecture, and on request payload size in case of some types of requests. In any case, only that the value is > or == 0 on success (but == -1 on failure) is significant to libraw1394 client applications. This mismatch between documentation and implementation was already present in older libraw1394 versions, including v1.x. For the time being, do not change the implementation, only adjust the documentation. Reported-by: Dr. David Alan Gilbert Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
* Fix "make doc".Gravatar Stefan Richter 2010-01-101-11/+7
| | | | | | | | | | | | | | | | | | | | Reported by Guus Sliepen: "make doc" failed due to missing doctype, unknown elements, and duplicate element IDs in libraw1394.sgml. The fix is to declare a recent DTD (matching the one which is used in current Linux kernel documentation docbooks) and to make the conflicting element IDs unique. The latter part of the fix is just temporary. In order to avoid the conflict when the documentation is updated the next time, also fix the kerneldoc comments of the respective API elements: These are typedefs, hence kernel-doc needs their comments prepended by "typedef ". Tested with Gentoo's docbook-xml-dtd 4.5, docbook-xsl-stylesheets 1.75.2, docbook-sgml-utils 0.6.14, and openjade 1.3.2-r1. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* [libraw1394 patch] Fix raw1394_channel_modify() on firewire-coreGravatar Stefan Richter 2008-12-031-1/+1
| | | | | | | | | | | | | | | | | | | (juju) Reported by Adrian Knoth: fw_channel_modify() was unable to allocate some channels which were actually free. http://marc.info/?l=linux1394-devel&t=122818128900002 This can be easily fixed by replacing fw_channel_modify() by ieee1394_channel_modify() because this is highlevel enough to work with Juju as well. We only may want a separate fw_channel_modify() in the future when firewire-core gains a special ioctl() for that. Also fix a documentation typo: raw1394_channel_modify() did not show up in extracted API documentation due to a cut'n'paste typo in raw1394.h. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Dan Dennedy <dan@dennedy.org>
* Change handle validation to prevent segfault and be more informative.Gravatar Dan Dennedy 2008-07-061-6/+8
|
* Fix raw1394_read_cycle_timer after juju integrationGravatar Stefan Richter 2008-07-051-1/+1
| | | | | | | | The ieee1394 version of raw1394_read_cycle_timer() fell over the cliff in "First cut at integrating juju". This brings it back and adds a juju version of it. Also correct a typo in the inline documentation: s/get/read/
* libraw1394.sgml, raw1394.h: remove information about deprecated isochronousGravatar Dan Dennedy 2008-04-291-2/+2
| | | | API that has been removed.
* First cut at integrating jujuGravatar Dan Dennedy 2008-04-231-95/+1
| | | | This is currently working with legacy ieee1394 and tools/testlibraw.
* fix documentation on raw1394_update_config_romGravatar ddennedy 2007-10-141-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@175 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add documentation about existence of RAW1394DEVGravatar ddennedy 2007-02-171-2/+12
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@171 53a565d1-3bb7-0310-b661-cf11e63c67ab
* added raw1394_read_cycle_timer, contributed by Pieter PalmersGravatar ddennedy 2007-02-141-1/+19
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@169 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added a new callback response for iso_xmit handlers: RAW1394_ISO_AGAIN.Gravatar ddennedy 2006-03-041-0/+5
| | | | | | | | | | | | | | | This would be returned when the callback doesn't have enough data to create a complete packet. This can occur when the xmit buffers are bigger than the buffers supplying the data. It is not nescessarily an error, because there are enough packets in the xmit buffer. This response could give the data supplyer more time to fill the intermediate buffer without losing any packets. Signed-off-by: Pieter Palmers <pieterp@joow.be> Signed-off-by: Dan Dennedy <dan@dennedy.org> git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@161 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add sanity check to queuing of packets in rawiso xmitGravatar ddennedy 2005-07-041-5/+11
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@159 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Add a comment that libraw does not allocate channels and bandwidth. ThisGravatar ddennedy 2005-07-011-0/+1
| | | | | | | | | | is already mentioned in doc/libraw1394.sgml but an existing comment about raw1394_iso_xmit_init may be misleading. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@158 53a565d1-3bb7-0310-b661-cf11e63c67ab
* documentation and header comment corrections from Stefan RichterGravatar ddennedy 2005-06-021-19/+23
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@155 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add functions for allocating and releasing bandwidth and channelsGravatar ddennedy 2005-02-161-1/+53
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@154 53a565d1-3bb7-0310-b661-cf11e63c67ab
* improve reference documentationGravatar ddennedy 2004-11-251-75/+192
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@150 53a565d1-3bb7-0310-b661-cf11e63c67ab
* port iso examples to rawiso APIGravatar ddennedy 2004-11-181-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@147 53a565d1-3bb7-0310-b661-cf11e63c67ab
* reorganize and update documentation; fix compiler warningGravatar ddennedy 2004-11-111-256/+800
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@144 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Jim Radford. Other half of packet_per_buffer ABI cleanup.Gravatar bencollins 2003-12-091-3/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@139 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Alexander Neundorf to support differing ISO rx modes. CurrentlyGravatar bencollins 2003-11-201-0/+8
| | | | | | | supported only by OHCI. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@138 53a565d1-3bb7-0310-b661-cf11e63c67ab
* sync with driverGravatar weihs 2003-11-091-0/+30
| | | | | | (addition of functions raw1394_arm_get_buf raw1394_arm_set_buf to get and set buffers of mapped address ranges) git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@137 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Patch from Alexander Neundorf to add proto for raw1394_iso_recv_flush()Gravatar bencollins 2003-10-071-0/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@135 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Async stream support from Jim Radford.Gravatar bencollins 2003-09-111-0/+7
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@130 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add raw1394_new_handle_on_port() convenience functionGravatar dmaas 2003-03-261-1/+9
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@104 53a565d1-3bb7-0310-b661-cf11e63c67ab
* add iso_xmit_sync() and iso_xmit_write(); clean up iso handling a bitGravatar dmaas 2003-01-151-0/+15
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@102 53a565d1-3bb7-0310-b661-cf11e63c67ab
* implement tag matching for rawiso receptionGravatar dmaas 2003-01-151-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@101 53a565d1-3bb7-0310-b661-cf11e63c67ab
* update iso API for multi-channel reception and new packet buffer layoutGravatar dmaas 2002-12-241-6/+18
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@98 53a565d1-3bb7-0310-b661-cf11e63c67ab
* dmaas - renamed exported arm definitions into the raw1394_ namespace; ↵Gravatar anonymous 2002-12-201-12/+12
| | | | | | 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
* rawiso updates:Gravatar dmaas 2002-12-161-16/+16
| | | | | | | | | | | | | | | - 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
* fix cplusplus extern C blockGravatar ddennedy 2002-11-181-4/+4
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@94 53a565d1-3bb7-0310-b661-cf11e63c67ab
* merged rawiso branchGravatar ddennedy 2002-11-181-0/+60
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@93 53a565d1-3bb7-0310-b661-cf11e63c67ab
* merged weihs branchGravatar ddennedy 2002-10-231-0/+199
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@84 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Add kernel-doc style documentation headers for most exported functions.Gravatar aeb 2002-10-131-1/+0
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@81 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Handle generation number is not automatically advanced with bus reset.Gravatar aeb 2001-05-141-3/+15
| | | | | | | | | Function raw1394_update_generation() added for manual update. Bus reset handler get current generation number as argument. Default bus reset handler calls raw1394_update_generation(). git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@60 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Add libraw1394 autoconf macro (not yet complete).Gravatar aeb 2001-02-051-0/+7
| | | | | | | Add functions and symbols to let macro determine version. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@53 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Put 'extern "C"' for C++ back in.Gravatar aeb 2001-01-311-1/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@52 53a565d1-3bb7-0310-b661-cf11e63c67ab
* First implementation of new error reporting API.Gravatar aeb 2001-01-191-14/+23
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@49 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added missing prototypes for iso send functions.Gravatar aeb 2000-09-011-0/+7
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@36 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added raw1394_get_irm_id().Gravatar aeb 2000-08-081-0/+1
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@35 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added raw1394_reset_bus() call.Gravatar aeb 2000-07-051-0/+4
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@33 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Fixed lock transaction to actually return response value.Gravatar aeb 2000-04-151-2/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@24 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Add userdata functions.Gravatar aeb 2000-04-051-0/+7
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@22 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Fix spelign of raw1394_set_fcp_handler().Gravatar aeb 2000-03-161-3/+3
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@13 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added FCP listen functionality.Gravatar aeb 2000-03-161-0/+17
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@12 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Renamed 'new' args to 'new_h' for C++ compatibility.Gravatar aeb 2000-03-121-3/+4
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@9 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added lock transaction.Gravatar abombe 2000-02-061-0/+5
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@7 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Changed iso rcv handling to separate handlers per channel.Gravatar abombe 2000-02-041-3/+8
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@6 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added isochronous I/O supportGravatar abombe 1999-12-291-10/+16
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@4 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Added prototypes for async write functionsGravatar abombe 1999-12-151-1/+6
| | | | git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@2 53a565d1-3bb7-0310-b661-cf11e63c67ab
* Initial revisionGravatar abombe 1999-12-021-0/+132
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@1 53a565d1-3bb7-0310-b661-cf11e63c67ab