Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pms/freebsd/driver/ini/src/osapi.c
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | case tiIntrEventTypeTaskManagement: | ||||
{ | { | ||||
} | } | ||||
else if (tiINIIOAbort(&pCard->tiRoot, &ccbIO->tiIORequest) != tiSuccess) | else if (tiINIIOAbort(&pCard->tiRoot, &ccbIO->tiIORequest) != tiSuccess) | ||||
{ | { | ||||
AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: Local Abort failed\n"); | AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: Local Abort failed\n"); | ||||
/* TODO: call Soft reset here */ | /* TODO: call Soft reset here */ | ||||
} | } | ||||
} | } | ||||
} | |||||
else if (eventStatus == tiTMFailed) | else if (eventStatus == tiTMFailed) | ||||
{ | { | ||||
ccbIO = pccb->pccbIO; | ccbIO = pccb->pccbIO; | ||||
if (ccbIO->startTime == 0) /* IO has been completed. */ | if (ccbIO->startTime == 0) /* IO has been completed. */ | ||||
{ | { | ||||
AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: TM failed because IO has been completed! pTMccb %p flag %x \n", | AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: TM failed because IO has been completed! pTMccb %p flag %x \n", | ||||
pccb, pccb->flags); | pccb, pccb->flags); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: TM failed! pTMccb %p flag %x \n", | AGTIAPI_PRINTK("tiIntrEventTypeTaskManagement: TM failed! pTMccb %p flag %x \n", | ||||
pccb, pccb->flags); | pccb, pccb->flags); | ||||
/* TODO:*/ | /* TODO:*/ | ||||
/* if TM_ABORT_TASK, call TM_TARGET_RESET */ | /* if TM_ABORT_TASK, call TM_TARGET_RESET */ | ||||
/* if TM_TARGET_RESET, call Soft_Reset */ | /* if TM_TARGET_RESET, call Soft_Reset */ | ||||
} | } | ||||
} | } | ||||
/* Free TM_DEV_RESET ccb */ | /* Free TM_DEV_RESET ccb */ | ||||
agtiapi_FreeTMCCB(pCard, pccb); | agtiapi_FreeTMCCB(pCard, pccb); | ||||
} | |||||
} | } | ||||
break; | break; | ||||
case tiIntrEventTypeLocalAbort: | case tiIntrEventTypeLocalAbort: | ||||
AGTIAPI_PRINTK("tiIntrEventTypeLocalAbort!\n"); | AGTIAPI_PRINTK("tiIntrEventTypeLocalAbort!\n"); | ||||
pccb = (pccb_t)((tiIORequest_t *)parm)->osData; | pccb = (pccb_t)((tiIORequest_t *)parm)->osData; | ||||
pccb->flags |= AGTIAPI_CB_DONE; | pccb->flags |= AGTIAPI_CB_DONE; | ||||
if (eventStatus == tiAbortOK) | if (eventStatus == tiAbortOK) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines |