/* * Handle an error datagram. * This can come from an unconfigured drive as well. */ void rrdgram(device_t usc, struct mscp *mp, struct mscp_softc *mi) { if (mscp_decodeerror(usc == NULL?"unconf disk" : device_xname(usc), mp, mi)) return; /* * SDI status information bytes 10 and 11 are the microprocessor * error code and front panel code respectively. These vary per * drive type and are printed purely for field service information. */ if (mp->mscp_format == M_FM_SDI) printf("\tsdi uproc error code 0x%x, front panel code 0x%x\n", mp->mscp_erd.erd_sdistat[10], mp->mscp_erd.erd_sdistat[11]); }
/* * Handle an error datagram. */ void mtdgram(device_t usc, struct mscp *mp, struct mscp_softc *mi) { if (mscp_decodeerror(usc == NULL?"unconf mt" : device_xname(usc), mp, mi)) return; }