]>
Commit | Line | Data |
---|---|---|
f1ec65ba | 1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
3 | ; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r | |
4 | ; This program and the accompanying materials\r | |
5 | ; are licensed and made available under the terms and conditions of the BSD License\r | |
6 | ; which accompanies this distribution. The full text of the license may be found at\r | |
7 | ; http://opensource.org/licenses/bsd-license.php.\r | |
8 | ;\r | |
9 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | ;\r | |
12 | ;------------------------------------------------------------------------------\r | |
13 | \r | |
14 | .code\r | |
15 | \r | |
16 | ;------------------------------------------------------------------------------\r | |
17 | ; VOID\r | |
18 | ; EFIAPI\r | |
19 | ; IoReadFifo8 (\r | |
20 | ; IN UINTN Port, // rcx\r | |
21 | ; IN UINTN Size, // rdx\r | |
22 | ; IN VOID *Buffer // r8\r | |
23 | ; );\r | |
24 | ;------------------------------------------------------------------------------\r | |
25 | IoReadFifo8 PROC\r | |
26 | \r | |
27 | xchg rcx, rdx\r | |
28 | xchg rdi, r8 ; rdi: buffer address; r8: save rdi\r | |
29 | rep insb\r | |
30 | mov rdi, r8 ; restore rdi\r | |
31 | ret\r | |
32 | \r | |
33 | IoReadFifo8 ENDP\r | |
34 | \r | |
35 | END\r | |
36 | \r |