aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/firewire-cdev.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-05-07 20:33:37 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-05-10 12:24:13 -0400
commit4c5a443e80e6d85e5c84a56bf30b61fe84c1f292 (patch)
treec5404475fe48376d9151c08c4cc37eb507fcd5e3 /include/linux/firewire-cdev.h
parent04dfb8dbd200c574b2f292146ef817d9745c8936 (diff)
firewire: Break out shared IEEE1394 constant to separate header file.
Signed-off-by: Kristian Hoegsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux/firewire-cdev.h')
-rw-r--r--include/linux/firewire-cdev.h51
1 files changed, 6 insertions, 45 deletions
diff --git a/include/linux/firewire-cdev.h b/include/linux/firewire-cdev.h
index 3cb83a1fa9ba..d4455eb2ae35 100644
--- a/include/linux/firewire-cdev.h
+++ b/include/linux/firewire-cdev.h
@@ -1,6 +1,5 @@
1/* -*- c-basic-offset: 8 -*- 1/*
2 * 2 * Char device interface.
3 * fw-device-cdev.h -- Char device interface.
4 * 3 *
5 * Copyright (C) 2005-2006 Kristian Hoegsberg <krh@bitplanet.net> 4 * Copyright (C) 2005-2006 Kristian Hoegsberg <krh@bitplanet.net>
6 * 5 *
@@ -19,50 +18,12 @@
19 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */ 19 */
21 20
22#ifndef __fw_cdev_h 21#ifndef _LINUX_FIREWIRE_CDEV_H
23#define __fw_cdev_h 22#define _LINUX_FIREWIRE_CDEV_H
24 23
25#include <linux/ioctl.h> 24#include <linux/ioctl.h>
26#include <linux/types.h> 25#include <linux/types.h>
27 26#include <linux/firewire-constants.h>
28#define TCODE_WRITE_QUADLET_REQUEST 0
29#define TCODE_WRITE_BLOCK_REQUEST 1
30#define TCODE_WRITE_RESPONSE 2
31#define TCODE_READ_QUADLET_REQUEST 4
32#define TCODE_READ_BLOCK_REQUEST 5
33#define TCODE_READ_QUADLET_RESPONSE 6
34#define TCODE_READ_BLOCK_RESPONSE 7
35#define TCODE_CYCLE_START 8
36#define TCODE_LOCK_REQUEST 9
37#define TCODE_STREAM_DATA 10
38#define TCODE_LOCK_RESPONSE 11
39
40#define TCODE_LOCK_MASK_SWAP 0x11
41#define TCODE_LOCK_COMPARE_SWAP 0x12
42#define TCODE_LOCK_FETCH_ADD 0x13
43#define TCODE_LOCK_LITTLE_ADD 0x14
44#define TCODE_LOCK_BOUNDED_ADD 0x15
45#define TCODE_LOCK_WRAP_ADD 0x16
46#define TCODE_LOCK_VENDOR_DEPENDENT 0x17
47
48#define RCODE_COMPLETE 0x0
49#define RCODE_CONFLICT_ERROR 0x4
50#define RCODE_DATA_ERROR 0x5
51#define RCODE_TYPE_ERROR 0x6
52#define RCODE_ADDRESS_ERROR 0x7
53
54#define RCODE_SEND_ERROR 0x10
55#define RCODE_CANCELLED 0x11
56#define RCODE_BUSY 0x12
57#define RCODE_GENERATION 0x13
58#define RCODE_NO_ACK 0x14
59
60#define SCODE_100 0x0
61#define SCODE_200 0x1
62#define SCODE_400 0x2
63#define SCODE_800 0x3
64#define SCODE_1600 0x4
65#define SCODE_3200 0x5
66 27
67#define FW_CDEV_EVENT_BUS_RESET 0x00 28#define FW_CDEV_EVENT_BUS_RESET 0x00
68#define FW_CDEV_EVENT_RESPONSE 0x01 29#define FW_CDEV_EVENT_RESPONSE 0x01
@@ -265,4 +226,4 @@ struct fw_cdev_stop_iso {
265 __u32 handle; 226 __u32 handle;
266}; 227};
267 228
268#endif /* __fw_cdev_h */ 229#endif /* _LINUX_FIREWIRE_CDEV_H */