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