Fix the incorrect parsing of the Risc2Host isr. For RIO_16,

fast posting command completion, and fast post CTIO completion,
the upper half of Risc2Host is a copy of mailbox #1- *not*
mailbox #0.

MFC after:	1 day
This commit is contained in:
mjacob 2002-08-17 17:21:54 +00:00
parent 2acca76e3d
commit 4b94fc7cec

View File

@ -885,13 +885,25 @@ isp_pci_rd_isr_2300(struct ispsoftc *isp, u_int16_t *isrp,
case ISPR2HST_MBX_OK: case ISPR2HST_MBX_OK:
case ISPR2HST_MBX_FAIL: case ISPR2HST_MBX_FAIL:
case ISPR2HST_ASYNC_EVENT: case ISPR2HST_ASYNC_EVENT:
case ISPR2HST_RIO_16:
case ISPR2HST_FPOST:
case ISPR2HST_FPOST_CTIO:
*isrp = r2hisr & 0xffff; *isrp = r2hisr & 0xffff;
*mbox0p = (r2hisr >> 16); *mbox0p = (r2hisr >> 16);
*semap = 1; *semap = 1;
return (1); return (1);
case ISPR2HST_RIO_16:
*isrp = r2hisr & 0xffff;
*mbox0p = ASYNC_RIO1;
*semap = 1;
return (1);
case ISPR2HST_FPOST:
*isrp = r2hisr & 0xffff;
*mbox0p = ASYNC_CMD_CMPLT;
*semap = 1;
return (1);
case ISPR2HST_FPOST_CTIO:
*isrp = r2hisr & 0xffff;
*mbox0p = ASYNC_CTIO_DONE;
*semap = 1;
return (1);
case ISPR2HST_RSPQ_UPDATE: case ISPR2HST_RSPQ_UPDATE:
*isrp = r2hisr & 0xffff; *isrp = r2hisr & 0xffff;
*mbox0p = 0; *mbox0p = 0;