lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e6babb600612141023g5fd73b8bi89282b8c3008522b@mail.gmail.com>
Date:	Thu, 14 Dec 2006 11:23:11 -0700
From:	"Robert Crocombe" <rcrocomb@...il.com>
To:	"Stefan Richter" <stefanr@...6.in-berlin.de>
Cc:	"Keith Curtis" <Keith.Curtis@...eo.com>,
	linux1394-devel <linux1394-devel@...ts.sourceforge.net>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: isochronous receives?

On 12/13/06, Stefan Richter <stefanr@...6.in-berlin.de> wrote:
> How about leaving ohci1394 as it is but document tag_mask better in
> libraw1394's inline doxygen(?) comments, and maybe add an enum or macros
> to be used as values of raw1394_iso_recv_start's tag_mask argument?
>
> /* can be ORed together */
> #define RAW1394_IR_MATCH_TAG_0       1
> #define RAW1394_IR_MATCH_TAG_1       2
> #define RAW1394_IR_MATCH_TAG_2       4
> #define RAW1394_IR_MATCH_TAG_3       8
> #define RAW1394_IR_MATCH_ALL_TAGS   -1

Yeah, that's definitely much better.  I guess this would go in
libraw1394's raw1394.h?  Similar to:

--- raw1394.h   2006-11-29 11:54:56.000000000 -0700
+++ raw1394_modified.h  2006-12-14 11:20:57.000000000 -0700
@@ -40,6 +40,14 @@
 #define RAW1394_RCODE_TYPE_ERROR         0x6
 #define RAW1394_RCODE_ADDRESS_ERROR      0x7

+/* can be ORed together */
+#define RAW1394_IR_MATCH_TAG_0          0x1
+#define RAW1394_IR_MATCH_TAG_1          0x2
+#define RAW1394_IR_MATCH_TAG_2          0x4
+#define RAW1394_IR_MATCH_TAG_3          0x8
+#define RAW1394_IR_MATCH_ALL_TAGS       -1
+#define RAW1394_IR_MATCH_TAG(tag)       (1 << (tag))
+
 typedef u_int8_t  byte_t;
 typedef u_int32_t quadlet_t;
 typedef u_int64_t octlet_t;
@@ -273,7 +281,9 @@
  * @handle: libraw1394 handle
  * @start_on_cycle: isochronous cycle number on which to start
  * (-1 if you don't care)
- * @tag_mask: mask of tag fields to match (-1 to receive all packets)
+ * @tag_mask: mask of tag fields to match.  Use the RAW1394_IR_MATCH_*
+ * values for this rather than the literal tag bits: the values are not
+ * equivalent.
  * @sync: not used, reserved for future implementation
  *
  * Returns: 0 on success or -1 on failure (sets errno)

??

-- 
Robert Crocombe
rcrocomb@...il.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ