]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
2c7e5c2f HT |
3 | Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | IoLib.c\r | |
16 | \r | |
17 | Abstract: \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 | |
39 | UINT64\r | |
40 | EFIAPI\r | |
41 | IoRead64 (\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 | |
64 | UINT64\r | |
65 | EFIAPI\r | |
66 | IoWrite64 (\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 |