EmbeddedPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PlatformBootManager.h File Reference

Data Structures

struct  _PLATFORM_BOOT_MANAGER_PROTOCOL
 

Typedefs

typedef struct
_PLATFORM_BOOT_MANAGER_PROTOCOL 
PLATFORM_BOOT_MANAGER_PROTOCOL
 
typedef OUT
EFI_BOOT_MANAGER_LOAD_OPTION ** 
BootOptions
 
typedef OUT
EFI_BOOT_MANAGER_LOAD_OPTION
OUT EFI_INPUT_KEY ** 
BootKeys
 

Functions

typedef EFI_STATUS (EFIAPI *GET_PLATFORM_BOOT_OPTIONS_AND_KEYS)(OUT UINTN *Count
 

Variables

EFI_GUID gPlatformBootManagerProtocolGuid
 

Detailed Description

Copyright (c) 2018, Linaro. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Typedef Documentation

typedef OUT EFI_BOOT_MANAGER_LOAD_OPTION OUT EFI_INPUT_KEY** BootKeys
typedef OUT EFI_BOOT_MANAGER_LOAD_OPTION** BootOptions

Function Documentation

typedef EFI_STATUS ( EFIAPI *  GET_PLATFORM_BOOT_OPTIONS_AND_KEYS)

Gets the state of a GPIO pin

Parameters
ThisPointer to protocol
GpioWhich pin to read
ValueState of the pin
Return values
EFI_SUCCESSGPIO state returned in Value
EFI_INVALID_PARAMETERValue is NULL
EFI_NOT_FOUNDPin does not exit

Sets the state of a GPIO pin

Parameters
ThisPointer to protocol
GpioWhich pin to modify
ModeMode to set
Return values
EFI_SUCCESSGPIO set as requested
EFI_INVALID_PARAMETERInvalid mode
EFI_NOT_FOUNDPin does not exit

Gets the mode (function) of a GPIO pin

Parameters
ThisPointer to protocol
GpioWhich pin
ModePointer to output mode value
Return values
EFI_SUCCESSMode value retrieved
EFI_INVALID_PARAMETERMode is NULL
EFI_NOT_FOUNDPin does not exit

Sets the pull-up / pull-down resistor of a GPIO pin

Parameters
ThisPointer to PPI
GpioPort/pin index
PullThe pullup/pulldown mode to set
Return values
EFI_SUCCESSMode was set
EFI_NOT_FOUNDPin does not exist
EFI_UNSUPPORTEDAction not supported

Enable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt enabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Disable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt disabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Return current state of interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
InterruptStateTRUE: source enabled, FALSE: source disabled.
Return values
EFI_SUCCESSInterruptState is valid
EFI_DEVICE_ERRORInterruptState is not valid

Signal to the hardware that the End Of Interrupt state has been reached.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt EOI'ed.
EFI_DEVICE_ERRORHardware could not be programmed.

Return the configured trigger type for an interrupt source

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
TriggerTypeThe configured trigger type
Return values
EFI_SUCCESSOperation successful
EFI_DEVICE_ERRORInformation could not be returned

Configure the trigger type for an interrupt source

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
TriggerTypeThe trigger type to configure
Return values
EFI_SUCCESSOperation successful
EFI_DEVICE_ERRORHardware could not be programmed.

Register Handler for the specified interrupt source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
HandlerCallback for interrupt. NULL to unregister
Return values
EFI_SUCCESSSource was updated to support Handler.
EFI_DEVICE_ERRORHardware could not be programmed.

Enable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt enabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Disable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt disabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Return current state of interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
InterruptStateTRUE: source enabled, FALSE: source disabled.
Return values
EFI_SUCCESSInterruptState is valid
EFI_DEVICE_ERRORInterruptState is not valid

Signal to the hardware that the End Of Interrupt state has been reached.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt EOI'ed.
EFI_DEVICE_ERRORHardware could not be programmed.

Return the configured trigger type for an interrupt source

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
TriggerTypeThe configured trigger type
Return values
EFI_SUCCESSOperation successful
EFI_DEVICE_ERRORInformation could not be returned

Configure the trigger type for an interrupt source

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
TriggerTypeThe trigger type to configure
Return values
EFI_SUCCESSOperation successful
EFI_DEVICE_ERRORHardware could not be programmed.

Register Handler for the specified interrupt source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
HandlerCallback for interrupt. NULL to unregister
Return values
EFI_SUCCESSSource was updated to support Handler.
EFI_DEVICE_ERRORHardware could not be programmed.

Enable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt enabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Disable interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt disabled.
EFI_DEVICE_ERRORHardware could not be programmed.

Return current state of interrupt source Source.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
InterruptStateTRUE: source enabled, FALSE: source disabled.
Return values
EFI_SUCCESSInterruptState is valid
EFI_DEVICE_ERRORInterruptState is not valid

Signal to the hardware that the End Of Interrupt state has been reached.

Parameters
ThisInstance pointer for this protocol
SourceHardware source of the interrupt
Return values
EFI_SUCCESSSource interrupt EOI'ed.
EFI_DEVICE_ERRORHardware could not be programmed.

Variable Documentation

EFI_GUID gPlatformBootManagerProtocolGuid