\r
This file contains the definination for host controller memory management routines.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
IN UINTN Size\r
);\r
\r
-/** \r
+/**\r
Allocates pages at a specified alignment that are suitable for an EfiPciIoOperationBusMasterCommonBuffer mapping.\r
- \r
+\r
If Alignment is not a power of two and Alignment is not zero, then ASSERT().\r
\r
@param PciIo The PciIo that can be used to access the host controller.\r
@param Pages The number of pages to allocate.\r
@param Alignment The requested alignment of the allocation. Must be a power of two.\r
@param HostAddress The system memory address to map to the PCI controller.\r
- @param DeviceAddress The resulting map address for the bus master PCI controller to \r
+ @param DeviceAddress The resulting map address for the bus master PCI controller to\r
use to access the hosts HostAddress.\r
@param Mapping A resulting value to pass to Unmap().\r
\r
@retval EFI_SUCCESS Success to allocate aligned pages.\r
@retval EFI_INVALID_PARAMETER Pages or Alignment is not valid.\r
@retval EFI_OUT_OF_RESOURCES Do not have enough resources to allocate memory.\r
- \r
+\r
\r
**/\r
EFI_STATUS\r
OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,\r
OUT VOID **Mapping\r
);\r
- \r
+\r
/**\r
Frees memory that was allocated with UsbHcAllocateAlignedPages().\r
- \r
+\r
@param PciIo The PciIo that can be used to access the host controller.\r
@param HostAddress The system memory address to map to the PCI controller.\r
@param Pages The number of pages to free.\r