Functions | |
UINT8 EFIAPI | IoOr8 (IN UINTN Port, IN UINT8 OrData) |
UINT8 EFIAPI | IoAnd8 (IN UINTN Port, IN UINT8 AndData) |
UINT8 EFIAPI | IoAndThenOr8 (IN UINTN Port, IN UINT8 AndData, IN UINT8 OrData) |
UINT8 EFIAPI | IoBitFieldRead8 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit) |
UINT8 EFIAPI | IoBitFieldWrite8 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value) |
UINT8 EFIAPI | IoBitFieldOr8 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData) |
UINT8 EFIAPI | IoBitFieldAnd8 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData) |
UINT8 EFIAPI | IoBitFieldAndThenOr8 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData) |
UINT16 EFIAPI | IoOr16 (IN UINTN Port, IN UINT16 OrData) |
UINT16 EFIAPI | IoAnd16 (IN UINTN Port, IN UINT16 AndData) |
UINT16 EFIAPI | IoAndThenOr16 (IN UINTN Port, IN UINT16 AndData, IN UINT16 OrData) |
UINT16 EFIAPI | IoBitFieldRead16 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit) |
UINT16 EFIAPI | IoBitFieldWrite16 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value) |
UINT16 EFIAPI | IoBitFieldOr16 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData) |
UINT16 EFIAPI | IoBitFieldAnd16 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData) |
UINT16 EFIAPI | IoBitFieldAndThenOr16 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData) |
UINT32 EFIAPI | IoOr32 (IN UINTN Port, IN UINT32 OrData) |
UINT32 EFIAPI | IoAnd32 (IN UINTN Port, IN UINT32 AndData) |
UINT32 EFIAPI | IoAndThenOr32 (IN UINTN Port, IN UINT32 AndData, IN UINT32 OrData) |
UINT32 EFIAPI | IoBitFieldRead32 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit) |
UINT32 EFIAPI | IoBitFieldWrite32 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value) |
UINT32 EFIAPI | IoBitFieldOr32 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData) |
UINT32 EFIAPI | IoBitFieldAnd32 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData) |
UINT32 EFIAPI | IoBitFieldAndThenOr32 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData) |
UINT64 EFIAPI | IoOr64 (IN UINTN Port, IN UINT64 OrData) |
UINT64 EFIAPI | IoAnd64 (IN UINTN Port, IN UINT64 AndData) |
UINT64 EFIAPI | IoAndThenOr64 (IN UINTN Port, IN UINT64 AndData, IN UINT64 OrData) |
UINT64 EFIAPI | IoBitFieldRead64 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit) |
UINT64 EFIAPI | IoBitFieldWrite64 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 Value) |
UINT64 EFIAPI | IoBitFieldOr64 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 OrData) |
UINT64 EFIAPI | IoBitFieldAnd64 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData) |
UINT64 EFIAPI | IoBitFieldAndThenOr64 (IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData, IN UINT64 OrData) |
UINT8 EFIAPI | MmioOr8 (IN UINTN Address, IN UINT8 OrData) |
UINT8 EFIAPI | MmioAnd8 (IN UINTN Address, IN UINT8 AndData) |
UINT8 EFIAPI | MmioAndThenOr8 (IN UINTN Address, IN UINT8 AndData, IN UINT8 OrData) |
UINT8 EFIAPI | MmioBitFieldRead8 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit) |
UINT8 EFIAPI | MmioBitFieldWrite8 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 Value) |
UINT8 EFIAPI | MmioBitFieldOr8 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 OrData) |
UINT8 EFIAPI | MmioBitFieldAnd8 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData) |
UINT8 EFIAPI | MmioBitFieldAndThenOr8 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT8 AndData, IN UINT8 OrData) |
UINT16 EFIAPI | MmioOr16 (IN UINTN Address, IN UINT16 OrData) |
UINT16 EFIAPI | MmioAnd16 (IN UINTN Address, IN UINT16 AndData) |
UINT16 EFIAPI | MmioAndThenOr16 (IN UINTN Address, IN UINT16 AndData, IN UINT16 OrData) |
UINT16 EFIAPI | MmioBitFieldRead16 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit) |
UINT16 EFIAPI | MmioBitFieldWrite16 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value) |
UINT16 EFIAPI | MmioBitFieldOr16 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 OrData) |
UINT16 EFIAPI | MmioBitFieldAnd16 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData) |
UINT16 EFIAPI | MmioBitFieldAndThenOr16 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 AndData, IN UINT16 OrData) |
UINT32 EFIAPI | MmioOr32 (IN UINTN Address, IN UINT32 OrData) |
UINT32 EFIAPI | MmioAnd32 (IN UINTN Address, IN UINT32 AndData) |
UINT32 EFIAPI | MmioAndThenOr32 (IN UINTN Address, IN UINT32 AndData, IN UINT32 OrData) |
UINT32 EFIAPI | MmioBitFieldRead32 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit) |
UINT32 EFIAPI | MmioBitFieldWrite32 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 Value) |
UINT32 EFIAPI | MmioBitFieldOr32 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 OrData) |
UINT32 EFIAPI | MmioBitFieldAnd32 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData) |
UINT32 EFIAPI | MmioBitFieldAndThenOr32 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT32 AndData, IN UINT32 OrData) |
UINT64 EFIAPI | MmioOr64 (IN UINTN Address, IN UINT64 OrData) |
UINT64 EFIAPI | MmioAnd64 (IN UINTN Address, IN UINT64 AndData) |
UINT64 EFIAPI | MmioAndThenOr64 (IN UINTN Address, IN UINT64 AndData, IN UINT64 OrData) |
UINT64 EFIAPI | MmioBitFieldRead64 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit) |
UINT64 EFIAPI | MmioBitFieldWrite64 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 Value) |
UINT64 EFIAPI | MmioBitFieldOr64 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 OrData) |
UINT64 EFIAPI | MmioBitFieldAnd64 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData) |
UINT64 EFIAPI | MmioBitFieldAndThenOr64 (IN UINTN Address, IN UINTN StartBit, IN UINTN EndBit, IN UINT64 AndData, IN UINT64 OrData) |
All assertions for bit field operations are handled bit field functions in the Base Library.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
The following IoLib instances share the same version of this file:
BaseIoLibIntrinsic DxeIoLibCpuIo PeiIoLibCpuIo SmmIoLibCpuIo
Reads a 16-bit I/O port, performs a bitwise AND, and writes the result back to the 16-bit I/O port.
Reads the 16-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 16-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. |
References IoRead16(), and IoWrite16().
Referenced by PciCf8And16(), and S3IoAnd16().
Reads a 32-bit I/O port, performs a bitwise AND, and writes the result back to the 32-bit I/O port.
Reads the 32-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 32-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. |
References IoRead32(), and IoWrite32().
Referenced by PciCf8And32(), and S3IoAnd32().
Reads a 64-bit I/O port, performs a bitwise AND, and writes the result back to the 64-bit I/O port.
Reads the 64-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 64-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. |
References IoRead64(), and IoWrite64().
Referenced by S3IoAnd64().
Reads an 8-bit I/O port, performs a bitwise AND, and writes the result back to the 8-bit I/O port.
Reads the 8-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 8-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. |
References IoRead8(), and IoWrite8().
Referenced by PciCf8And8(), and S3IoAnd8().
Reads a 16-bit I/O port, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 16-bit I/O port.
Reads the 16-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 16-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References IoRead16(), and IoWrite16().
Referenced by PciCf8AndThenOr16(), and S3IoAndThenOr16().
Reads a 32-bit I/O port, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 32-bit I/O port.
Reads the 32-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 32-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References IoRead32(), and IoWrite32().
Referenced by PciCf8AndThenOr32(), and S3IoAndThenOr32().
Reads a 64-bit I/O port, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 64-bit I/O port.
Reads the 64-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 64-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References IoRead64(), and IoWrite64().
Referenced by S3IoAndThenOr64().
Reads an 8-bit I/O port, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 8-bit I/O port.
Reads the 8-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 8-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References IoRead8(), and IoWrite8().
Referenced by PciCf8AndThenOr8(), and S3IoAndThenOr8().
UINT16 EFIAPI IoBitFieldAnd16 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | AndData | |||
) |
Reads a bit field in a 16-bit port, performs a bitwise AND, and writes the result back to the bit field in the 16-bit port.
Reads the 16-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in AndData are stripped.
If 16-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
AndData | The value to AND with the read value from the I/O port. |
References BitFieldAnd16(), IoRead16(), and IoWrite16().
Referenced by PciCf8BitFieldAnd16(), and S3IoBitFieldAnd16().
UINT32 EFIAPI IoBitFieldAnd32 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | AndData | |||
) |
Reads a bit field in a 32-bit port, performs a bitwise AND, and writes the result back to the bit field in the 32-bit port.
Reads the 32-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in AndData are stripped.
If 32-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
AndData | The value to AND with the read value from the I/O port. |
References BitFieldAnd32(), IoRead32(), and IoWrite32().
Referenced by PciCf8BitFieldAnd32(), and S3IoBitFieldAnd32().
UINT64 EFIAPI IoBitFieldAnd64 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | AndData | |||
) |
Reads a bit field in a 64-bit port, performs a bitwise AND, and writes the result back to the bit field in the 64-bit port.
Reads the 64-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in AndData are stripped.
If 64-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
AndData | The value to AND with the read value from the I/O port. |
References BitFieldAnd64(), IoRead64(), and IoWrite64().
Referenced by S3IoBitFieldAnd64().
Reads a bit field in an 8-bit port, performs a bitwise AND, and writes the result back to the bit field in the 8-bit port.
Reads the 8-bit I/O port specified by Port, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in AndData are stripped.
If 8-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
AndData | The value to AND with the read value from the I/O port. |
References BitFieldAnd8(), IoRead8(), and IoWrite8().
Referenced by PciCf8BitFieldAnd8(), and S3IoBitFieldAnd8().
UINT16 EFIAPI IoBitFieldAndThenOr16 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | AndData, | |||
IN UINT16 | OrData | |||
) |
Reads a bit field in a 16-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 16-bit port.
Reads the 16-bit I/O port specified by Port, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 16-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr16(), IoRead16(), and IoWrite16().
Referenced by PciCf8BitFieldAndThenOr16(), and S3IoBitFieldAndThenOr16().
UINT32 EFIAPI IoBitFieldAndThenOr32 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | AndData, | |||
IN UINT32 | OrData | |||
) |
Reads a bit field in a 32-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 32-bit port.
Reads the 32-bit I/O port specified by Port, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 32-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr32(), IoRead32(), and IoWrite32().
Referenced by PciCf8BitFieldAndThenOr32(), and S3IoBitFieldAndThenOr32().
UINT64 EFIAPI IoBitFieldAndThenOr64 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | AndData, | |||
IN UINT64 | OrData | |||
) |
Reads a bit field in a 64-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 64-bit port.
Reads the 64-bit I/O port specified by Port, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 64-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr64(), IoRead64(), and IoWrite64().
Referenced by S3IoBitFieldAndThenOr64().
UINT8 EFIAPI IoBitFieldAndThenOr8 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT8 | AndData, | |||
IN UINT8 | OrData | |||
) |
Reads a bit field in an 8-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 8-bit port.
Reads the 8-bit I/O port specified by Port, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 8-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
AndData | The value to AND with the read value from the I/O port. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr8(), IoRead8(), and IoWrite8().
Referenced by PciCf8BitFieldAndThenOr8(), and S3IoBitFieldAndThenOr8().
UINT16 EFIAPI IoBitFieldOr16 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | OrData | |||
) |
Reads a bit field in a 16-bit port, performs a bitwise OR, and writes the result back to the bit field in the 16-bit port.
Reads the 16-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in OrData are stripped.
If 16-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
OrData | The value to OR with the read value from the I/O port. |
References BitFieldOr16(), IoRead16(), and IoWrite16().
Referenced by PciCf8BitFieldOr16(), and S3IoBitFieldOr16().
UINT32 EFIAPI IoBitFieldOr32 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | OrData | |||
) |
Reads a bit field in a 32-bit port, performs a bitwise OR, and writes the result back to the bit field in the 32-bit port.
Reads the 32-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in OrData are stripped.
If 32-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
OrData | The value to OR with the read value from the I/O port. |
References BitFieldOr32(), IoRead32(), and IoWrite32().
Referenced by PciCf8BitFieldOr32(), and S3IoBitFieldOr32().
UINT64 EFIAPI IoBitFieldOr64 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | OrData | |||
) |
Reads a bit field in a 64-bit port, performs a bitwise OR, and writes the result back to the bit field in the 64-bit port.
Reads the 64-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in OrData are stripped.
If 64-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
OrData | The value to OR with the read value from the I/O port. |
References BitFieldOr64(), IoRead64(), and IoWrite64().
Referenced by S3IoBitFieldOr64().
Reads a bit field in an 8-bit port, performs a bitwise OR, and writes the result back to the bit field in the 8-bit port.
Reads the 8-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized. Extra left bits in OrData are stripped.
If 8-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
OrData | The value to OR with the read value from the I/O port. |
References BitFieldOr8(), IoRead8(), and IoWrite8().
Referenced by PciCf8BitFieldOr8(), and S3IoBitFieldOr8().
Reads a bit field of an I/O register.
Reads the bit field in a 16-bit I/O register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 16-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Port | The I/O port to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. |
References BitFieldRead16(), and IoRead16().
Referenced by PciCf8BitFieldRead16(), and S3IoBitFieldRead16().
Reads a bit field of an I/O register.
Reads the bit field in a 32-bit I/O register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 32-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Port | The I/O port to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. |
References BitFieldRead32(), and IoRead32().
Referenced by PciCf8BitFieldRead32(), and S3IoBitFieldRead32().
Reads a bit field of an I/O register.
Reads the bit field in a 64-bit I/O register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 64-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Port | The I/O port to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. |
References BitFieldRead64(), and IoRead64().
Referenced by S3IoBitFieldRead64().
Reads a bit field of an I/O register.
Reads the bit field in an 8-bit I/O register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 8-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Port | The I/O port to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. |
References BitFieldRead8(), and IoRead8().
Referenced by PciCf8BitFieldRead8(), and S3IoBitFieldRead8().
UINT16 EFIAPI IoBitFieldWrite16 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | Value | |||
) |
Writes a bit field to an I/O register.
Writes Value to the bit field of the I/O register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination I/O register are preserved. The value written to the I/O port is returned. Extra left bits in Value are stripped.
If 16-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
Value | The new value of the bit field. |
References BitFieldWrite16(), IoRead16(), and IoWrite16().
Referenced by PciCf8BitFieldWrite16(), and S3IoBitFieldWrite16().
UINT32 EFIAPI IoBitFieldWrite32 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | Value | |||
) |
Writes a bit field to an I/O register.
Writes Value to the bit field of the I/O register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination I/O register are preserved. The value written to the I/O port is returned. Extra left bits in Value are stripped.
If 32-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
Value | The new value of the bit field. |
References BitFieldWrite32(), IoRead32(), and IoWrite32().
Referenced by PciCf8BitFieldWrite32(), and S3IoBitFieldWrite32().
UINT64 EFIAPI IoBitFieldWrite64 | ( | IN UINTN | Port, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | Value | |||
) |
Writes a bit field to an I/O register.
Writes Value to the bit field of the I/O register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination I/O register are preserved. The value written to the I/O port is returned. Extra left bits in Value are stripped.
If 64-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
Value | The new value of the bit field. |
References BitFieldWrite64(), IoRead64(), and IoWrite64().
Referenced by S3IoBitFieldWrite64().
Writes a bit field to an I/O register.
Writes Value to the bit field of the I/O register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination I/O register are preserved. The value written to the I/O port is returned. Extra left bits in Value are stripped.
If 8-bit I/O port operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Port | The I/O port to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
Value | The new value of the bit field. |
References BitFieldWrite8(), IoRead8(), and IoWrite8().
Referenced by PciCf8BitFieldWrite8(), and S3IoBitFieldWrite8().
Reads a 16-bit I/O port, performs a bitwise OR, and writes the result back to the 16-bit I/O port.
Reads the 16-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 16-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 16-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
OrData | The value to OR with the read value from the I/O port. |
References IoRead16(), and IoWrite16().
Referenced by PciCf8Or16(), and S3IoOr16().
Reads a 32-bit I/O port, performs a bitwise OR, and writes the result back to the 32-bit I/O port.
Reads the 32-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 32-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 32-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
OrData | The value to OR with the read value from the I/O port. |
References IoRead32(), and IoWrite32().
Referenced by PciCf8Or32(), and S3IoOr32().
Reads a 64-bit I/O port, performs a bitwise OR, and writes the result back to the 64-bit I/O port.
Reads the 64-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 64-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 64-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
OrData | The value to OR with the read value from the I/O port. |
References IoRead64(), and IoWrite64().
Referenced by S3IoOr64().
Reads an 8-bit I/O port, performs a bitwise OR, and writes the result back to the 8-bit I/O port.
Reads the 8-bit I/O port specified by Port, performs a bitwise OR between the read result and the value specified by OrData, and writes the result to the 8-bit I/O port specified by Port. The value written to the I/O port is returned. This function must guarantee that all I/O read and write operations are serialized.
If 8-bit I/O port operations are not supported, then ASSERT().
Port | The I/O port to write. | |
OrData | The value to OR with the read value from the I/O port. |
References IoRead8(), and IoWrite8().
Referenced by PciCf8Or8(), and S3IoOr8().
Reads a 16-bit MMIO register, performs a bitwise AND, and writes the result back to the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 16-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. |
References MmioRead16(), and MmioWrite16().
Referenced by PciExpressAnd16(), and S3MmioAnd16().
Reads a 32-bit MMIO register, performs a bitwise AND, and writes the result back to the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 32-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. |
References MmioRead32(), and MmioWrite32().
Referenced by PciExpressAnd32(), and S3MmioAnd32().
Reads a 64-bit MMIO register, performs a bitwise AND, and writes the result back to the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 64-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. |
References MmioRead64(), and MmioWrite64().
Referenced by S3MmioAnd64().
Reads an 8-bit MMIO register, performs a bitwise AND, and writes the result back to the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 8-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. |
References MmioRead8(), and MmioWrite8().
Referenced by PciExpressAnd8(), and S3MmioAnd8().
Reads a 16-bit MMIO register, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 16-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References MmioRead16(), and MmioWrite16().
Referenced by PciExpressAndThenOr16(), and S3MmioAndThenOr16().
Reads a 32-bit MMIO register, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 32-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References MmioRead32(), and MmioWrite32().
Referenced by PciExpressAndThenOr32(), and S3MmioAndThenOr32().
Reads a 64-bit MMIO register, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 64-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References MmioRead64(), and MmioWrite64().
Referenced by S3MmioAndThenOr64().
Reads an 8-bit MMIO register, performs a bitwise AND followed by a bitwise inclusive OR, and writes the result back to the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, performs a bitwise OR between the result of the AND operation and the value specified by OrData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 8-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
AndData | The value to AND with the read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References MmioRead8(), and MmioWrite8().
Referenced by PciExpressAndThenOr8(), and S3MmioAndThenOr8().
UINT16 EFIAPI MmioBitFieldAnd16 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | AndData | |||
) |
Reads a bit field in a 16-bit MMIO register, performs a bitwise AND, and writes the result back to the bit field in the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in AndData are stripped.
If 16-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
AndData | The value to AND with read value from the MMIO register. |
References BitFieldAnd16(), MmioRead16(), and MmioWrite16().
Referenced by PciExpressBitFieldAnd16(), and S3MmioBitFieldAnd16().
UINT32 EFIAPI MmioBitFieldAnd32 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | AndData | |||
) |
Reads a bit field in a 32-bit MMIO register, performs a bitwise AND, and writes the result back to the bit field in the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in AndData are stripped.
If 32-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
AndData | The value to AND with read value from the MMIO register. |
References BitFieldAnd32(), MmioRead32(), and MmioWrite32().
Referenced by PciExpressBitFieldAnd32(), and S3MmioBitFieldAnd32().
UINT64 EFIAPI MmioBitFieldAnd64 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | AndData | |||
) |
Reads a bit field in a 64-bit MMIO register, performs a bitwise AND, and writes the result back to the bit field in the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in AndData are stripped.
If 64-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
AndData | The value to AND with read value from the MMIO register. |
References BitFieldAnd64(), MmioRead64(), and MmioWrite64().
Referenced by S3MmioBitFieldAnd64().
UINT8 EFIAPI MmioBitFieldAnd8 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT8 | AndData | |||
) |
Reads a bit field in an 8-bit MMIO register, performs a bitwise AND, and writes the result back to the bit field in the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise AND between the read result and the value specified by AndData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in AndData are stripped.
If 8-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
AndData | The value to AND with read value from the MMIO register. |
References BitFieldAnd8(), MmioRead8(), and MmioWrite8().
Referenced by PciExpressBitFieldAnd8(), and S3MmioBitFieldAnd8().
UINT16 EFIAPI MmioBitFieldAndThenOr16 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | AndData, | |||
IN UINT16 | OrData | |||
) |
Reads a bit field in a 16-bit MMIO register, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 16-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
AndData | The value to AND with read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr16(), MmioRead16(), and MmioWrite16().
Referenced by PciExpressBitFieldAndThenOr16(), and S3MmioBitFieldAndThenOr16().
UINT32 EFIAPI MmioBitFieldAndThenOr32 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | AndData, | |||
IN UINT32 | OrData | |||
) |
Reads a bit field in a 32-bit MMIO register, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 32-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
AndData | The value to AND with read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr32(), MmioRead32(), and MmioWrite32().
Referenced by PciExpressBitFieldAndThenOr32(), and S3MmioBitFieldAndThenOr32().
UINT64 EFIAPI MmioBitFieldAndThenOr64 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | AndData, | |||
IN UINT64 | OrData | |||
) |
Reads a bit field in a 64-bit MMIO register, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 64-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
AndData | The value to AND with read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr64(), MmioRead64(), and MmioWrite64().
Referenced by S3MmioBitFieldAndThenOr64().
UINT8 EFIAPI MmioBitFieldAndThenOr8 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT8 | AndData, | |||
IN UINT8 | OrData | |||
) |
Reads a bit field in an 8-bit MMIO register, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise AND followed by a bitwise OR between the read result and the value specified by AndData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in both AndData and OrData are stripped.
If 8-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
AndData | The value to AND with read value from the MMIO register. | |
OrData | The value to OR with the result of the AND operation. |
References BitFieldAndThenOr8(), MmioRead8(), and MmioWrite8().
Referenced by PciExpressBitFieldAndThenOr8(), and S3MmioBitFieldAndThenOr8().
UINT16 EFIAPI MmioBitFieldOr16 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | OrData | |||
) |
Reads a bit field in a 16-bit MMIO register, performs a bitwise OR, and writes the result back to the bit field in the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in OrData are stripped.
If 16-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
OrData | The value to OR with read value from the MMIO register. |
References BitFieldOr16(), MmioRead16(), and MmioWrite16().
Referenced by PciExpressBitFieldOr16(), and S3MmioBitFieldOr16().
UINT32 EFIAPI MmioBitFieldOr32 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | OrData | |||
) |
Reads a bit field in a 32-bit MMIO register, performs a bitwise OR, and writes the result back to the bit field in the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in OrData are stripped.
If 32-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
OrData | The value to OR with read value from the MMIO register. |
References BitFieldOr32(), MmioRead32(), and MmioWrite32().
Referenced by PciExpressBitFieldOr32(), and S3MmioBitFieldOr32().
UINT64 EFIAPI MmioBitFieldOr64 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | OrData | |||
) |
Reads a bit field in a 64-bit MMIO register, performs a bitwise OR, and writes the result back to the bit field in the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in OrData are stripped.
If 64-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
OrData | The value to OR with read value from the MMIO register. |
References BitFieldOr64(), MmioRead64(), and MmioWrite64().
Referenced by S3MmioBitFieldOr64().
UINT8 EFIAPI MmioBitFieldOr8 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT8 | OrData | |||
) |
Reads a bit field in an 8-bit MMIO register, performs a bitwise OR, and writes the result back to the bit field in the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized. Extra left bits in OrData are stripped.
If 8-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
OrData | The value to OR with read value from the MMIO register. |
References BitFieldOr8(), MmioRead8(), and MmioWrite8().
Referenced by PciExpressBitFieldOr8(), and S3MmioBitFieldOr8().
Reads a bit field of a MMIO register.
Reads the bit field in a 16-bit MMIO register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 16-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Address | The MMIO register to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. |
References BitFieldRead16(), and MmioRead16().
Referenced by PciExpressBitFieldRead16(), and S3MmioBitFieldRead16().
Reads a bit field of a MMIO register.
Reads the bit field in a 32-bit MMIO register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 32-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Address | The MMIO register to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. |
References BitFieldRead32(), and MmioRead32().
Referenced by InternalX86GetTimerFrequency(), PciExpressBitFieldRead32(), and S3MmioBitFieldRead32().
Reads a bit field of a MMIO register.
Reads the bit field in a 64-bit MMIO register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 64-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Address | The MMIO register to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. |
References BitFieldRead64(), and MmioRead64().
Referenced by S3MmioBitFieldRead64().
Reads a bit field of a MMIO register.
Reads the bit field in an 8-bit MMIO register. The bit field is specified by the StartBit and the EndBit. The value of the bit field is returned.
If 8-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT().
Address | The MMIO register to read. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. |
References BitFieldRead8(), and MmioRead8().
Referenced by PciExpressBitFieldRead8(), and S3MmioBitFieldRead8().
UINT16 EFIAPI MmioBitFieldWrite16 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT16 | Value | |||
) |
Writes a bit field to a MMIO register.
Writes Value to the bit field of the MMIO register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination MMIO register are preserved. The new value of the 16-bit register is returned.
If 16-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 15, then ASSERT(). If EndBit is greater than 15, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..15. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..15. | |
Value | The new value of the bit field. |
References BitFieldWrite16(), MmioRead16(), and MmioWrite16().
Referenced by PciExpressBitFieldWrite16(), and S3MmioBitFieldWrite16().
UINT32 EFIAPI MmioBitFieldWrite32 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT32 | Value | |||
) |
Writes a bit field to a MMIO register.
Writes Value to the bit field of the MMIO register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination MMIO register are preserved. The new value of the 32-bit register is returned.
If 32-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 31, then ASSERT(). If EndBit is greater than 31, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..31. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..31. | |
Value | The new value of the bit field. |
References BitFieldWrite32(), MmioRead32(), and MmioWrite32().
Referenced by PciExpressBitFieldWrite32(), and S3MmioBitFieldWrite32().
UINT64 EFIAPI MmioBitFieldWrite64 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT64 | Value | |||
) |
Writes a bit field to a MMIO register.
Writes Value to the bit field of the MMIO register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination MMIO register are preserved. The new value of the 64-bit register is returned.
If 64-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 63, then ASSERT(). If EndBit is greater than 63, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..63. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..63. | |
Value | The new value of the bit field. |
References BitFieldWrite64(), MmioRead64(), and MmioWrite64().
Referenced by S3MmioBitFieldWrite64().
UINT8 EFIAPI MmioBitFieldWrite8 | ( | IN UINTN | Address, | |
IN UINTN | StartBit, | |||
IN UINTN | EndBit, | |||
IN UINT8 | Value | |||
) |
Writes a bit field to a MMIO register.
Writes Value to the bit field of the MMIO register. The bit field is specified by the StartBit and the EndBit. All other bits in the destination MMIO register are preserved. The new value of the 8-bit register is returned.
If 8-bit MMIO register operations are not supported, then ASSERT(). If StartBit is greater than 7, then ASSERT(). If EndBit is greater than 7, then ASSERT(). If EndBit is less than StartBit, then ASSERT(). If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
Address | The MMIO register to write. | |
StartBit | The ordinal of the least significant bit in the bit field. Range 0..7. | |
EndBit | The ordinal of the most significant bit in the bit field. Range 0..7. | |
Value | The new value of the bit field. |
References BitFieldWrite8(), MmioRead8(), and MmioWrite8().
Referenced by PciExpressBitFieldWrite8(), and S3MmioBitFieldWrite8().
Reads a 16-bit MMIO register, performs a bitwise OR, and writes the result back to the 16-bit MMIO register.
Reads the 16-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 16-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 16-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
OrData | The value to OR with the read value from the MMIO register. |
References MmioRead16(), and MmioWrite16().
Referenced by PciExpressOr16(), and S3MmioOr16().
Reads a 32-bit MMIO register, performs a bitwise OR, and writes the result back to the 32-bit MMIO register.
Reads the 32-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 32-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 32-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
OrData | The value to OR with the read value from the MMIO register. |
References MmioRead32(), and MmioWrite32().
Referenced by PciExpressOr32(), and S3MmioOr32().
Reads a 64-bit MMIO register, performs a bitwise OR, and writes the result back to the 64-bit MMIO register.
Reads the 64-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 64-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 64-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
OrData | The value to OR with the read value from the MMIO register. |
References MmioRead64(), and MmioWrite64().
Referenced by S3MmioOr64().
Reads an 8-bit MMIO register, performs a bitwise OR, and writes the result back to the 8-bit MMIO register.
Reads the 8-bit MMIO register specified by Address, performs a bitwise inclusive OR between the read result and the value specified by OrData, and writes the result to the 8-bit MMIO register specified by Address. The value written to the MMIO register is returned. This function must guarantee that all MMIO read and write operations are serialized.
If 8-bit MMIO register operations are not supported, then ASSERT().
Address | The MMIO register to write. | |
OrData | The value to OR with the read value from the MMIO register. |
References MmioRead8(), and MmioWrite8().
Referenced by PciExpressOr8(), and S3MmioOr8().