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