]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseIoLibIntrinsic/IoLib.c
Removed MdePkg usage of ModuleName: in file headers
[mirror_edk2.git] / MdePkg / Library / BaseIoLibIntrinsic / IoLib.c
CommitLineData
e1f414b6 1/** @file\r
2 Common I/O Library routines.\r
3\r
4 Copyright (c) 2006, Intel Corporation<BR>\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
e1f414b6 13**/\r
14\r
15//\r
16// Include common header file for this module.\r
17//\r
f734a10a 18#include "BaseIoLibIntrinsicInternal.h"\r
e1f414b6 19\r
20/**\r
21 Reads a 64-bit I/O port.\r
22\r
23 Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.\r
24 This function must guarantee that all I/O read and write operations are\r
25 serialized.\r
26\r
27 If 64-bit I/O port operations are not supported, then ASSERT().\r
28\r
29 @param Port The I/O port to read.\r
30\r
31 @return The value read.\r
32\r
33**/\r
34UINT64\r
35EFIAPI\r
36IoRead64 (\r
37 IN UINTN Port\r
38 )\r
39{\r
40 ASSERT (FALSE);\r
41 return 0;\r
42}\r
43\r
44/**\r
45 Writes a 64-bit I/O port.\r
46\r
47 Writes the 64-bit I/O port specified by Port with the value specified by Value\r
48 and returns Value. This function must guarantee that all I/O read and write\r
49 operations are serialized.\r
50\r
51 If 64-bit I/O port operations are not supported, then ASSERT().\r
52\r
53 @param Port The I/O port to write.\r
54 @param Value The value to write to the I/O port.\r
55\r
56 @return The value written the I/O port.\r
57\r
58**/\r
59UINT64\r
60EFIAPI\r
61IoWrite64 (\r
62 IN UINTN Port,\r
63 IN UINT64 Value\r
64 )\r
65{\r
66 ASSERT (FALSE);\r
67 return 0;\r
68}\r
69\r