|
|
| version 1.4, 2003/11/30 20:14:18 | version 1.5, 2004/02/18 04:08:49 |
|---|---|
| Line 240 atapi_action(struct cam_sim *sim, union | Line 240 atapi_action(struct cam_sim *sim, union |
| cpi->version_num = 1; | cpi->version_num = 1; |
| cpi->hba_inquiry = 0; | cpi->hba_inquiry = 0; |
| cpi->target_sprt = 0; | cpi->target_sprt = 0; |
| #if !defined(NO_ATANG) | |
| cpi->hba_misc = PIM_NO_6_BYTE; | |
| #else | |
| cpi->hba_misc = 0; | cpi->hba_misc = 0; |
| #endif | |
| cpi->hba_eng_cnt = 0; | cpi->hba_eng_cnt = 0; |
| bzero(cpi->vuhba_flags, sizeof(cpi->vuhba_flags)); | bzero(cpi->vuhba_flags, sizeof(cpi->vuhba_flags)); |
| cpi->max_target = 1; | cpi->max_target = 1; |
| Line 253 atapi_action(struct cam_sim *sim, union | Line 257 atapi_action(struct cam_sim *sim, union |
| strncpy(cpi->dev_name, cam_sim_name(sim), sizeof cpi->dev_name); | strncpy(cpi->dev_name, cam_sim_name(sim), sizeof cpi->dev_name); |
| cpi->unit_number = cam_sim_unit(sim); | cpi->unit_number = cam_sim_unit(sim); |
| cpi->bus_id = cam_sim_bus(sim); | cpi->bus_id = cam_sim_bus(sim); |
| if (softc->ata_ch && ccb_h->target_id >= 0) { | cpi->base_transfer_speed = 3300; |
| if (softc->ata_ch && ccb_h->target_id != CAM_TARGET_WILDCARD) { | |
| switch (softc->ata_ch->device[ccb_h->target_id].mode) { | switch (softc->ata_ch->device[ccb_h->target_id].mode) { |
| case ATA_PIO1: | case ATA_PIO1: |
| cpi->base_transfer_speed = 5200; | cpi->base_transfer_speed = 5200; |
| Line 281 atapi_action(struct cam_sim *sim, union | Line 286 atapi_action(struct cam_sim *sim, union |
| case ATA_UDMA6: | case ATA_UDMA6: |
| cpi->base_transfer_speed = 133000; | cpi->base_transfer_speed = 133000; |
| break; | break; |
| default: cpi->base_transfer_speed = 3300; | default: |
| break; | |
| } | } |
| } | } |
| ccb->ccb_h.status = CAM_REQ_CMP; | ccb->ccb_h.status = CAM_REQ_CMP; |
| Line 428 atapi_action(struct cam_sim *sim, union | Line 434 atapi_action(struct cam_sim *sim, union |
| } | } |
| break; | break; |
| } | } |
| #if defined(NO_ATANG) /* EXITED IN ORIGINAL, DELETED IN ATANG */ | |
| case MODE_SELECT_6: | case MODE_SELECT_6: |
| /* FALLTHROUGH */ | /* FALLTHROUGH */ |
| Line 457 atapi_action(struct cam_sim *sim, union | Line 464 atapi_action(struct cam_sim *sim, union |
| hcb->cmd[4] = 0; | hcb->cmd[4] = 0; |
| hcb->cmd[5] = 0; | hcb->cmd[5] = 0; |
| break; | break; |
| #endif | |
| case READ_6: | case READ_6: |
| /* FALLTHROUGH */ | /* FALLTHROUGH */ |