summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/firewire.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/firewire/firewire.h')
-rw-r--r--sys/dev/firewire/firewire.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/sys/dev/firewire/firewire.h b/sys/dev/firewire/firewire.h
index ca9cbac..0063f47 100644
--- a/sys/dev/firewire/firewire.h
+++ b/sys/dev/firewire/firewire.h
@@ -190,12 +190,6 @@ struct fw_pkt {
BIT16x2(src, dest_hi);
u_int32_t dest_lo;
BIT16x2(len, extcode);
-#define FW_LREQ_MSKSWAP 1
-#define FW_LREQ_CMPSWAP 2
-#define FW_LREQ_FTADD 3
-#define FW_LREQ_LTADD 4
-#define FW_LREQ_BDADD 5
-#define FW_LREQ_WRADD 6
u_int32_t payload[0];
} lreq;
struct {
@@ -215,6 +209,33 @@ struct fw_pkt {
} mode;
};
+/*
+ * Response code (rtcode)
+ */
+/* The node has successfully completed the command. */
+#define RESP_CMP 0
+/* A resource conflict was detected. The request may be retried. */
+#define RESP_CONFLICT_ERROR 4
+/* Hardware error, data is unavailable. */
+#define RESP_DATA_ERROR 5
+/* A field in the request packet header was set to an unsupported or incorrect
+ * value, or an invalid transaction was attempted (e.g., a write to a read-only
+ * address). */
+#define RESP_TYPE_ERROR 6
+/* The destination offset field in the request was set to an address not
+ * accessible in the destination node. */
+#define RESP_ADDRESS_ERROR 7
+
+/*
+ * Extended transaction code (extcode)
+ */
+#define EXTCODE_MASK_SWAP 1
+#define EXTCODE_CMP_SWAP 2
+#define EXTCODE_FETCH_ADD 3
+#define EXTCODE_LITTLE_ADD 4
+#define EXTCODE_BOUNDED_ADD 5
+#define EXTCODE_WRAP_ADD 6
+
struct fw_eui64 {
u_int32_t hi, lo;
};
OpenPOWER on IntegriCloud