Remove CommonHeader.h from IsaBusDxe.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaBusDxe / InternalIsaIo.h
CommitLineData
c3902377 1/*++\r
2\r
3e0578d2 3 Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
4 All rights reserved. This program and the accompanying materials\r
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
c3902377 11\r
12Module Name:\r
13\r
14 IsaIo.h\r
15 \r
16Abstract:\r
17 \r
18 The header file for EFI_ISA_IO protocol implementation.\r
19 \r
20--*/\r
21\r
22#ifndef _EFI_ISA_IO_LOCAL_H\r
23#define _EFI_ISA_IO_LOCAL_H\r
24\r
c3902377 25#include "InternalIsaBus.h"\r
26\r
27//\r
28// ISA I/O Support Function Prototypes\r
29//\r
30\r
31EFI_STATUS\r
32IsaIoVerifyAccess (\r
33 IN ISA_IO_DEVICE *IsaIoDevice,\r
34 IN ISA_ACCESS_TYPE Type,\r
35 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
36 IN UINTN Count,\r
37 IN OUT UINT32 *Offset\r
38 );\r
39 \r
40EFI_STATUS\r
41EFIAPI\r
42IsaIoIoRead (\r
43 IN EFI_ISA_IO_PROTOCOL *This,\r
44 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
45 IN UINT32 Offset,\r
46 IN UINTN Count,\r
47 IN OUT VOID *Buffer\r
48 );\r
49\r
50EFI_STATUS\r
51EFIAPI\r
52IsaIoIoWrite (\r
53 IN EFI_ISA_IO_PROTOCOL *This,\r
54 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
55 IN UINT32 Offset,\r
56 IN UINTN Count,\r
57 IN OUT VOID *Buffer\r
58 );\r
59\r
60EFI_STATUS\r
61EFIAPI\r
62IsaIoMap (\r
63 IN EFI_ISA_IO_PROTOCOL *This,\r
64 IN EFI_ISA_IO_PROTOCOL_OPERATION Operation,\r
65 IN UINT8 ChannelNumber OPTIONAL,\r
66 IN UINT32 ChannelAttributes,\r
67 IN VOID *HostAddress,\r
68 IN OUT UINTN *NumberOfBytes,\r
69 OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,\r
70 OUT VOID **Mapping\r
71 );\r
72\r
73EFI_STATUS\r
74EFIAPI\r
75IsaIoUnmap (\r
76 IN EFI_ISA_IO_PROTOCOL *This,\r
77 IN VOID *Mapping\r
78 );\r
79\r
80EFI_STATUS\r
81EFIAPI\r
82IsaIoFlush (\r
83 IN EFI_ISA_IO_PROTOCOL *This\r
84 );\r
85\r
86EFI_STATUS\r
87ReportErrorStatusCode (\r
88 EFI_STATUS_CODE_VALUE code\r
89 );\r
90\r
91EFI_STATUS\r
92WriteDmaPort (\r
93 IN EFI_ISA_IO_PROTOCOL *This,\r
94 IN UINT32 AddrOffset,\r
95 IN UINT32 PageOffset,\r
96 IN UINT32 CountOffset,\r
97 IN UINT32 BaseAddress,\r
98 IN UINT16 Count\r
99 );\r
100\r
101EFI_STATUS\r
102WritePort (\r
103 IN EFI_ISA_IO_PROTOCOL *This,\r
104 IN UINT32 Offset,\r
105 IN UINT8 Value\r
106 ); \r
107\r
108EFI_STATUS\r
109EFIAPI\r
110IsaIoMemRead (\r
111 IN EFI_ISA_IO_PROTOCOL *This,\r
112 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
113 IN UINT32 Offset,\r
114 IN UINTN Count,\r
115 IN OUT VOID *Buffer\r
116 );\r
117\r
118\r
119EFI_STATUS\r
120EFIAPI\r
121IsaIoMemWrite (\r
122 IN EFI_ISA_IO_PROTOCOL *This,\r
123 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
124 IN UINT32 Offset,\r
125 IN UINTN Count,\r
126 IN OUT VOID *Buffer\r
127 );\r
128\r
129EFI_STATUS\r
130EFIAPI\r
131IsaIoCopyMem (\r
132 IN EFI_ISA_IO_PROTOCOL *This,\r
133 IN EFI_ISA_IO_PROTOCOL_WIDTH Width,\r
134 IN UINT32 DestOffset,\r
135 IN UINT32 SrcOffset,\r
136 IN UINTN Count\r
137 );\r
138\r
139EFI_STATUS\r
140EFIAPI\r
141IsaIoAllocateBuffer (\r
142 IN EFI_ISA_IO_PROTOCOL *This,\r
143 IN EFI_ALLOCATE_TYPE Type,\r
144 IN EFI_MEMORY_TYPE MemoryType,\r
145 IN UINTN Pages,\r
146 OUT VOID **HostAddress,\r
147 IN UINT64 Attributes\r
148 );\r
149\r
150EFI_STATUS\r
151EFIAPI\r
152IsaIoFreeBuffer (\r
153 IN EFI_ISA_IO_PROTOCOL *This,\r
154 IN UINTN Pages,\r
155 IN VOID *HostAddress\r
156 );\r
157\r
158#endif\r