User`s manual
Firmware Debug Logging
SBCSCSI/D1 5-9
5
Firmware Debug Log Map
The following section explains the fields within a Firmware trace entry. The
generic trace entry, as defined in the header file scsi_dbg.h, is:
struct trace_entry {
UINT eyepicker;
UINT eyecatcher;
UCHAR data[LARGE_AMOUNT];
};
All Firmware trace entries will contain an eyepicker entry of NCR that identifies
this as a Firmware trace entry (as opposed to a driver trace frame) and an
eyecatcher label that identifies the unique log point within the Firmware.
The trace data area of each trace entry is mapped according to the following
structure defined in incl/ncr710db.h:
/*
* NCR trace items.
*
* The size of this structure must NEVER get larger than the size of
* the trace_entry.data array[LARGE_AMOUNT] in scsi_dbg.h.
*/
struct ncr_debug {
UINT inst1; /* 1st 32 bits of next SIOP instruction */
UINT inst2; /* 2nd 32 bits of next SIOP instruction */
UINT inst3; /* 3rd 32 bits of next SIOP instruction */
NCR_SIOP siop; /* software model of the chip */
SIOP_CNS cns; /* copy of the current nexus structure */
SIOPCMD cmd; /* copy of the siop_struc */
};