Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/CpuIo2Dxe
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.c
r58466 r77662 2 2 Produces the CPU I/O 2 Protocol. 3 3 4 Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR> 4 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR> 5 Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> 6 5 7 This program and the accompanying materials 6 8 are licensed and made available under the terms and conditions of the BSD License … … 140 142 // Check to see if Address is aligned 141 143 // 142 if ((Address & ( UINT64)(mInStride[Width] - 1)) != 0) {144 if ((Address & ((UINT64)mInStride[Width] - 1)) != 0) { 143 145 return EFI_UNSUPPORTED; 144 146 } … … 411 413 OutStride = mOutStride[Width]; 412 414 OperationWidth = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); 415 416 // 417 // Fifo operations supported for (mInStride[Width] == 0) 418 // 419 if (InStride == 0) { 420 switch (OperationWidth) { 421 case EfiCpuIoWidthUint8: 422 IoReadFifo8 ((UINTN)Address, Count, Buffer); 423 return EFI_SUCCESS; 424 case EfiCpuIoWidthUint16: 425 IoReadFifo16 ((UINTN)Address, Count, Buffer); 426 return EFI_SUCCESS; 427 case EfiCpuIoWidthUint32: 428 IoReadFifo32 ((UINTN)Address, Count, Buffer); 429 return EFI_SUCCESS; 430 default: 431 // 432 // The CpuIoCheckParameter call above will ensure that this 433 // path is not taken. 434 // 435 ASSERT (FALSE); 436 break; 437 } 438 } 439 413 440 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { 414 441 if (OperationWidth == EfiCpuIoWidthUint8) { … … 493 520 OutStride = mOutStride[Width]; 494 521 OperationWidth = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); 522 523 // 524 // Fifo operations supported for (mInStride[Width] == 0) 525 // 526 if (InStride == 0) { 527 switch (OperationWidth) { 528 case EfiCpuIoWidthUint8: 529 IoWriteFifo8 ((UINTN)Address, Count, Buffer); 530 return EFI_SUCCESS; 531 case EfiCpuIoWidthUint16: 532 IoWriteFifo16 ((UINTN)Address, Count, Buffer); 533 return EFI_SUCCESS; 534 case EfiCpuIoWidthUint32: 535 IoWriteFifo32 ((UINTN)Address, Count, Buffer); 536 return EFI_SUCCESS; 537 default: 538 // 539 // The CpuIoCheckParameter call above will ensure that this 540 // path is not taken. 541 // 542 ASSERT (FALSE); 543 break; 544 } 545 } 546 495 547 for (Uint8Buffer = (UINT8 *)Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { 496 548 if (OperationWidth == EfiCpuIoWidthUint8) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
r58466 r77662 2 2 # Produces the CPU I/O 2 Protocol by using the services of the I/O Library. 3 3 # 4 # Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> 4 # Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR> 5 # Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR> 6 # 5 7 # This program and the accompanying materials 6 8 # are licensed and made available under the terms and conditions of the BSD License -
trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.uni
r58464 r77662 1 // /** @file1 // /** @file 2 2 // Produces the CPU I/O 2 Protocol by using the services of the I/O Library. 3 3 // -
trunk/src/VBox/Devices/EFI/FirmwareNew/UefiCpuPkg/CpuIo2Dxe/CpuIo2DxeExtra.uni
r58464 r77662 1 // /** @file1 // /** @file 2 2 // CpuIo2Dxe Localized Strings and Content 3 3 //
Note:
See TracChangeset
for help on using the changeset viewer.