]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/PciRootBridgeIo.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Protocol / PciRootBridgeIo.h
CommitLineData
d1f95000 1/** @file\r
8a7d75b0 2 PCI Root Bridge I/O protocol as defined in the UEFI 2.0 specification.\r
d1f95000 3\r
9095d37b
LG
4 PCI Root Bridge I/O protocol is used by PCI Bus Driver to perform PCI Memory, PCI I/O,\r
5 and PCI Configuration cycles on a PCI Root Bridge. It also provides services to perform\r
630b4187 6 defferent types of bus mastering DMA.\r
d1f95000 7\r
9095d37b 8 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 9 SPDX-License-Identifier: BSD-2-Clause-Patent\r
d1f95000 10\r
d1f95000 11**/\r
12\r
13#ifndef __PCI_ROOT_BRIDGE_IO_H__\r
14#define __PCI_ROOT_BRIDGE_IO_H__\r
15\r
2a5c4680 16#include <Library/BaseLib.h>\r
17\r
d1f95000 18#define EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_GUID \\r
19 { \\r
20 0x2f707ebb, 0x4a1a, 0x11d4, {0x9a, 0x38, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \\r
21 }\r
22\r
23typedef struct _EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL;\r
24\r
9319d2c2
LG
25///\r
26/// *******************************************************\r
27/// EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH\r
28/// *******************************************************\r
29///\r
d1f95000 30typedef enum {\r
31 EfiPciWidthUint8,\r
32 EfiPciWidthUint16,\r
33 EfiPciWidthUint32,\r
34 EfiPciWidthUint64,\r
35 EfiPciWidthFifoUint8,\r
36 EfiPciWidthFifoUint16,\r
37 EfiPciWidthFifoUint32,\r
38 EfiPciWidthFifoUint64,\r
39 EfiPciWidthFillUint8,\r
40 EfiPciWidthFillUint16,\r
41 EfiPciWidthFillUint32,\r
42 EfiPciWidthFillUint64,\r
43 EfiPciWidthMaximum\r
44} EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH;\r
45\r
9319d2c2
LG
46///\r
47/// *******************************************************\r
48/// EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION\r
49/// *******************************************************\r
50///\r
d1f95000 51typedef enum {\r
9319d2c2
LG
52 ///\r
53 /// A read operation from system memory by a bus master that is not capable of producing\r
54 /// PCI dual address cycles.\r
55 ///\r
d1f95000 56 EfiPciOperationBusMasterRead,\r
9319d2c2
LG
57 ///\r
58 /// A write operation from system memory by a bus master that is not capable of producing\r
59 /// PCI dual address cycles.\r
60 ///\r
d1f95000 61 EfiPciOperationBusMasterWrite,\r
9319d2c2
LG
62 ///\r
63 /// Provides both read and write access to system memory by both the processor and a bus\r
64 /// master that is not capable of producing PCI dual address cycles.\r
65 ///\r
d1f95000 66 EfiPciOperationBusMasterCommonBuffer,\r
9319d2c2
LG
67 ///\r
68 /// A read operation from system memory by a bus master that is capable of producing PCI\r
69 /// dual address cycles.\r
70 ///\r
d1f95000 71 EfiPciOperationBusMasterRead64,\r
9319d2c2
LG
72 ///\r
73 /// A write operation to system memory by a bus master that is capable of producing PCI\r
74 /// dual address cycles.\r
75 ///\r
d1f95000 76 EfiPciOperationBusMasterWrite64,\r
9319d2c2
LG
77 ///\r
78 /// Provides both read and write access to system memory by both the processor and a bus\r
79 /// master that is capable of producing PCI dual address cycles.\r
80 ///\r
d1f95000 81 EfiPciOperationBusMasterCommonBuffer64,\r
82 EfiPciOperationMaximum\r
83} EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION;\r
84\r
85#define EFI_PCI_ATTRIBUTE_ISA_MOTHERBOARD_IO 0x0001\r
86#define EFI_PCI_ATTRIBUTE_ISA_IO 0x0002\r
87#define EFI_PCI_ATTRIBUTE_VGA_PALETTE_IO 0x0004\r
88#define EFI_PCI_ATTRIBUTE_VGA_MEMORY 0x0008\r
89#define EFI_PCI_ATTRIBUTE_VGA_IO 0x0010\r
90#define EFI_PCI_ATTRIBUTE_IDE_PRIMARY_IO 0x0020\r
91#define EFI_PCI_ATTRIBUTE_IDE_SECONDARY_IO 0x0040\r
92#define EFI_PCI_ATTRIBUTE_MEMORY_WRITE_COMBINE 0x0080\r
93#define EFI_PCI_ATTRIBUTE_MEMORY_CACHED 0x0800\r
94#define EFI_PCI_ATTRIBUTE_MEMORY_DISABLE 0x1000\r
95#define EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE 0x8000\r
e0ee9d93 96#define EFI_PCI_ATTRIBUTE_ISA_IO_16 0x10000\r
97#define EFI_PCI_ATTRIBUTE_VGA_PALETTE_IO_16 0x20000\r
98#define EFI_PCI_ATTRIBUTE_VGA_IO_16 0x40000\r
d1f95000 99\r
100#define EFI_PCI_ATTRIBUTE_VALID_FOR_ALLOCATE_BUFFER (EFI_PCI_ATTRIBUTE_MEMORY_WRITE_COMBINE | EFI_PCI_ATTRIBUTE_MEMORY_CACHED | EFI_PCI_ATTRIBUTE_DUAL_ADDRESS_CYCLE)\r
101\r
102#define EFI_PCI_ATTRIBUTE_INVALID_FOR_ALLOCATE_BUFFER (~EFI_PCI_ATTRIBUTE_VALID_FOR_ALLOCATE_BUFFER)\r
103\r
104#define EFI_PCI_ADDRESS(bus, dev, func, reg) \\r
2a5c4680 105 (UINT64) ( \\r
106 (((UINTN) bus) << 24) | \\r
107 (((UINTN) dev) << 16) | \\r
108 (((UINTN) func) << 8) | \\r
109 (((UINTN) (reg)) < 256 ? ((UINTN) (reg)) : (UINT64) (LShiftU64 ((UINT64) (reg), 32))))\r
d1f95000 110\r
111typedef struct {\r
112 UINT8 Register;\r
113 UINT8 Function;\r
114 UINT8 Device;\r
115 UINT8 Bus;\r
116 UINT32 ExtendedRegister;\r
117} EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS;\r
118\r
9095d37b 119/**\r
d1f95000 120 Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is\r
121 satisfied or after a defined duration.\r
9095d37b 122\r
d1f95000 123 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
124 @param Width Signifies the width of the memory or I/O operations.\r
9095d37b 125 @param Address The base address of the memory or I/O operations.\r
d1f95000 126 @param Mask Mask used for the polling criteria.\r
127 @param Value The comparison value used for the polling exit criteria.\r
128 @param Delay The number of 100 ns units to poll.\r
129 @param Result Pointer to the last value read from the memory location.\r
9095d37b 130\r
d1f95000 131 @retval EFI_SUCCESS The last data returned from the access matched the poll exit criteria.\r
132 @retval EFI_TIMEOUT Delay expired before a match occurred.\r
133 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
134 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
9095d37b 135\r
d1f95000 136**/\r
137typedef\r
138EFI_STATUS\r
8b13229b 139(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_POLL_IO_MEM)(\r
d1f95000 140 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
141 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
142 IN UINT64 Address,\r
143 IN UINT64 Mask,\r
144 IN UINT64 Value,\r
145 IN UINT64 Delay,\r
146 OUT UINT64 *Result\r
147 );\r
148\r
9095d37b 149/**\r
d1f95000 150 Enables a PCI driver to access PCI controller registers in the PCI root bridge memory space.\r
9095d37b 151\r
d1f95000 152 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
153 @param Width Signifies the width of the memory operations.\r
9095d37b 154 @param Address The base address of the memory operations.\r
d1f95000 155 @param Count The number of memory operations to perform.\r
156 @param Buffer For read operations, the destination buffer to store the results. For write\r
9095d37b
LG
157 operations, the source buffer to write data from.\r
158\r
159 @retval EFI_SUCCESS The data was read from or written to the PCI root bridge.\r
d1f95000 160 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
161 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
9095d37b 162\r
d1f95000 163**/\r
164typedef\r
165EFI_STATUS\r
8b13229b 166(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_IO_MEM)(\r
d1f95000 167 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
168 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
169 IN UINT64 Address,\r
170 IN UINTN Count,\r
171 IN OUT VOID *Buffer\r
172 );\r
173\r
174typedef struct {\r
992f22b9
LG
175 ///\r
176 /// Read PCI controller registers in the PCI root bridge memory space.\r
177 ///\r
d1f95000 178 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_IO_MEM Read;\r
992f22b9
LG
179 ///\r
180 /// Write PCI controller registers in the PCI root bridge memory space.\r
181 ///\r
d1f95000 182 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_IO_MEM Write;\r
183} EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS;\r
184\r
9095d37b 185/**\r
d1f95000 186 Enables a PCI driver to copy one region of PCI root bridge memory space to another region of PCI\r
9095d37b
LG
187 root bridge memory space.\r
188\r
d1f95000 189 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL instance.\r
190 @param Width Signifies the width of the memory operations.\r
9095d37b
LG
191 @param DestAddress The destination address of the memory operation.\r
192 @param SrcAddress The source address of the memory operation.\r
193 @param Count The number of memory operations to perform.\r
194\r
195 @retval EFI_SUCCESS The data was copied from one memory region to another memory region.\r
d1f95000 196 @retval EFI_INVALID_PARAMETER Width is invalid for this PCI root bridge.\r
197 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
9095d37b 198\r
d1f95000 199**/\r
200typedef\r
201EFI_STATUS\r
8b13229b 202(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_COPY_MEM)(\r
d1f95000 203 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
204 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH Width,\r
205 IN UINT64 DestAddress,\r
206 IN UINT64 SrcAddress,\r
207 IN UINTN Count\r
208 );\r
209\r
9095d37b 210/**\r
630b4187 211 Provides the PCI controller-specific addresses required to access system memory from a\r
9095d37b
LG
212 DMA bus master.\r
213\r
d1f95000 214 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
215 @param Operation Indicates if the bus master is going to read or write to system memory.\r
216 @param HostAddress The system memory address to map to the PCI controller.\r
217 @param NumberOfBytes On input the number of bytes to map. On output the number of bytes\r
9095d37b 218 that were mapped.\r
d1f95000 219 @param DeviceAddress The resulting map address for the bus master PCI controller to use to\r
9095d37b 220 access the hosts HostAddress.\r
d1f95000 221 @param Mapping A resulting value to pass to Unmap().\r
9095d37b 222\r
d1f95000 223 @retval EFI_SUCCESS The range was mapped for the returned NumberOfBytes.\r
9095d37b 224 @retval EFI_UNSUPPORTED The HostAddress cannot be mapped as a common buffer.\r
d1f95000 225 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
226 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
227 @retval EFI_DEVICE_ERROR The system hardware could not map the requested address.\r
9095d37b 228\r
d1f95000 229**/\r
230typedef\r
231EFI_STATUS\r
8b13229b 232(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_MAP)(\r
d1f95000 233 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
234 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION Operation,\r
235 IN VOID *HostAddress,\r
236 IN OUT UINTN *NumberOfBytes,\r
237 OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,\r
238 OUT VOID **Mapping\r
239 );\r
240\r
9095d37b 241/**\r
d1f95000 242 Completes the Map() operation and releases any corresponding resources.\r
9095d37b 243\r
d1f95000 244 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
245 @param Mapping The mapping value returned from Map().\r
9095d37b 246\r
d1f95000 247 @retval EFI_SUCCESS The range was unmapped.\r
248 @retval EFI_INVALID_PARAMETER Mapping is not a value that was returned by Map().\r
249 @retval EFI_DEVICE_ERROR The data was not committed to the target system memory.\r
9095d37b 250\r
d1f95000 251**/\r
252typedef\r
253EFI_STATUS\r
8b13229b 254(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_UNMAP)(\r
d1f95000 255 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
256 IN VOID *Mapping\r
257 );\r
258\r
9095d37b 259/**\r
d1f95000 260 Allocates pages that are suitable for an EfiPciOperationBusMasterCommonBuffer or\r
9095d37b
LG
261 EfiPciOperationBusMasterCommonBuffer64 mapping.\r
262\r
d1f95000 263 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
264 @param Type This parameter is not used and must be ignored.\r
265 @param MemoryType The type of memory to allocate, EfiBootServicesData or\r
9095d37b
LG
266 EfiRuntimeServicesData.\r
267 @param Pages The number of pages to allocate.\r
d1f95000 268 @param HostAddress A pointer to store the base system memory address of the\r
9095d37b 269 allocated range.\r
d1f95000 270 @param Attributes The requested bit mask of attributes for the allocated range.\r
9095d37b 271\r
d1f95000 272 @retval EFI_SUCCESS The requested memory pages were allocated.\r
273 @retval EFI_UNSUPPORTED Attributes is unsupported. The only legal attribute bits are\r
9095d37b 274 MEMORY_WRITE_COMBINE and MEMORY_CACHED.\r
d1f95000 275 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
9095d37b
LG
276 @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.\r
277\r
d1f95000 278**/\r
279typedef\r
280EFI_STATUS\r
8b13229b 281(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ALLOCATE_BUFFER)(\r
d1f95000 282 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
283 IN EFI_ALLOCATE_TYPE Type,\r
284 IN EFI_MEMORY_TYPE MemoryType,\r
285 IN UINTN Pages,\r
286 IN OUT VOID **HostAddress,\r
287 IN UINT64 Attributes\r
288 );\r
289\r
9095d37b 290/**\r
d1f95000 291 Frees memory that was allocated with AllocateBuffer().\r
9095d37b 292\r
d1f95000 293 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
9095d37b
LG
294 @param Pages The number of pages to free.\r
295 @param HostAddress The base system memory address of the allocated range.\r
296\r
d1f95000 297 @retval EFI_SUCCESS The requested memory pages were freed.\r
298 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages\r
299 was not allocated with AllocateBuffer().\r
9095d37b 300\r
d1f95000 301**/\r
302typedef\r
303EFI_STATUS\r
8b13229b 304(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_FREE_BUFFER)(\r
d1f95000 305 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
306 IN UINTN Pages,\r
307 IN VOID *HostAddress\r
308 );\r
309\r
9095d37b 310/**\r
d1f95000 311 Flushes all PCI posted write transactions from a PCI host bridge to system memory.\r
9095d37b 312\r
d1f95000 313 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
9095d37b 314\r
d1f95000 315 @retval EFI_SUCCESS The PCI posted write transactions were flushed from the PCI host\r
9095d37b 316 bridge to system memory.\r
d1f95000 317 @retval EFI_DEVICE_ERROR The PCI posted write transactions were not flushed from the PCI\r
9095d37b
LG
318 host bridge due to a hardware error.\r
319\r
d1f95000 320**/\r
321typedef\r
322EFI_STATUS\r
8b13229b 323(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_FLUSH)(\r
d1f95000 324 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This\r
325 );\r
326\r
9095d37b 327/**\r
d1f95000 328 Gets the attributes that a PCI root bridge supports setting with SetAttributes(), and the\r
9095d37b
LG
329 attributes that a PCI root bridge is currently using.\r
330\r
d1f95000 331 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
332 @param Supports A pointer to the mask of attributes that this PCI root bridge supports\r
9095d37b 333 setting with SetAttributes().\r
d1f95000 334 @param Attributes A pointer to the mask of attributes that this PCI root bridge is currently\r
9095d37b
LG
335 using.\r
336\r
337 @retval EFI_SUCCESS If Supports is not NULL, then the attributes that the PCI root\r
338 bridge supports is returned in Supports. If Attributes is\r
d1f95000 339 not NULL, then the attributes that the PCI root bridge is currently\r
9095d37b 340 using is returned in Attributes.\r
d1f95000 341 @retval EFI_INVALID_PARAMETER Both Supports and Attributes are NULL.\r
9095d37b
LG
342\r
343\r
d1f95000 344**/\r
345typedef\r
346EFI_STATUS\r
8b13229b 347(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_GET_ATTRIBUTES)(\r
d1f95000 348 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
349 OUT UINT64 *Supports,\r
350 OUT UINT64 *Attributes\r
351 );\r
352\r
9095d37b 353/**\r
d1f95000 354 Sets attributes for a resource range on a PCI root bridge.\r
9095d37b 355\r
d1f95000 356 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
357 @param Attributes The mask of attributes to set.\r
358 @param ResourceBase A pointer to the base address of the resource range to be modified by the\r
359 attributes specified by Attributes.\r
360 @param ResourceLength A pointer to the length of the resource range to be modified by the\r
9095d37b
LG
361 attributes specified by Attributes.\r
362\r
363 @retval EFI_SUCCESS The set of attributes specified by Attributes for the resource\r
364 range specified by ResourceBase and ResourceLength\r
d1f95000 365 were set on the PCI root bridge, and the actual resource range is\r
9095d37b 366 returned in ResuourceBase and ResourceLength.\r
d1f95000 367 @retval EFI_UNSUPPORTED A bit is set in Attributes that is not supported by the PCI Root\r
9095d37b
LG
368 Bridge.\r
369 @retval EFI_OUT_OF_RESOURCES There are not enough resources to set the attributes on the\r
370 resource range specified by BaseAddress and Length.\r
371 @retval EFI_INVALID_PARAMETER One or more parameters are invalid.\r
372\r
d1f95000 373**/\r
374typedef\r
375EFI_STATUS\r
8b13229b 376(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_SET_ATTRIBUTES)(\r
d1f95000 377 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
378 IN UINT64 Attributes,\r
379 IN OUT UINT64 *ResourceBase,\r
380 IN OUT UINT64 *ResourceLength\r
381 );\r
382\r
9095d37b 383/**\r
51312091
DB
384 Retrieves the current resource settings of this PCI root bridge in the form of a set of ACPI\r
385 resource descriptors.\r
9095d37b 386\r
d1f95000 387 @param This A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
51312091
DB
388 @param Resources A pointer to the resource descriptors that describe the current\r
389 configuration of this PCI root bridge.\r
390\r
d1f95000 391 @retval EFI_SUCCESS The current configuration of this PCI root bridge was returned in\r
51312091 392 Resources.\r
d1f95000 393 @retval EFI_UNSUPPORTED The current configuration of this PCI root bridge could not be\r
51312091
DB
394 retrieved.\r
395\r
d1f95000 396**/\r
397typedef\r
398EFI_STATUS\r
8b13229b 399(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_CONFIGURATION)(\r
d1f95000 400 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This,\r
401 OUT VOID **Resources\r
402 );\r
403\r
44717a39 404///\r
9095d37b
LG
405/// Provides the basic Memory, I/O, PCI configuration, and DMA interfaces that are\r
406/// used to abstract accesses to PCI controllers behind a PCI Root Bridge Controller.\r
44717a39 407///\r
d1f95000 408struct _EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL {\r
cce6f7aa 409 ///\r
410 /// The EFI_HANDLE of the PCI Host Bridge of which this PCI Root Bridge is a member.\r
411 ///\r
d1f95000 412 EFI_HANDLE ParentHandle;\r
413 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_POLL_IO_MEM PollMem;\r
414 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_POLL_IO_MEM PollIo;\r
415 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS Mem;\r
416 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS Io;\r
417 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ACCESS Pci;\r
418 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_COPY_MEM CopyMem;\r
419 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_MAP Map;\r
420 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_UNMAP Unmap;\r
421 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_ALLOCATE_BUFFER AllocateBuffer;\r
422 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_FREE_BUFFER FreeBuffer;\r
423 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_FLUSH Flush;\r
424 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_GET_ATTRIBUTES GetAttributes;\r
425 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_SET_ATTRIBUTES SetAttributes;\r
426 EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_CONFIGURATION Configuration;\r
9095d37b 427\r
cce6f7aa 428 ///\r
429 /// The segment number that this PCI root bridge resides.\r
430 ///\r
d1f95000 431 UINT32 SegmentNumber;\r
432};\r
433\r
434extern EFI_GUID gEfiPciRootBridgeIoProtocolGuid;\r
435\r
436#endif\r