]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/IoLib.c
Fixed issues compiling for Apple gcc on IA-32
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseIoLibIntrinsic / IoLib.c
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
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 IoLib.c\r
16 \r
17Abstract: \r
18\r
19 Common I/O Library routines.\r
20\r
21--*/\r
22\r
23#include "EdkIIGlueBase.h"\r
24\r
25/**\r
26 Reads a 64-bit I/O port.\r
27\r
28 Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.\r
29 This function must guarantee that all I/O read and write operations are\r
30 serialized.\r
31\r
32 If 64-bit I/O port operations are not supported, then ASSERT().\r
33\r
34 @param Port The I/O port to read.\r
35\r
36 @return The value read.\r
37\r
38**/\r
39UINT64\r
40EFIAPI\r
41IoRead64 (\r
42 IN UINTN Port\r
43 )\r
44{\r
45 ASSERT (FALSE);\r
46 return 0;\r
47}\r
48\r
49/**\r
50 Writes a 64-bit I/O port.\r
51\r
52 Writes the 64-bit I/O port specified by Port with the value specified by Value\r
53 and returns Value. This function must guarantee that all I/O read and write\r
54 operations are serialized.\r
55\r
56 If 64-bit I/O port operations are not supported, then ASSERT().\r
57\r
58 @param Port The I/O port to write.\r
59 @param Value The value to write to the I/O port.\r
60\r
61 @return The value written the I/O port.\r
62\r
63**/\r
64UINT64\r
65EFIAPI\r
66IoWrite64 (\r
67 IN UINTN Port,\r
68 IN UINT64 Value\r
69 )\r
70{\r
71 ASSERT (FALSE);\r
72 return 0;\r
73}\r
74\r