Data structure, Vic api, Data structure -13 – Altera Embedded Peripherals IP User Manual

Page 282: Vic api -13

Advertising
background image

Data Structure

Table 28-11: Device Data Structure

#define ALT_VIC_MAX_INTR_PORTS (32)
typedef struct alt_vic_dev
{
void *base; /* Base address of VIC */
alt_u32 intr_controller_id; /* Interrupt controller ID */
alt_u32 num_of_intr_ports; /* Number of interrupt ports */
alt_u32 ril_width; /* RIL width */
alt_u32 daisy_chain_present; /* Daisy-chain input present */
alt_u32 vec_size; /* Vector size */
void *vec_addr; /* Vector table base address */
alt_u32 int_config[ALT_VIC_MAX_INTR_PORTS]; /* INT_CONFIG settings
for each interrupt */
} alt_vic_dev;

VIC API

The VIC device driver provides all the routines required of an Altera HAL external interrupt controller

(EIC) device driver. The following functions are required by the Altera Nios II enhanced HAL interrupt

API:

UG-01085

2014.24.07

Data Structure

28-13

Vectored Interrupt Controller Core

Altera Corporation

Send Feedback

Advertising