Lines Matching +full:memory +full:- +full:to +full:- +full:memory
2 EFI PCI I/O Protocol provides the basic Memory, I/O, PCI configuration,
3 and DMA interfaces that a driver uses to access its PCI controller.
5 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
9 http://opensource.org/licenses/bsd-license.php
54 #define EFI_PCI_IO_PASS_THROUGH_BAR 0xff ///< Special BAR that passes a memory or …
55 #define EFI_PCI_IO_ATTRIBUTE_MASK 0x077f ///< All the following I/O and Memory cyc…
56 #define EFI_PCI_IO_ATTRIBUTE_ISA_MOTHERBOARD_IO 0x0001 ///< I/O cycles 0x0000-0x00FF (10 bit dec…
57 #define EFI_PCI_IO_ATTRIBUTE_ISA_IO 0x0002 ///< I/O cycles 0x0100-0x03FF or greater …
59 #define EFI_PCI_IO_ATTRIBUTE_VGA_MEMORY 0x0008 ///< MEM cycles 0xA0000-0xBFFFF (24 bit d…
60 #define EFI_PCI_IO_ATTRIBUTE_VGA_IO 0x0010 ///< I/O cycles 0x3B0-0x3BB and 0x3C0-0x3…
61 #define EFI_PCI_IO_ATTRIBUTE_IDE_PRIMARY_IO 0x0020 ///< I/O cycles 0x1F0-0x1F7, 0x3F6, 0x3F7…
62 #define EFI_PCI_IO_ATTRIBUTE_IDE_SECONDARY_IO 0x0040 ///< I/O cycles 0x170-0x177, 0x376, 0x377…
63 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_WRITE_COMBINE 0x0080 ///< Map a memory range so writes are com…
65 #define EFI_PCI_IO_ATTRIBUTE_MEMORY 0x0200 ///< Enable the Memory decode bit in the …
67 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_CACHED 0x0800 ///< Map a memory range so all r/w access…
68 #define EFI_PCI_IO_ATTRIBUTE_MEMORY_DISABLE 0x1000 ///< Disable a memory range
69 #define EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE 0x2000 ///< Clear for an add-in PCI Device
72 #define EFI_PCI_IO_ATTRIBUTE_ISA_IO_16 0x10000 ///< I/O cycles 0x0100-0x03FF or greater …
74 #define EFI_PCI_IO_ATTRIBUTE_VGA_IO_16 0x40000 ///< I/O cycles 0x3B0-0x3BB and 0x3C0-0x3…
86 /// A read operation from system memory by a bus master.
90 /// A write operation from system memory by a bus master.
94 /// Provides both read and write access to system memory by both the processor and a
112 /// Set the PCI controller's current attributes to Attributes.
131 Reads from the memory space of a PCI controller. Returns either when the polling exit criteria is
134 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
135 @param Width Signifies the width of the memory or I/O operations.
136 @param BarIndex The BAR index of the standard PCI Configuration header to use as the
137 base address for the memory operation to perform.
138 @param Offset The offset within the selected BAR to start the memory operation.
141 @param Delay The number of 100 ns units to poll.
142 @param Result Pointer to the last value read from the memory location.
148 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
166 Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
168 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
169 @param Width Signifies the width of the memory or I/O operations.
170 @param BarIndex The BAR index of the standard PCI Configuration header to use as the
171 base address for the memory or I/O operation to perform.
172 …@param Offset The offset within the selected BAR to start the memory or I/O operat…
173 @param Count The number of memory or I/O operations to perform.
174 …@param Buffer For read operations, the destination buffer to store the results. Fo…
175 operations, the source buffer to write data from.
177 @retval EFI_SUCCESS The data was read from or written to the PCI controller.
181 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
198 /// Read PCI controller registers in the PCI memory or I/O space.
202 /// Write PCI controller registers in the PCI memory or I/O space.
208 Enable a PCI driver to access PCI controller registers in PCI configuration space.
210 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
211 @param Width Signifies the width of the memory operations.
213 @param Count The number of PCI configuration operations to perform.
214 …@param Buffer For read operations, the destination buffer to store the results. Fo…
215 operations, the source buffer to write data from.
217 @retval EFI_SUCCESS The data was read from or written to the PCI controller.
220 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
246 Enables a PCI driver to copy one region of PCI memory space to another region of PCI
247 memory space.
249 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
250 @param Width Signifies the width of the memory operations.
251 @param DestBarIndex The BAR index in the standard PCI Configuration header to use as the
252 base address for the memory operation to perform.
253 @param DestOffset The destination offset within the BAR specified by DestBarIndex to
254 start the memory writes for the copy operation.
255 @param SrcBarIndex The BAR index in the standard PCI Configuration header to use as the
256 base address for the memory operation to perform.
257 @param SrcOffset The source offset within the BAR specified by SrcBarIndex to start
258 the memory reads for the copy operation.
259 @param Count The number of memory operations to perform. Bytes moved is Width
262 @retval EFI_SUCCESS The data was copied from one memory region to another memory region.
270 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
286 Provides the PCI controller-specific addresses needed to access system memory.
288 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
289 …aram Operation Indicates if the bus master is going to read or write to system memory.
290 @param HostAddress The system memory address to map to the PCI controller.
291 @param NumberOfBytes On input the number of bytes to map. On output the number of bytes
293 …@param DeviceAddress The resulting map address for the bus master PCI controller to use to
295 @param Mapping A resulting value to pass to Unmap().
300 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
318 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
322 @retval EFI_DEVICE_ERROR The data was not committed to the target system memory.
336 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
338 @param MemoryType The type of memory to allocate, EfiBootServicesData or
340 @param Pages The number of pages to allocate.
341 @param HostAddress A pointer to store the base system memory address of the
345 @retval EFI_SUCCESS The requested memory pages were allocated.
349 @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
364 Frees memory that was allocated with AllocateBuffer().
366 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
367 @param Pages The number of pages to free.
368 @param HostAddress The base system memory address of the allocated range.
370 @retval EFI_SUCCESS The requested memory pages were freed.
371 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages
384 Flushes all PCI posted write transactions from a PCI host bridge to system memory.
386 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
389 bridge to system memory.
391 host bridge due to a hardware error.
403 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
428 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
429 @param Operation The operation to perform on the attributes for this PCI controller.
432 …@param Result A pointer to the result mask of attributes that are returned for the…
455 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
456 @param BarIndex The BAR index of the standard PCI Configuration header to use as the
458 …@param Supports A pointer to the mask of attributes that this PCI controller supports
460 …@param Resources A pointer to the ACPI 2.0 resource descriptors that describe the cur…
469 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to allocate
485 @param This A pointer to the EFI_PCI_IO_PROTOCOL instance.
486 @param Attributes The mask of attributes to set for the resource range specified by
488 @param BarIndex The BAR index of the standard PCI Configuration header to use as the
490 …@param Offset A pointer to the BAR relative base address of the resource range to …
492 @param Length A pointer to the length of the resource range to be modified by the
501 @retval EFI_OUT_OF_RESOURCES There are not enough resources to set the attributes on the
517 /// The EFI_PCI_IO_PROTOCOL provides the basic Memory, I/O, PCI configuration,
518 /// and DMA interfaces used to abstract accesses to PCI controllers.
520 /// A device driver that wishes to manage a PCI controller in a system will have to
546 /// A pointer to the in memory copy of the ROM image. The PCI Bus Driver is responsible
547 /// for allocating memory for the ROM image, and copying the contents of the ROM to memory.
549 /// through the ROM BAR of the PCI controller, or it is from a platform-specific location.
550 /// The Attributes() function can be used to determine from which of these two sources