]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.S
QemuFwCfgLib: Add QemuFwCfgWriteBytes() function
[mirror_edk2.git] / OvmfPkg / Library / QemuFwCfgLib / Ia32 / IoLibExAsm.S
index a32b2c60c492cc0bb8b58f54b230ec6c4c6c86a8..c2735d2c65183eef5adc275653bbfa9da9994573 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\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
@@ -30,3 +30,23 @@ rep insb
     popl    %edi\r
     ret\r
 \r
+\r
+#------------------------------------------------------------------------------\r
+#  VOID\r
+#  EFIAPI\r
+#  IoWriteFifo8 (\r
+#    IN UINTN                  Port,\r
+#    IN UINTN                  Size,\r
+#    IN VOID                   *Buffer\r
+#    );\r
+#------------------------------------------------------------------------------\r
+ASM_GLOBAL ASM_PFX(IoWriteFifo8)\r
+ASM_PFX(IoWriteFifo8):\r
+    movw    4(%esp), %dx\r
+    movl    8(%esp), %ecx\r
+    pushl   %esi\r
+    movl    16(%esp), %esi\r
+rep outsb\r
+    popl    %esi\r
+    ret\r
+\r