]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseIoLibIntrinsic/IoLib.c
Removed CommonHeader.h generated file from the MdePkg.
[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
13 Module Name: IoLib.c\r
14\r
15**/\r
16\r
17//\r
18// Include common header file for this module.\r
19//\r
f734a10a 20#include "BaseIoLibIntrinsicInternal.h"\r
e1f414b6 21\r
22/**\r
23 Reads a 64-bit I/O port.\r
24\r
25 Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.\r
26 This function must guarantee that all I/O read and write operations are\r
27 serialized.\r
28\r
29 If 64-bit I/O port operations are not supported, then ASSERT().\r
30\r
31 @param Port The I/O port to read.\r
32\r
33 @return The value read.\r
34\r
35**/\r
36UINT64\r
37EFIAPI\r
38IoRead64 (\r
39 IN UINTN Port\r
40 )\r
41{\r
42 ASSERT (FALSE);\r
43 return 0;\r
44}\r
45\r
46/**\r
47 Writes a 64-bit I/O port.\r
48\r
49 Writes the 64-bit I/O port specified by Port with the value specified by Value\r
50 and returns Value. This function must guarantee that all I/O read and write\r
51 operations are serialized.\r
52\r
53 If 64-bit I/O port operations are not supported, then ASSERT().\r
54\r
55 @param Port The I/O port to write.\r
56 @param Value The value to write to the I/O port.\r
57\r
58 @return The value written the I/O port.\r
59\r
60**/\r
61UINT64\r
62EFIAPI\r
63IoWrite64 (\r
64 IN UINTN Port,\r
65 IN UINT64 Value\r
66 )\r
67{\r
68 ASSERT (FALSE);\r
69 return 0;\r
70}\r
71\r