From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Core/EM/usb/int13/UsbBbs.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Core/EM/usb/int13/UsbBbs.c (limited to 'Core/EM/usb/int13/UsbBbs.c') diff --git a/Core/EM/usb/int13/UsbBbs.c b/Core/EM/usb/int13/UsbBbs.c new file mode 100644 index 0000000..a7aba39 --- /dev/null +++ b/Core/EM/usb/int13/UsbBbs.c @@ -0,0 +1,87 @@ +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** + +//**************************************************************************** +// $Header: /Alaska/SOURCE/Modules/USB/ALASKA/Int13/UsbBbs.c 1 7/03/13 5:25a Ryanchou $ +// +// $Revision: 1 $ +// +// $Date: 7/03/13 5:25a $ +// +//**************************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/USB/ALASKA/Int13/UsbBbs.c $ +// +// 1 7/03/13 5:25a Ryanchou +// [TAG] EIP123988 +// [Category] Improvement +// [Description] Move the code creating BBS table to end of POST. +// [Files] UsbBbs.c, UsbInt13.c, UsbInt13.cif, UsbInt13.h, +// UsbInt13.mak, UsbInt13.sdl, efiusbmass.c, uhcd.c, uhcd.h, +// AmiUsbController.h +// +//**************************************************************************** + +// +//**************************************************************************** +// +// Name: UsbBbs.c +// Description: +// +//**************************************************************************** +// + +#include +#include + +// +//--------------------------------------------------------------------------- +// +// Name: CollectUsbBbsDevices +// +// Description: Create BBS table for each USB mass storage device. +// +//--------------------------------------------------------------------------- +// + +VOID +CollectUsbBbsDevices ( + VOID +) +{ + EFI_STATUS Status; + EFI_USB_PROTOCOL *AmiUsb; + + Status = pBS->LocateProtocol(&gEfiUsbProtocolGuid, NULL, &AmiUsb); + if (EFI_ERROR(Status)) { + return; + } + + AmiUsb->InstallUsbLegacyBootDevices(); +} + +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** -- cgit v1.2.3