Files
slimbootloader/BootloaderCommonPkg/Include/Library/UsbBusLib.h
T
Aiden Park 29446a1c2a Pointer type cast for both 32/64-bit operation (#615)
This patch allows both 32/64-bit addressing properly.
- Pointer type cast with UINTN
- Add missing EFIAPI for APIs

Signed-off-by: Aiden Park <aiden.park@intel.com>
2020-03-26 17:30:55 -07:00

34 lines
821 B
C

/** @file
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __USB_BUS_LIB_H__
#define __USB_BUS_LIB_H__
#include <Ppi/UsbIo.h>
typedef EFI_STATUS (EFIAPI *USB_IO_CALLBACK) (PEI_USB_IO_PPI *UsbIoPpi);
/**
Enumerate devices on the USB bus.
It will call the callback function for each device enumerated.
@param UsbHostHandle USB host controller handle.
@param UsbIoCb Callback function for each USB device detected.
@retval EFI_SUCCESS The usb is enumerated successfully.
@retval Others Other failure occurs.
**/
EFI_STATUS
EFIAPI
UsbEnumBus (
EFI_HANDLE UsbHostHandle,
USB_IO_CALLBACK UsbIoCb
);
#endif