aboutsummaryrefslogtreecommitdiffstats
path: root/host/simtrace_usb.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-12 11:21:24 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-12 11:21:24 +0200
commit29b1190ddc01c683487a501098ea73e16c5907c3 (patch)
tree9fefcf41ae458851056b2e75ef0ae7e078c4c857 /host/simtrace_usb.h
parentd22a14bc298f7cf94daa488edd3357f52581c54c (diff)
include a copy instead of the symlink0.1
Diffstat (limited to 'host/simtrace_usb.h')
-rw-r--r--[l---------]host/simtrace_usb.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/host/simtrace_usb.h b/host/simtrace_usb.h
index 4f8fb46..c020093 120000..100644
--- a/host/simtrace_usb.h
+++ b/host/simtrace_usb.h
@@ -1 +1,24 @@
-../../openpcd/firmware/include/simtrace_usb.h \ No newline at end of file
+#ifndef SIMTRACE_USB_H
+#define SIMTRACE_USB_H
+
+//#include <stdint.h>
+
+/* this is kept compatible with OpenPCD protocol */
+struct simtrace_hdr {
+ u_int8_t cmd;
+ u_int8_t flags;
+ u_int8_t res[2];
+ u_int8_t data[0];
+} __attribute__ ((packed));
+
+enum simtrace_usb_msgt {
+ SIMTRACE_MSGT_NULL,
+ SIMTRACE_MSGT_DATA,
+ SIMTRACE_MSGT_RESET, /* reset was asserted, no more data */
+};
+
+/* flags for MSGT_DATA */
+#define SIMTRACE_FLAG_ATR 0x01 /* ATR immediately after reset */
+#define SIMTRACE_FLAG_WTIME_EXP 0x04 /* work waiting time expired */
+
+#endif /* SIMTRACE_USB_H */