Update XHCI driver to use PCI IO AllocateBuffer/Map/Unmap to do DMA operation.
Signed-off-by: Elvin Li <elvin.li@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14546 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This file contains the definition for XHCI host controller schedule routines.
|
||||
|
||||
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -172,6 +172,8 @@ typedef struct _URB {
|
||||
EFI_USB_DEVICE_REQUEST *Request;
|
||||
VOID *Data;
|
||||
UINTN DataLen;
|
||||
VOID *DataPhy;
|
||||
VOID *DataMap;
|
||||
EFI_ASYNC_USB_TRANSFER_CALLBACK Callback;
|
||||
VOID *Context;
|
||||
//
|
||||
@@ -1305,6 +1307,19 @@ XhcCreateUrb (
|
||||
IN VOID *Context
|
||||
);
|
||||
|
||||
/**
|
||||
Free an allocated URB.
|
||||
|
||||
@param Xhc The XHCI device.
|
||||
@param Urb The URB to free.
|
||||
|
||||
**/
|
||||
VOID
|
||||
XhcFreeUrb (
|
||||
IN USB_XHCI_INSTANCE *Xhc,
|
||||
IN URB *Urb
|
||||
);
|
||||
|
||||
/**
|
||||
Create a transfer TRB.
|
||||
|
||||
|
Reference in New Issue
Block a user