taglinefilesource code
hosterr231drivers/scsi/aha1542.cstatic int makecode(unsigned hosterr, unsigned scsierr)
hosterr233drivers/scsi/aha1542.cswitch (hosterr) {
hosterr237drivers/scsi/aha1542.chosterr = 0;
hosterr242drivers/scsi/aha1542.chosterr = DID_TIME_OUT;
hosterr270drivers/scsi/aha1542.cDEB(printk("Aha1542: %x %x\n", hosterr, scsierr));
hosterr271drivers/scsi/aha1542.chosterr = DID_ERROR; /* Couldn't find any better */
hosterr278drivers/scsi/aha1542.chosterr = DID_RESET;
hosterr281drivers/scsi/aha1542.cprintk("makecode: unknown hoststatus %x\n", hosterr);
hosterr284drivers/scsi/aha1542.creturn scsierr|(hosterr << 16);
hosterr751drivers/scsi/wd7000.cint make_code(unsigned hosterr, unsigned scsierr)
hosterr754drivers/scsi/wd7000.cint in_error = hosterr;
hosterr757drivers/scsi/wd7000.cswitch ((hosterr>>8)&0xff){
hosterr759drivers/scsi/wd7000.chosterr = DID_ERROR;
hosterr762drivers/scsi/wd7000.chosterr = DID_OK;
hosterr765drivers/scsi/wd7000.chosterr = DID_OK;
hosterr768drivers/scsi/wd7000.chosterr = DID_TIME_OUT;
hosterr771drivers/scsi/wd7000.chosterr = DID_RESET;
hosterr774drivers/scsi/wd7000.chosterr = DID_BAD_TARGET;
hosterr778drivers/scsi/wd7000.chosterr = DID_BAD_INTR;
hosterr781drivers/scsi/wd7000.chosterr = DID_ABORT;
hosterr785drivers/scsi/wd7000.chosterr = DID_RESET;
hosterr788drivers/scsi/wd7000.chosterr = DID_ERROR;
hosterr792drivers/scsi/wd7000.cif (scsierr||hosterr)
hosterr794drivers/scsi/wd7000.cscsierr,in_error,hosterr);
hosterr796drivers/scsi/wd7000.creturn scsierr | (hosterr << 16);