1 /*++
2 
3 Copyright (c) 2004 - 2007, 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 Module Name:
13 
14   SimpleCpuIoLib.h
15 
16 Abstract:
17 
18   Light weight monolithic Cpu Io Lib to support PEI Modules.
19 
20 --*/
21 
22 #ifndef _PEI_SIMPLE_CPU_IO_LIB_H_
23 #define _PEI_SIMPLE_CPU_IO_LIB_H_
24 
25 //
26 //  Base IO Class Functions
27 //
28 UINT8
29 IoRead8 (
30   IN  UINT64  Address
31   );
32 
33 UINT16
34 IoRead16 (
35   IN  UINT64  Address
36   );
37 
38 UINT32
39 IoRead32 (
40   IN  UINT64  Address
41   );
42 
43 VOID
44 IoWrite8 (
45   IN  UINT64  Address,
46   IN  UINT8   Data
47   );
48 
49 VOID
50 IoWrite16 (
51   IN  UINT64  Address,
52   IN  UINT16  Data
53   );
54 
55 VOID
56 IoWrite32 (
57   IN  UINT64  Address,
58   IN  UINT32  Data
59   );
60 
61 UINT32
62 MemRead32 (
63   IN  UINT64  Address
64   );
65 
66 UINT64
67 MemRead64 (
68   IN  UINT64  Address
69   );
70 
71 VOID
72 MemWrite32 (
73   IN  UINT64  Address,
74   IN  UINT32  Data
75   );
76 
77 VOID
78 MemWrite64 (
79   IN  UINT64  Address,
80   IN  UINT64  Data
81   );
82 
83 #endif
84