Data Structures | |
struct | XIntc_Config |
struct | XIntc |
Configuration options | |
These options are used in XIntc_SetOptions() to configure the device. | |
#define | XIN_SVC_SGL_ISR_OPTION |
#define | XIN_SVC_ALL_ISRS_OPTION |
Start modes | |
One of these values is passed to XIntc_Start() to start the device. | |
#define | XIN_SIMULATION_MODE |
#define | XIN_REAL_MODE |
Functions | |
int | XIntc_Initialize (XIntc *InstancePtr, u16 DeviceId) |
int | XIntc_Start (XIntc *InstancePtr, u8 Mode) |
void | XIntc_Stop (XIntc *InstancePtr) |
int | XIntc_Connect (XIntc *InstancePtr, u8 Id, XInterruptHandler Handler, void *CallBackRef) |
void | XIntc_Disconnect (XIntc *InstancePtr, u8 Id) |
void | XIntc_Enable (XIntc *InstancePtr, u8 Id) |
void | XIntc_Disable (XIntc *InstancePtr, u8 Id) |
void | XIntc_Acknowledge (XIntc *InstancePtr, u8 Id) |
XIntc_Config * | XIntc_LookupConfig (u16 DeviceId) |
void | XIntc_InterruptHandler (XIntc *InstancePtr) |
int | XIntc_SetOptions (XIntc *InstancePtr, u32 Options) |
u32 | XIntc_GetOptions (XIntc *InstancePtr) |
int | XIntc_SelfTest (XIntc *InstancePtr) |
int | XIntc_SimulateIntr (XIntc *InstancePtr, u8 Id) |
|
Real mode, no simulation allowed, hardware interrupts recognized |
|
Simulation only mode, no hardware interrupts recognized |
|
XIN_SVC_SGL_ISR_OPTION Service the highest priority pending interrupt and then return. XIN_SVC_ALL_ISRS_OPTION Service all of the pending interrupts and then return. |
|
Acknowledges the interrupt source provided as the argument Id. When the interrupt is acknowledged, it causes the interrupt controller to clear its interrupt condition.
|
|
Makes the connection between the Id of the interrupt source and the associated handler that is to run when the interrupt is recognized. The argument provided in this call as the Callbackref is used as the argument for the handler when it is called.
|
|
Disables the interrupt source provided as the argument Id such that the interrupt controller will not cause interrupts for the specified Id. The interrupt controller will continue to hold an interrupt condition for the Id, but will not cause an interrupt.
|
|
Updates the interrupt table with the Null Handler and NULL arguments at the location pointed at by the Id. This effectively disconnects that interrupt source from any handler. The interrupt is disabled also.
|
|
Enables the interrupt source provided as the argument Id. Any pending interrupt condition for the specified Id will occur after this function is called.
|
|
Return the currently set options.
|
|
Initialize a specific interrupt controller instance/driver. The initialization entails:
|
|
The interrupt handler for the driver. This function is provided mostly for backward compatibility. The user should use XIntc_DeviceInterruptHandler(), defined in xintc_l.c when possible and pass the device ID of the interrupt controller device as its argument. The user must connect this function to the interrupt system such that it is called whenever the devices which are connected to it cause an interrupt.
|
|
Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system.
|
|
Run a self-test on the driver/device. This is a destructive test. This involves forcing interrupts into the controller and verifying that they are recognized and can be acknowledged. This test will not succeed if the interrupt controller has been started in real mode such that interrupts cannot be forced.
|
|
Set the options for the interrupt controller driver.
|
|
Allows software to simulate an interrupt in the interrupt controller. This function will only be successful when the interrupt controller has been started in simulation mode. Once it has been started in real mode, interrupts cannot be simulated. A simulated interrupt allows the interrupt controller to be tested without any device to drive an interrupt input signal into it.
|
|
Starts the interrupt controller by enabling the output from the controller to the processor. Interrupts may be generated by the interrupt controller after this function is called. It is necessary for the caller to connect the interrupt handler of this component to the proper interrupt source.
|
|
Stops the interrupt controller by disabling the output from the controller so that no interrupts will be caused by the interrupt controller.
|
Copyright © 1995-2009 Xilinx, Inc. All rights reserved.