2 ; Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 AREA IoLibMmio, CODE, READONLY
10 EXPORT MmioRead8Internal
11 EXPORT MmioWrite8Internal
12 EXPORT MmioRead16Internal
13 EXPORT MmioWrite16Internal
14 EXPORT MmioRead32Internal
15 EXPORT MmioWrite32Internal
16 EXPORT MmioRead64Internal
17 EXPORT MmioWrite64Internal
20 ; Reads an 8-bit MMIO register.
22 ; Reads the 8-bit MMIO register specified by Address. The 8-bit read value is
23 ; returned. This function must guarantee that all MMIO read and write
24 ; operations are serialized.
26 ; @param Address The MMIO register to read.
28 ; @return The value read.
36 ; Writes an 8-bit MMIO register.
38 ; Writes the 8-bit MMIO register specified by Address with the value specified
39 ; by Value and returns Value. This function must guarantee that all MMIO read
40 ; and write operations are serialized.
42 ; @param Address The MMIO register to write.
43 ; @param Value The value to write to the MMIO register.
51 ; Reads a 16-bit MMIO register.
53 ; Reads the 16-bit MMIO register specified by Address. The 16-bit read value is
54 ; returned. This function must guarantee that all MMIO read and write
55 ; operations are serialized.
57 ; @param Address The MMIO register to read.
59 ; @return The value read.
67 ; Writes a 16-bit MMIO register.
69 ; Writes the 16-bit MMIO register specified by Address with the value specified
70 ; by Value and returns Value. This function must guarantee that all MMIO read
71 ; and write operations are serialized.
73 ; @param Address The MMIO register to write.
74 ; @param Value The value to write to the MMIO register.
82 ; Reads a 32-bit MMIO register.
84 ; Reads the 32-bit MMIO register specified by Address. The 32-bit read value is
85 ; returned. This function must guarantee that all MMIO read and write
86 ; operations are serialized.
88 ; @param Address The MMIO register to read.
90 ; @return The value read.
98 ; Writes a 32-bit MMIO register.
100 ; Writes the 32-bit MMIO register specified by Address with the value specified
101 ; by Value and returns Value. This function must guarantee that all MMIO read
102 ; and write operations are serialized.
104 ; @param Address The MMIO register to write.
105 ; @param Value The value to write to the MMIO register.
113 ; Reads a 64-bit MMIO register.
115 ; Reads the 64-bit MMIO register specified by Address. The 64-bit read value is
116 ; returned. This function must guarantee that all MMIO read and write
117 ; operations are serialized.
119 ; @param Address The MMIO register to read.
121 ; @return The value read.
129 ; Writes a 64-bit MMIO register.
131 ; Writes the 64-bit MMIO register specified by Address with the value specified
132 ; by Value and returns Value. This function must guarantee that all MMIO read
133 ; and write operations are serialized.
135 ; @param Address The MMIO register to write.
136 ; @param Value The value to write to the MMIO register.