Functions | |
int | _inp (unsigned short port) |
unsigned short | _inpw (unsigned short port) |
unsigned long | _inpd (unsigned short port) |
int | _outp (unsigned short port, int databyte) |
unsigned short | _outpw (unsigned short port, unsigned short dataword) |
unsigned long | _outpd (unsigned short port, unsigned long dataword) |
void | _ReadWriteBarrier (void) |
UINT8 EFIAPI | IoRead8 (IN UINTN Port) |
UINT8 EFIAPI | IoWrite8 (IN UINTN Port, IN UINT8 Value) |
UINT16 EFIAPI | IoRead16 (IN UINTN Port) |
UINT16 EFIAPI | IoWrite16 (IN UINTN Port, IN UINT16 Value) |
UINT32 EFIAPI | IoRead32 (IN UINTN Port) |
UINT32 EFIAPI | IoWrite32 (IN UINTN Port, IN UINT32 Value) |
MSC - uses intrinsic functions and the optimize will remove the function call overhead.
We don't advocate putting compiler specifics in libraries or drivers but there is no other way to make this work.
Copyright (c) 2006 - 2010, 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.
int _inp | ( | unsigned short | port | ) |
Referenced by IoRead8().
unsigned long _inpd | ( | unsigned short | port | ) |
Referenced by IoRead32().
unsigned short _inpw | ( | unsigned short | port | ) |
Referenced by IoRead16().
int _outp | ( | unsigned short | port, | |
int | databyte | |||
) |
Referenced by IoWrite8().
unsigned long _outpd | ( | unsigned short | port, | |
unsigned long | dataword | |||
) |
Referenced by IoWrite32().
unsigned short _outpw | ( | unsigned short | port, | |
unsigned short | dataword | |||
) |
Referenced by IoWrite16().
void _ReadWriteBarrier | ( | void | ) |
Reads a 16-bit I/O port.
Reads the 16-bit I/O port specified by Port. The 16-bit read value 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(). If Port is not aligned on a 16-bit boundary, then ASSERT().
Port | The I/O port to read. |
References _inpw(), _ReadWriteBarrier, and ASSERT.
Reads a 32-bit I/O port.
Reads the 32-bit I/O port specified by Port. The 32-bit read value 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(). If Port is not aligned on a 32-bit boundary, then ASSERT().
Port | The I/O port to read. |
References _inpd(), _ReadWriteBarrier, and ASSERT.
Reads an 8-bit I/O port.
Reads the 8-bit I/O port specified by Port. The 8-bit read value 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 read. |
References _inp(), and _ReadWriteBarrier.
Writes a 16-bit I/O port.
Writes the 16-bit I/O port specified by Port with the value specified by Value and returns Value. 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(). If Port is not aligned on a 16-bit boundary, then ASSERT().
Port | The I/O port to write. | |
Value | The value to write to the I/O port. |
References _outpw(), _ReadWriteBarrier, and ASSERT.
Writes a 32-bit I/O port.
Writes the 32-bit I/O port specified by Port with the value specified by Value and returns Value. 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(). If Port is not aligned on a 32-bit boundary, then ASSERT().
Port | The I/O port to write. | |
Value | The value to write to the I/O port. |
References _outpd(), _ReadWriteBarrier, and ASSERT.
Writes an 8-bit I/O port.
Writes the 8-bit I/O port specified by Port with the value specified by Value and returns Value. 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. | |
Value | The value to write to the I/O port. |
References _outp(), and _ReadWriteBarrier.