You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
29446a1c2a
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>
34 lines
821 B
C
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
|