;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
\r
IoReadFifo8 ENDP\r
\r
+\r
+;------------------------------------------------------------------------------\r
+; VOID\r
+; EFIAPI\r
+; IoWriteFifo8 (\r
+; IN UINTN Port, // rcx\r
+; IN UINTN Size, // rdx\r
+; IN VOID *Buffer // r8\r
+; );\r
+;------------------------------------------------------------------------------\r
+IoWriteFifo8 PROC\r
+\r
+ xchg rcx, rdx\r
+ xchg rsi, r8 ; rdi: buffer address; r8: save rdi\r
+rep outsb\r
+ mov rsi, r8 ; restore rdi\r
+ ret\r
+\r
+IoWriteFifo8 ENDP\r
+\r
END\r
\r