If the structure layout in UsbBusPei is changed, then the UsbBotPei will not work. 1. As the maximum number of endpoints is 16, use UINT16 type rather than UINT8 for DataToggle. 2. DataToggle needs to be reset to 0 when endpoint stall is cleared, do it in PeiUsbControlTransfer(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15185 6f19259b-4bc3-4df7-8a09-765794883524
33 lines
806 B
C
33 lines
806 B
C
/** @file
|
|
Usb Peim definition.
|
|
|
|
Copyright (c) 2006 - 2014, 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
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
#ifndef _PEI_USB_PEIM_H_
|
|
#define _PEI_USB_PEIM_H_
|
|
|
|
|
|
#include <PiPei.h>
|
|
|
|
#include <Ppi/UsbIo.h>
|
|
#include <Ppi/BlockIo.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include <Library/PcdLib.h>
|
|
|
|
#include <IndustryStandard/Usb.h>
|
|
|
|
#endif
|