]>
Commit | Line | Data |
---|---|---|
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 | |
25 | \r | |
26 | @param Port The I/O port to read.\r | |
27 | \r | |
38bbd3d9 | 28 | @return Always return zero.\r |
e1f414b6 | 29 | \r |
30 | **/\r | |
31 | UINT64\r | |
32 | EFIAPI\r | |
33 | IoRead64 (\r | |
34 | IN UINTN Port\r | |
35 | )\r | |
36 | {\r | |
37 | ASSERT (FALSE);\r | |
38 | return 0;\r | |
39 | }\r | |
40 | \r | |
41 | /**\r | |
42 | Writes a 64-bit I/O port.\r | |
43 | \r | |
44 | Writes the 64-bit I/O port specified by Port with the value specified by Value\r | |
45 | and returns Value. This function must guarantee that all I/O read and write\r | |
46 | operations are serialized.\r | |
47 | \r | |
48 | If 64-bit I/O port operations are not supported, then ASSERT().\r | |
49 | \r | |
50 | @param Port The I/O port to write.\r | |
51 | @param Value The value to write to the I/O port.\r | |
52 | \r | |
38bbd3d9 | 53 | @return Always return zero.\r |
e1f414b6 | 54 | \r |
55 | **/\r | |
56 | UINT64\r | |
57 | EFIAPI\r | |
58 | IoWrite64 (\r | |
59 | IN UINTN Port,\r | |
60 | IN UINT64 Value\r | |
61 | )\r | |
62 | {\r | |
63 | ASSERT (FALSE);\r | |
64 | return 0;\r | |
65 | }\r | |
66 | \r |