/** 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(). @param Port The I/O port to write. @param Value The value to write to the I/O port. @return The value written the I/O port. **/ UINT8 EFIAPI IoWrite8 ( IN UINTN Port, IN UINT8 Value ) { return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value); }
/** 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(). @param Port The I/O port to write. @param Value The value to write to the I/O port. @return The value written the I/O port. **/ UINT8 EFIAPI IoWrite8 ( IN UINTN Port, IN UINT8 Value ) { return (UINT8)IoWriteWorker (Port, SMM_IO_UINT8, Value); }
/** Writes a 64-bit I/O port. Writes the 64-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 Port is not aligned on a 64-bit boundary, then ASSERT(). If 64-bit I/O port operations are not supported, then ASSERT(). @param Port The I/O port to write. @param Value The value to write to the I/O port. @return The value written the I/O port. **/ UINT64 EFIAPI IoWrite64 ( IN UINTN Port, IN UINT64 Value ) { // // Make sure Port is aligned on a 64-bit boundary. // ASSERT ((Port & 7) == 0); return IoWriteWorker (Port, EfiCpuIoWidthUint64, Value); }
/** 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 Port is not aligned on a 32-bit boundary, then ASSERT(). If 32-bit I/O port operations are not supported, then ASSERT(). @param Port The I/O port to write. @param Value The value to write to the I/O port. @return The value written the I/O port. **/ UINT32 EFIAPI IoWrite32 ( IN UINTN Port, IN UINT32 Value ) { // // Make sure Port is aligned on a 32-bit boundary. // ASSERT ((Port & 3) == 0); return (UINT32)IoWriteWorker (Port, EfiCpuIoWidthUint32, Value); }
/** 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 Port is not aligned on a 16-bit boundary, then ASSERT(). If 16-bit I/O port operations are not supported, then ASSERT(). @param Port The I/O port to write. @param Value The value to write to the I/O port. @return The value written the I/O port. **/ UINT16 EFIAPI IoWrite16 ( IN UINTN Port, IN UINT16 Value ) { // // Make sure Port is aligned on a 16-bit boundary. // ASSERT ((Port & 1) == 0); return (UINT16)IoWriteWorker (Port, EfiCpuIoWidthUint16, Value); }