Copyright (c) 2016-2017, Linaro Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
typedef EFI_STATUS |
( |
EFIAPI * |
HARDWARE_INTERRUPT2_SET_TRIGGER_TYPE | ) |
|
Register Handler for the specified interrupt source.
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
Handler | Callback for interrupt. NULL to unregister |
- Return values
-
EFI_SUCCESS | Source was updated to support Handler. |
EFI_DEVICE_ERROR | Hardware could not be programmed. |
Enable interrupt source Source.
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
- Return values
-
EFI_SUCCESS | Source interrupt enabled. |
EFI_DEVICE_ERROR | Hardware could not be programmed. |
Disable interrupt source Source.
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
- Return values
-
EFI_SUCCESS | Source interrupt disabled. |
EFI_DEVICE_ERROR | Hardware could not be programmed. |
Return current state of interrupt source Source.
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
InterruptState | TRUE: source enabled, FALSE: source disabled. |
- Return values
-
EFI_SUCCESS | InterruptState is valid |
EFI_DEVICE_ERROR | InterruptState is not valid |
Signal to the hardware that the End Of Interrupt state has been reached.
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
- Return values
-
EFI_SUCCESS | Source interrupt EOI'ed. |
EFI_DEVICE_ERROR | Hardware could not be programmed. |
Return the configured trigger type for an interrupt source
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
TriggerType | The configured trigger type |
- Return values
-
EFI_SUCCESS | Operation successful |
EFI_DEVICE_ERROR | Information could not be returned |
Configure the trigger type for an interrupt source
- Parameters
-
This | Instance pointer for this protocol |
Source | Hardware source of the interrupt |
TriggerType | The trigger type to configure |
- Return values
-
EFI_SUCCESS | Operation successful |
EFI_DEVICE_ERROR | Hardware could not be programmed. |