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.
17 GCC_ASM_EXPORT(MmioRead8Internal)
18 GCC_ASM_EXPORT(MmioWrite8Internal)
19 GCC_ASM_EXPORT(MmioRead16Internal)
20 GCC_ASM_EXPORT(MmioWrite16Internal)
21 GCC_ASM_EXPORT(MmioRead32Internal)
22 GCC_ASM_EXPORT(MmioWrite32Internal)
23 GCC_ASM_EXPORT(MmioRead64Internal)
24 GCC_ASM_EXPORT(MmioWrite64Internal)
27 // Reads an 8-bit MMIO register.
29 // Reads the 8-bit MMIO register specified by Address. The 8-bit read value is
30 // returned. This function must guarantee that all MMIO read and write
31 // operations are serialized.
33 // @param Address The MMIO register to read.
35 // @return The value read.
37 ASM_PFX(MmioRead8Internal):
43 // Writes an 8-bit MMIO register.
45 // Writes the 8-bit MMIO register specified by Address with the value specified
46 // by Value and returns Value. This function must guarantee that all MMIO read
47 // and write operations are serialized.
49 // @param Address The MMIO register to write.
50 // @param Value The value to write to the MMIO register.
52 ASM_PFX(MmioWrite8Internal):
58 // Reads a 16-bit MMIO register.
60 // Reads the 16-bit MMIO register specified by Address. The 16-bit read value is
61 // returned. This function must guarantee that all MMIO read and write
62 // operations are serialized.
64 // @param Address The MMIO register to read.
66 // @return The value read.
68 ASM_PFX(MmioRead16Internal):
74 // Writes a 16-bit MMIO register.
76 // Writes the 16-bit MMIO register specified by Address with the value specified
77 // by Value and returns Value. This function must guarantee that all MMIO read
78 // and write operations are serialized.
80 // @param Address The MMIO register to write.
81 // @param Value The value to write to the MMIO register.
83 ASM_PFX(MmioWrite16Internal):
89 // Reads a 32-bit MMIO register.
91 // Reads the 32-bit MMIO register specified by Address. The 32-bit read value is
92 // returned. This function must guarantee that all MMIO read and write
93 // operations are serialized.
95 // @param Address The MMIO register to read.
97 // @return The value read.
99 ASM_PFX(MmioRead32Internal):
105 // Writes a 32-bit MMIO register.
107 // Writes the 32-bit MMIO register specified by Address with the value specified
108 // by Value and returns Value. This function must guarantee that all MMIO read
109 // and write operations are serialized.
111 // @param Address The MMIO register to write.
112 // @param Value The value to write to the MMIO register.
114 ASM_PFX(MmioWrite32Internal):
120 // Reads a 64-bit MMIO register.
122 // Reads the 64-bit MMIO register specified by Address. The 64-bit read value is
123 // returned. This function must guarantee that all MMIO read and write
124 // operations are serialized.
126 // @param Address The MMIO register to read.
128 // @return The value read.
130 ASM_PFX(MmioRead64Internal):
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.
145 ASM_PFX(MmioWrite64Internal):