Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/aacraid/aacraid_cam.c
Context not available. | |||||
cpi->version_num = 1; | cpi->version_num = 1; | ||||
cpi->target_sprt = 0; | cpi->target_sprt = 0; | ||||
cpi->hba_eng_cnt = 0; | cpi->hba_eng_cnt = 0; | ||||
cpi->max_target = camsc->inf->TargetsPerBus; | cpi->max_target = camsc->inf->TargetsPerBus - 1; | ||||
cpi->max_lun = 8; /* Per the controller spec */ | cpi->max_lun = 7; /* Per the controller spec */ | ||||
cpi->initiator_id = camsc->inf->InitiatorBusId; | cpi->initiator_id = camsc->inf->InitiatorBusId; | ||||
cpi->bus_id = camsc->inf->BusNumber; | cpi->bus_id = camsc->inf->BusNumber; | ||||
#if __FreeBSD_version >= 800000 | #if __FreeBSD_version >= 800000 | ||||
Context not available. | |||||
* Try to get a command that's been put off for lack of | * Try to get a command that's been put off for lack of | ||||
* resources | * resources | ||||
*/ | */ | ||||
if (sc->flags & AAC_FLAGS_SYNC_MODE) { | if ((sc->flags & AAC_FLAGS_SYNC_MODE) && sc->aac_sync_cm) | ||||
/* sync. transfer mode */ | break; | ||||
if (sc->aac_sync_cm) | cm = aac_dequeue_ready(sc); | ||||
break; | |||||
cm = aac_dequeue_ready(sc); | |||||
sc->aac_sync_cm = cm; | |||||
} else { | |||||
cm = aac_dequeue_ready(sc); | |||||
} | |||||
/* nothing to do? */ | /* nothing to do? */ | ||||
if (cm == NULL) | if (cm == NULL) | ||||
Context not available. |