Debian Codegraph @

src/cooked.h

raw
1 /*
2 * libiec61883 - Linux IEEE 1394 streaming media library.
3 * Copyright (C) 2004 Kristian Hogsberg, Dan Dennedy, and Dan Maas.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 #include <libraw1394/raw1394.h>
21
22 int
23 iec61883_cooked_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
24 size_t length, quadlet_t *buffer);
25
26 int
27 iec61883_cooked_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
28 size_t length, quadlet_t *data);
29
30 /*
31 * constants for use with raw1394 ARM
32 * The following probably should be in raw1394.h
33 */
34
35 /* extended transaction codes (lock-request-response) */
36 #define EXTCODE_MASK_SWAP 0x1
37 /* IEC 61883 says plugs should only be manipulated using
38 * compare_swap lock. */
39 #define EXTCODE_COMPARE_SWAP 0x2
40 #define EXTCODE_FETCH_ADD 0x3
41 #define EXTCODE_LITTLE_ADD 0x4
42 #define EXTCODE_BOUNDED_ADD 0x5
43 #define EXTCODE_WRAP_ADD 0x6
44
45 /* response codes */
46 #define RCODE_COMPLETE 0x0
47 #define RCODE_CONFLICT_ERROR 0x4
48 #define RCODE_DATA_ERROR 0x5
49 #define RCODE_TYPE_ERROR 0x6
50 #define RCODE_ADDRESS_ERROR 0x7