diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-14 21:40:05 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-14 21:40:05 +0200 |
commit | 87fc3a6b418fd8b395f11c2281393570091126b0 (patch) | |
tree | 4b25b8cd7b7ffa56c12eb446f886747f280c6403 | |
parent | e58d24f04f39cf73cec40a84b204e27edb12d2a2 (diff) |
misc: Copy the simtrace_usb.h file here. no symlink for debian
-rw-r--r--[l---------] | host/simtrace_usb.h | 25 |
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 */ |