]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/I2CLibPei/I2CIoLibPei.h
b68bc1ed09ac409a8104a0da9e4e925e8f32b071
2 Functions for access I2C MMIO register.
4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __I2C_IOLIB_PEI__
11 #define __I2C_IOLIB_PEI__
16 Reads an 8-bit MMIO register.
18 Reads the 8-bit MMIO register specified by Address. The 8-bit read value is
19 returned. This function must guarantee that all MMIO read and write
20 operations are serialized.
22 If 8-bit MMIO register operations are not supported, then ASSERT().
24 @param Address The MMIO register to read.
26 @return The value read.
38 Reads a 16-bit MMIO register.
40 Reads the 16-bit MMIO register specified by Address. The 16-bit read value is
41 returned. This function must guarantee that all MMIO read and write
42 operations are serialized.
44 If 16-bit MMIO register operations are not supported, then ASSERT().
45 If Address is not aligned on a 16-bit boundary, then ASSERT().
47 @param Address The MMIO register to read.
49 @return The value read.
60 Writes a 16-bit MMIO register.
62 Writes the 16-bit MMIO register specified by Address with the value specified
63 by Value and returns Value. This function must guarantee that all MMIO read
64 and write operations are serialized.
66 If 16-bit MMIO register operations are not supported, then ASSERT().
67 If Address is not aligned on a 16-bit boundary, then ASSERT().
69 @param Address The MMIO register to write.
70 @param Value The value to write to the MMIO register.
77 I2CLibPeiMmioWrite16 (
84 Reads a 32-bit MMIO register.
86 Reads the 32-bit MMIO register specified by Address. The 32-bit read value is
87 returned. This function must guarantee that all MMIO read and write
88 operations are serialized.
90 If 32-bit MMIO register operations are not supported, then ASSERT().
91 If Address is not aligned on a 32-bit boundary, then ASSERT().
93 @param Address The MMIO register to read.
95 @return The value read.
100 I2CLibPeiMmioRead32 (
106 Writes a 32-bit MMIO register.
108 Writes the 32-bit MMIO register specified by Address with the value specified
109 by Value and returns Value. This function must guarantee that all MMIO read
110 and write operations are serialized.
112 If 32-bit MMIO register operations are not supported, then ASSERT().
113 If Address is not aligned on a 32-bit boundary, then ASSERT().
115 @param Address The MMIO register to write.
116 @param Value The value to write to the MMIO register.
123 I2CLibPeiMmioWrite32 (
130 OR a 32-bit MMIO register.
132 OR the 32-bit MMIO register specified by Address with the value specified
133 by Value and returns Value. This function must guarantee that all MMIO read
134 and write operations are serialized.
136 If 32-bit MMIO register operations are not supported, then ASSERT().
137 If Address is not aligned on a 32-bit boundary, then ASSERT().
139 @param Address The MMIO register to write OR.
140 @param Value The value to OR to the MMIO register.