diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/ndis/digi/pcimac/trc_pub.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/ntos/ndis/digi/pcimac/trc_pub.h')
-rw-r--r-- | private/ntos/ndis/digi/pcimac/trc_pub.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/private/ntos/ndis/digi/pcimac/trc_pub.h b/private/ntos/ndis/digi/pcimac/trc_pub.h new file mode 100644 index 000000000..67655fcf1 --- /dev/null +++ b/private/ntos/ndis/digi/pcimac/trc_pub.h @@ -0,0 +1,49 @@ +/* + * TRC_PUB.H - include file for all TRC modules + */ + +#ifndef _TRC_PUB_ +#define _TRC_PUB_ + +/* max values & constants */ +#define TRC_MAX_IDD 40 /* of number of idd's (lines) supported */ +#define TRC_MAX_DATA 256 /* max size of frame data buffered */ + +/* status of trace buffer as reported to user */ +typedef struct +{ + ULONG state; /* state of trace */ +#define TRC_ST_STOP 0 /* - is stopped */ +#define TRC_ST_RUN 1 /* - is running */ + + ULONG filter; /* active filter type */ +#define TRC_FT_NONE 0 /* - no filter, all frames buffered */ +#define TRC_FT_L2 1 /* - only l2 frames accepted */ +#define TRC_FT_L3 2 /* - only l3 frames accepted */ + + ULONG depth; /* depth of trace buffer */ + + + ULONG entries; /* # of entries in buffer now */ + ULONG seq_1st; /* sequence number of first frame in buffer */ + +} TRC_STATUS; + +/* descriptor for a trace entry */ +typedef struct +{ + ULONG seq; /* sequence number for frame */ + LARGE_INTEGER time_stamp; /* some sort of timing information */ + + ULONG attr; /* attribute word */ +#define TRC_AT_RX 0 /* - received frame */ +#define TRC_AT_TX 1 /* - transmit frame */ + + ULONG org_len; /* original frame length */ + ULONG len; /* length of buffered data */ + UCHAR data[TRC_MAX_DATA]; /* frame data */ + +} TRC_ENTRY; + +#endif /* _TRC_PUB_ */ + |