2 ; Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
4 ; This program and the accompanying materials are licensed and made available
5 ; under the terms and conditions of the BSD License which accompanies this
6 ; distribution. The full text of the license may be found at
7 ; http:;opensource.org/licenses/bsd-license.php
9 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 AREA IoLibMmio, CODE, READONLY
16 EXPORT MmioRead8Internal
17 EXPORT MmioWrite8Internal
18 EXPORT MmioRead16Internal
19 EXPORT MmioWrite16Internal
20 EXPORT MmioRead32Internal
21 EXPORT MmioWrite32Internal
22 EXPORT MmioRead64Internal
23 EXPORT MmioWrite64Internal
26 ; Reads an 8-bit MMIO register.
28 ; Reads the 8-bit MMIO register specified by Address. The 8-bit read value is
29 ; returned. This function must guarantee that all MMIO read and write
30 ; operations are serialized.
32 ; @param Address The MMIO register to read.
34 ; @return The value read.
42 ; Writes an 8-bit MMIO register.
44 ; Writes the 8-bit MMIO register specified by Address with the value specified
45 ; by Value and returns Value. This function must guarantee that all MMIO read
46 ; and write operations are serialized.
48 ; @param Address The MMIO register to write.
49 ; @param Value The value to write to the MMIO register.
57 ; Reads a 16-bit MMIO register.
59 ; Reads the 16-bit MMIO register specified by Address. The 16-bit read value is
60 ; returned. This function must guarantee that all MMIO read and write
61 ; operations are serialized.
63 ; @param Address The MMIO register to read.
65 ; @return The value read.
73 ; Writes a 16-bit MMIO register.
75 ; Writes the 16-bit MMIO register specified by Address with the value specified
76 ; by Value and returns Value. This function must guarantee that all MMIO read
77 ; and write operations are serialized.
79 ; @param Address The MMIO register to write.
80 ; @param Value The value to write to the MMIO register.
88 ; Reads a 32-bit MMIO register.
90 ; Reads the 32-bit MMIO register specified by Address. The 32-bit read value is
91 ; returned. This function must guarantee that all MMIO read and write
92 ; operations are serialized.
94 ; @param Address The MMIO register to read.
96 ; @return The value read.
104 ; Writes a 32-bit MMIO register.
106 ; Writes the 32-bit MMIO register specified by Address with the value specified
107 ; by Value and returns Value. This function must guarantee that all MMIO read
108 ; and write operations are serialized.
110 ; @param Address The MMIO register to write.
111 ; @param Value The value to write to the MMIO register.
119 ; Reads a 64-bit MMIO register.
121 ; Reads the 64-bit MMIO register specified by Address. The 64-bit read value is
122 ; returned. This function must guarantee that all MMIO read and write
123 ; operations are serialized.
125 ; @param Address The MMIO register to read.
127 ; @return The value read.
136 ; Writes a 64-bit MMIO register.
138 ; Writes the 64-bit MMIO register specified by Address with the value specified
139 ; by Value and returns Value. This function must guarantee that all MMIO read
140 ; and write operations are serialized.
142 ; @param Address The MMIO register to write.
143 ; @param Value The value to write to the MMIO register.