Lines Matching defs:AtapiScsiPrivate

322   ATAPI_SCSI_PASS_THRU_DEV        *AtapiScsiPrivate;
336 AtapiScsiPrivate = ATAPI_SCSI_PASS_THRU_DEV_FROM_THIS (ScsiPassThru);
341 &AtapiScsiPrivate->ScsiPassThru,
343 &AtapiScsiPrivate->ExtScsiPassThru,
350 &AtapiScsiPrivate->ScsiPassThru,
366 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (ExtScsiPassThru);
370 &AtapiScsiPrivate->ExtScsiPassThru,
381 AtapiScsiPrivate->PciIo->Attributes (
382 AtapiScsiPrivate->PciIo,
384 AtapiScsiPrivate->OriginalPciAttributes,
395 gBS->FreePool (AtapiScsiPrivate);
423 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
426 AtapiScsiPrivate = AllocateZeroPool (sizeof (ATAPI_SCSI_PASS_THRU_DEV));
427 if (AtapiScsiPrivate == NULL) {
431 AtapiScsiPrivate->Signature = ATAPI_SCSI_PASS_THRU_DEV_SIGNATURE;
432 AtapiScsiPrivate->Handle = Controller;
437 AtapiScsiPrivate->IoPort = NULL;
438 AtapiScsiPrivate->PciIo = PciIo;
439 AtapiScsiPrivate->OriginalPciAttributes = OriginalPciAttributes;
449 InitAtapiIoPortRegisters(AtapiScsiPrivate, IdeRegsBaseAddr);
454 AtapiScsiPrivate->LatestTargetId = MAX_TARGET_ID;
455 AtapiScsiPrivate->LatestLun = 0;
457 Status = InstallScsiPassThruProtocols (&Controller, AtapiScsiPrivate);
501 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
504 AtapiScsiPrivate = ATAPI_SCSI_PASS_THRU_DEV_FROM_THIS (This);
537 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[0];
540 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[1];
549 Status = SubmitBlockingIoCommand (AtapiScsiPrivate, Target, Packet);
589 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
594 AtapiScsiPrivate = ATAPI_SCSI_PASS_THRU_DEV_FROM_THIS (This);
604 ((*Target != AtapiScsiPrivate->LatestTargetId) ||
605 (*Lun != AtapiScsiPrivate->LatestLun))) {
616 *Target = AtapiScsiPrivate->LatestTargetId + 1;
624 AtapiScsiPrivate->LatestTargetId = *Target;
625 AtapiScsiPrivate->LatestLun = *Lun;
800 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
804 AtapiScsiPrivate = ATAPI_SCSI_PASS_THRU_DEV_FROM_THIS (This);
815 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[Index];
827 AtapiScsiPrivate->PciIo,
828 AtapiScsiPrivate->IoPort->Alt.DeviceControl,
843 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Alt.DeviceControl, DeviceControlValue);
848 if (StatusWaitForBSYClear (AtapiScsiPrivate, 31000000) != EFI_TIMEOUT) {
893 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
897 AtapiScsiPrivate = ATAPI_SCSI_PASS_THRU_DEV_FROM_THIS (This);
915 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[0];
917 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[1];
926 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Head, DeviceSelect);
929 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Reg.Command, Command);
936 if (EFI_ERROR (StatusWaitForBSYClear (AtapiScsiPrivate, 31000000))) {
988 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
991 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (This);
1029 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[0];
1032 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[1];
1041 Status = SubmitExtBlockingIoCommand (AtapiScsiPrivate, TargetId, Packet);
1084 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
1089 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (This);
1114 ((TargetId != AtapiScsiPrivate->LatestTargetId) ||
1115 (*Lun != AtapiScsiPrivate->LatestLun))) {
1126 (*Target)[0] = (UINT8) (AtapiScsiPrivate->LatestTargetId + 1);
1134 AtapiScsiPrivate->LatestTargetId = (*Target)[0];
1135 AtapiScsiPrivate->LatestLun = *Lun;
1315 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
1318 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (This);
1329 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[Index];
1341 AtapiScsiPrivate->PciIo,
1342 AtapiScsiPrivate->IoPort->Alt.DeviceControl,
1357 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Alt.DeviceControl, DeviceControlValue);
1362 if (StatusWaitForBSYClear (AtapiScsiPrivate, 31000000) != EFI_TIMEOUT) {
1410 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
1412 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (This);
1431 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[0];
1433 AtapiScsiPrivate->IoPort = &AtapiScsiPrivate->AtapiIoPortRegisters[1];
1442 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Head, DeviceSelect);
1445 WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Reg.Command, Command);
1452 if (EFI_ERROR (StatusWaitForBSYClear (AtapiScsiPrivate, 31000000))) {
1500 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate;
1506 AtapiScsiPrivate = ATAPI_EXT_SCSI_PASS_THRU_DEV_FROM_THIS (This);
1529 if ((CompareMem(*Target, ScsiId, TARGET_MAX_BYTES) != 0) &&(TargetId != AtapiScsiPrivate->LatestTargetId)) {
1540 (*Target)[0] = (UINT8) (AtapiScsiPrivate->LatestTargetId + 1);
1546 AtapiScsiPrivate->LatestTargetId = (*Target)[0];
1547 AtapiScsiPrivate->LatestLun = 0;
1631 IN ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
1642 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
1660 RegisterPointer = &AtapiScsiPrivate->AtapiIoPortRegisters[IdeChannel];
1792 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
1804 AtapiScsiPrivate: Private data structure for the specified channel.
1835 AtapiScsiPrivate,
1865 AtapiScsiPrivate,
1878 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
1892 AtapiScsiPrivate - The pionter of ATAPI_SCSI_PASS_THRU_DEV
1922 Status = SubmitBlockingIoCommand (AtapiScsiPrivate, Target, &Packet);
2035 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2047 AtapiScsiPrivate: Private data structure for the specified channel.
2079 AtapiScsiPrivate,
2090 AtapiScsiPrivate,
2122 AtapiScsiPrivate,
2136 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2152 AtapiScsiPrivate: Private data structure for the specified channel.
2188 Status = StatusWaitForBSYClear (AtapiScsiPrivate, TimeoutInMicroSeconds);
2199 AtapiScsiPrivate->PciIo,
2200 AtapiScsiPrivate->IoPort->Head,
2208 Status = StatusDRQClear(AtapiScsiPrivate, TimeoutInMicroSeconds);
2222 AtapiScsiPrivate->PciIo,
2223 AtapiScsiPrivate->IoPort->Reg1.Feature,
2232 AtapiScsiPrivate->PciIo,
2233 AtapiScsiPrivate->IoPort->CylinderLsb,
2237 AtapiScsiPrivate->PciIo,
2238 AtapiScsiPrivate->IoPort->CylinderMsb,
2247 AtapiScsiPrivate->PciIo,
2248 AtapiScsiPrivate->IoPort->Alt.DeviceControl,
2257 AtapiScsiPrivate->PciIo,
2258 AtapiScsiPrivate->IoPort->Reg.Command,
2267 Status = StatusDRQReady (AtapiScsiPrivate, TimeoutInMicroSeconds);
2282 WritePortW (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Data, *CommandIndex);
2290 AtapiScsiPrivate,
2300 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2315 AtapiScsiPrivate: Private data structure for the specified channel.
2350 if (EFI_ERROR (StatusWaitForBSYClear (AtapiScsiPrivate, TimeoutInMicroSeconds))) {
2368 Status = StatusDRQReady (AtapiScsiPrivate, TimeoutInMicroSeconds);
2372 AtapiPassThruCheckErrorStatus (AtapiScsiPrivate);
2387 WordCount = ReadPortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->CylinderMsb) << 8;
2388 WordCount = WordCount | ReadPortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->CylinderLsb);
2399 *ptrBuffer = ReadPortW (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Data);
2402 WritePortW (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Data, *ptrBuffer);
2412 StatusDRQClear (AtapiScsiPrivate, TimeoutInMicroSeconds);
2417 Status = AtapiPassThruCheckErrorStatus (AtapiScsiPrivate);
2569 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2583 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
2605 AtapiScsiPrivate->PciIo,
2606 AtapiScsiPrivate->IoPort->Reg.Status
2621 AtapiScsiPrivate->PciIo,
2622 AtapiScsiPrivate->IoPort->Reg1.Error
2653 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2667 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
2689 AtapiScsiPrivate->PciIo,
2690 AtapiScsiPrivate->IoPort->Alt.AltStatus
2703 AtapiScsiPrivate->PciIo,
2704 AtapiScsiPrivate->IoPort->Reg1.Error
2735 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2749 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
2773 AtapiScsiPrivate->PciIo,
2774 AtapiScsiPrivate->IoPort->Reg.Status
2787 AtapiScsiPrivate->PciIo,
2788 AtapiScsiPrivate->IoPort->Reg1.Error
2819 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2834 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
2858 AtapiScsiPrivate->PciIo,
2859 AtapiScsiPrivate->IoPort->Alt.AltStatus
2871 AtapiScsiPrivate->PciIo,
2872 AtapiScsiPrivate->IoPort->Reg1.Error
2903 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2917 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
2938 AtapiScsiPrivate->PciIo,
2939 AtapiScsiPrivate->IoPort->Reg.Status
2969 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
2983 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
3004 AtapiScsiPrivate->PciIo,
3005 AtapiScsiPrivate->IoPort->Alt.AltStatus
3034 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
3049 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
3070 AtapiScsiPrivate->PciIo,
3071 AtapiScsiPrivate->IoPort->Reg.Status
3083 AtapiScsiPrivate->PciIo,
3084 AtapiScsiPrivate->IoPort->Reg1.Error
3114 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate,
3129 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
3150 AtapiScsiPrivate->PciIo,
3151 AtapiScsiPrivate->IoPort->Alt.AltStatus
3163 AtapiScsiPrivate->PciIo,
3164 AtapiScsiPrivate->IoPort->Reg1.Error
3194 ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate
3204 AtapiScsiPrivate - The pointer of ATAPI_SCSI_PASS_THRU_DEV
3216 AtapiScsiPrivate->PciIo,
3217 AtapiScsiPrivate->IoPort->Reg.Status
3239 ErrorRegister = ReadPortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Reg1.Error);
3308 @param AtapiScsiPrivate A pointer to the protocol private
3318 IN ATAPI_SCSI_PASS_THRU_DEV *AtapiScsiPrivate
3325 ScsiPassThru = &AtapiScsiPrivate->ScsiPassThru;
3326 ExtScsiPassThru = &AtapiScsiPrivate->ExtScsiPassThru;