EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

Omap35xxPkg/InterruptDxe/HardwareInterrupt.c File Reference

#include <PiDxe.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
#include <Library/ArmLib.h>
#include <Protocol/Cpu.h>
#include <Protocol/HardwareInterrupt.h>
#include <Omap3530/Omap3530.h>

Go to the source code of this file.

Functions

VOID EFIAPI ExitBootServicesEvent (IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI RegisterInterruptSource (IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, IN HARDWARE_INTERRUPT_HANDLER Handler)
EFI_STATUS EFIAPI EnableInterruptSource (IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
EFI_STATUS EFIAPI DisableInterruptSource (IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
EFI_STATUS EFIAPI GetInterruptSourceState (IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, IN BOOLEAN *InterruptState)
EFI_STATUS EFIAPI EndOfInterrupt (IN EFI_HARDWARE_INTERRUPT_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
VOID EFIAPI IrqInterruptHandler (IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_SYSTEM_CONTEXT SystemContext)
EFI_STATUS InterruptDxeInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)

Variables

EFI_EVENT EfiExitBootServicesEvent = (EFI_EVENT)NULL
HARDWARE_INTERRUPT_HANDLER gRegisteredInterruptHandlers [INT_NROF_VECTORS]
EFI_HANDLE gHardwareInterruptHandle = NULL
EFI_HARDWARE_INTERRUPT_PROTOCOL gHardwareInterruptProtocol

Detailed Description

Handle OMAP35xx interrupt controller

Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file HardwareInterrupt.c.


Function Documentation

EFI_STATUS EFIAPI DisableInterruptSource ( IN EFI_HARDWARE_INTERRUPT_PROTOCOL This,
IN HARDWARE_INTERRUPT_SOURCE  Source 
)

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.

Definition at line 155 of file HardwareInterrupt.c.

EFI_STATUS EFIAPI EnableInterruptSource ( IN EFI_HARDWARE_INTERRUPT_PROTOCOL This,
IN HARDWARE_INTERRUPT_SOURCE  Source 
)

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.

Definition at line 121 of file HardwareInterrupt.c.

EFI_STATUS EFIAPI EndOfInterrupt ( IN EFI_HARDWARE_INTERRUPT_PROTOCOL This,
IN HARDWARE_INTERRUPT_SOURCE  Source 
)

Signal to the hardware that the End Of Intrrupt 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.

Definition at line 234 of file HardwareInterrupt.c.

VOID EFIAPI ExitBootServicesEvent ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Shutdown our hardware

DXE Core will disable interrupts and turn off the timer and disable interrupts after all the event handlers have run.

Parameters:
[in]EventThe Event that is being processed
[in]ContextEvent Context

Definition at line 50 of file HardwareInterrupt.c.

EFI_STATUS EFIAPI GetInterruptSourceState ( IN EFI_HARDWARE_INTERRUPT_PROTOCOL This,
IN HARDWARE_INTERRUPT_SOURCE  Source,
IN BOOLEAN InterruptState 
)

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

Definition at line 191 of file HardwareInterrupt.c.

EFI_STATUS InterruptDxeInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Initialize the state information for the CPU Architectural Protocol

Parameters:
ImageHandleof the loaded driver
SystemTablePointer to the System Table
Return values:
EFI_SUCCESSProtocol registered
EFI_OUT_OF_RESOURCESCannot allocate protocol data structure
EFI_DEVICE_ERRORHardware problems

Definition at line 311 of file HardwareInterrupt.c.

VOID EFIAPI IrqInterruptHandler ( IN EFI_EXCEPTION_TYPE  InterruptType,
IN EFI_SYSTEM_CONTEXT  SystemContext 
)

EFI_CPU_INTERRUPT_HANDLER that is called when a processor interrupt occurs.

Parameters:
InterruptTypeDefines the type of interrupt or exception that occurred on the processor.This parameter is processor architecture specific.
SystemContextA pointer to the processor context when the interrupt occurred on the processor.
Returns:
None

Definition at line 258 of file HardwareInterrupt.c.

EFI_STATUS EFIAPI RegisterInterruptSource ( IN EFI_HARDWARE_INTERRUPT_PROTOCOL This,
IN HARDWARE_INTERRUPT_SOURCE  Source,
IN HARDWARE_INTERRUPT_HANDLER  Handler 
)

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.

Definition at line 77 of file HardwareInterrupt.c.


Variable Documentation

Definition at line 34 of file HardwareInterrupt.c.

Definition at line 286 of file HardwareInterrupt.c.

HARDWARE_INTERRUPT_HANDLER gRegisteredInterruptHandlers[INT_NROF_VECTORS]

Definition at line 37 of file HardwareInterrupt.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines