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

Data Structures

struct  _FDT_CLIENT_PROTOCOL
 

Macros

#define FDT_CLIENT_PROTOCOL_GUID
 

Typedefs

typedef struct _FDT_CLIENT_PROTOCOL FDT_CLIENT_PROTOCOL
 
typedef IN INT32 Node
 
typedef IN INT32 IN CONST CHAR8 * PropertyName
 
typedef IN INT32 IN CONST
CHAR8 OUT CONST VOID ** 
Prop
 
typedef IN INT32 IN CONST
CHAR8 OUT CONST VOID OUT
UINT32 * 
PropSize
 
typedef IN CONST CHAR8 * CompatibleString
 
typedef IN CONST CHAR8 IN INT32 PrevNode
 
typedef IN CONST CHAR8 OUT
CONST VOID ** 
Reg
 
typedef IN CONST CHAR8 OUT
CONST VOID OUT UINTN * 
AddressCells
 
typedef IN CONST CHAR8 OUT
CONST VOID OUT UINTN OUT UINTN * 
SizeCells
 
typedef IN CONST CHAR8 OUT
CONST VOID OUT UINTN OUT UINTN
OUT UINT32 * 
RegSize
 

Functions

typedef EFI_STATUS (EFIAPI *FDT_CLIENT_GET_NODE_PROPERTY)(IN FDT_CLIENT_PROTOCOL *This
 

Variables

EFI_GUID gFdtClientProtocolGuid
 

Detailed Description

DISCLAIMER: the FDT_CLIENT_PROTOCOL introduced here is a work in progress, and should not be used outside of the EDK II tree.

Copyright (c) 2016, Linaro Ltd. All rights reserved.

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

Macro Definition Documentation

#define FDT_CLIENT_PROTOCOL_GUID
Value:
{ \
0xE11FACA0, 0x4710, 0x4C8E, {0xA7, 0xA2, 0x01, 0xBA, 0xA2, 0x59, 0x1B, 0x4C} \
}

Typedef Documentation

typedef OUT INT32 OUT CONST VOID OUT UINTN * AddressCells
typedef IN CONST CHAR8 * CompatibleString
typedef OUT INT32 * Node
typedef IN INT32 PrevNode
typedef IN CONST CHAR8 IN CONST CHAR8 OUT CONST VOID ** Prop
typedef IN CONST CHAR8 IN CONST CHAR8 * PropertyName
typedef IN CONST CHAR8 IN CONST CHAR8 OUT CONST VOID OUT UINT32 * PropSize
typedef OUT INT32 OUT CONST VOID ** Reg
typedef OUT INT32 OUT CONST VOID OUT UINTN OUT UINTN OUT UINT32 * RegSize
typedef OUT INT32 OUT CONST VOID OUT UINTN OUT UINTN * SizeCells

Function Documentation

typedef EFI_STATUS ( EFIAPI *  FDT_CLIENT_GET_NODE_PROPERTY)

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.

Variable Documentation

EFI_GUID gFdtClientProtocolGuid