]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeIoLibCpuIo/DxeCpuIoLibInternal.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / DxeIoLibCpuIo / DxeCpuIoLibInternal.h
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 DxeCpuIoLibInternal.h\r
16 \r
17Abstract: \r
18\r
19 Internal header file for DxeIoLibCpuIo\r
20\r
21--*/\r
22\r
23#ifndef __DXE_CPUIO_LIB_INTERNAL_H__\r
24#define __DXE_CPUIO_LIB_INTERNAL_H__\r
25\r
26#include "EdkIIGlueDxe.h"\r
27\r
28/**\r
29 Reads registers in the EFI CPU I/O space.\r
30\r
31 Reads the I/O port specified by Port with registers width specified by Width.\r
32 The read value is returned. If such operations are not supported, then ASSERT().\r
33 This function must guarantee that all I/O read and write operations are serialized.\r
34\r
35 @param Port The base address of the I/O operation.\r
36 The caller is responsible for aligning the Address if required.\r
37 @param Width The width of the I/O operation.\r
38\r
39 @return Data read from registers in the EFI CPU I/O space.\r
40\r
41**/\r
42UINT64\r
43EFIAPI\r
44IoReadWorker (\r
45 IN UINTN Port,\r
46 IN EFI_CPU_IO_PROTOCOL_WIDTH Width\r
47 );\r
48\r
49/**\r
50 Writes registers in the EFI CPU I/O space.\r
51\r
52 Writes the I/O port specified by Port with registers width and value specified by Width\r
53 and Data respectively. Data is returned. If such operations are not supported, then ASSERT().\r
54 This function must guarantee that all I/O read and write operations are serialized.\r
55\r
56 @param Port The base address of the I/O operation.\r
57 The caller is responsible for aligning the Address if required.\r
58 @param Width The width of the I/O operation.\r
59 @param Data The value to write to the I/O port.\r
60\r
61 @return The paramter of Data.\r
62\r
63**/\r
64UINT64\r
65EFIAPI\r
66IoWriteWorker (\r
67 IN UINTN Port,\r
68 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
69 IN UINT64 Data\r
70 );\r
71\r
72/**\r
73 Reads memory-mapped registers in the EFI system memory space.\r
74\r
75 Reads the MMIO registers specified by Address with registers width specified by Width.\r
76 The read value is returned. If such operations are not supported, then ASSERT().\r
77 This function must guarantee that all MMIO read and write operations are serialized.\r
78\r
79 @param Address The MMIO register to read.\r
80 The caller is responsible for aligning the Address if required.\r
81 @param Width The width of the I/O operation.\r
82\r
83 @return Data read from registers in the EFI system memory space.\r
84\r
85**/\r
86UINT64\r
87EFIAPI\r
88MmioReadWorker (\r
89 IN UINTN Address,\r
90 IN EFI_CPU_IO_PROTOCOL_WIDTH Width\r
91 );\r
92\r
93/**\r
94 Writes memory-mapped registers in the EFI system memory space.\r
95\r
96 Writes the MMIO registers specified by Address with registers width and value specified by Width\r
97 and Data respectively. Data is returned. If such operations are not supported, then ASSERT().\r
98 This function must guarantee that all MMIO read and write operations are serialized.\r
99\r
100 @param Address The MMIO register to read.\r
101 The caller is responsible for aligning the Address if required.\r
102 @param Width The width of the I/O operation.\r
103\r
104 @return Data read from registers in the EFI system memory space.\r
105\r
106**/\r
107UINT64\r
108EFIAPI\r
109MmioWriteWorker (\r
110 IN UINTN Address,\r
111 IN EFI_CPU_IO_PROTOCOL_WIDTH Width,\r
112 IN UINT64 Data\r
113 );\r
114\r
115#endif\r