- 時間撮記:
- 2015-10-29 上午04:30:44 (9 年 以前)
- svn:sync-xref-src-repo-rev:
- 103777
- 位置:
- trunk/src/VBox/Devices/EFI/Firmware
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/EFI/Firmware
- 屬性 svn:mergeinfo 變動
/vendor/edk2/current 已合併: 103769-103776
- 屬性 svn:mergeinfo 變動
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Protocol/CpuIo2.h
r48674 r58466 1 1 /** @file 2 2 This files describes the CPU I/O 2 Protocol. 3 3 4 4 This protocol provides an I/O abstraction for a system processor. This protocol 5 5 is used by a PCI root bridge I/O driver to perform memory-mapped I/O and I/O transactions. 6 6 The I/O or memory primitives can be used by the consumer of the protocol to materialize 7 7 bus-specific configuration cycles, such as the transitional configuration address and data 8 ports for PCI. Only drivers that require direct access to the entire system should use this 9 protocol. 10 8 ports for PCI. Only drivers that require direct access to the entire system should use this 9 protocol. 10 11 11 Note: This is a boot-services only protocol and it may not be used by runtime drivers after 12 12 ExitBootServices(). It is different from the Framework CPU I/O Protocol, which is a runtime … … 23 23 24 24 @par Revision Reference: 25 This Protocol is defined in UEFI Platform Initialization Specification 1.2 25 This Protocol is defined in UEFI Platform Initialization Specification 1.2 26 26 Volume 5: Standards 27 27 … … 58 58 59 59 /** 60 Enables a driver to access registers in the PI CPU I/O space. 60 Enables a driver to access registers in the PI CPU I/O space. 61 61 62 The Io.Read() and Io.Write() functions enable a driver to access PCI controller 63 registers in the PI CPU I/O space. 62 The Io.Read() and Io.Write() functions enable a driver to access PCI controller 63 registers in the PI CPU I/O space. 64 64 65 The I/O operations are carried out exactly as requested. The caller is responsible 66 for satisfying any alignment and I/O width restrictions that a PI System on a 67 platform might require. For example on some platforms, width requests of 68 EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will 65 The I/O operations are carried out exactly as requested. The caller is responsible 66 for satisfying any alignment and I/O width restrictions that a PI System on a 67 platform might require. For example on some platforms, width requests of 68 EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will 69 69 be handled by the driver. 70 71 If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, 72 or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for 70 71 If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, 72 or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for 73 73 each of the Count operations that is performed. 74 75 If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, 76 EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is 77 incremented for each of the Count operations that is performed. The read or 74 75 If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, 76 EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is 77 incremented for each of the Count operations that is performed. The read or 78 78 write operation is performed Count times on the same Address. 79 80 If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, 81 EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is 82 incremented for each of the Count operations that is performed. The read or 79 80 If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, 81 EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is 82 incremented for each of the Count operations that is performed. The read or 83 83 write operation is performed Count times from the first element of Buffer. 84 84 85 85 @param[in] This A pointer to the EFI_CPU_IO2_PROTOCOL instance. 86 86 @param[in] Width Signifies the width of the I/O or Memory operation. 87 @param[in] Address The base address of the I/O operation. 88 @param[in] Count The number of I/O operations to perform. The number 87 @param[in] Address The base address of the I/O operation. 88 @param[in] Count The number of I/O operations to perform. The number 89 89 of bytes moved is Width size * Count, starting at Address. 90 90 @param[in, out] Buffer For read operations, the destination buffer to store the results. … … 95 95 @retval EFI_INVALID_PARAMETER Buffer is NULL. 96 96 @retval EFI_UNSUPPORTED The Buffer is not aligned for the given Width. 97 @retval EFI_UNSUPPORTED The address range specified by Address, Width, 97 @retval EFI_UNSUPPORTED The address range specified by Address, Width, 98 98 and Count is not valid for this PI system. 99 99
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器