Development Tools User’s Guide
297
Intel
®
IXP2400/IXP2800 Network Processors
Intel XScale® Core Memory Bus Functional Model
int
simIntConnectFIQ
(char
*chip_name
,
unsigned int
intVecto
r,
void (*
isrPtr
)(unsigned int
data
),
unsigned int
userData
)
where:
chip_name
:
name of the instantiated IXP2800/IXP2400 instance,
intVector
:
0..31 in correspond to the interrupt vector defined in the EAS( CSR
description, chapter 5, section 5.10),
isrPtr
:
pointer to the registered callback function,
usrData
:
data to be returned with the callback function,
return
value:
1 for success, -1 for fail
C.1.4
simIntEnableIRQ / simIntEnableFIQ / simIntDisableIRQ /
simIntDisableFIQcmbIntEnableIRQ / cmbIntEnableFIQ /
cmbIntDisableIRQ / cmbIntDisableFIQ
These four functions provide the interface to enable/disable interrupt callback service.
int
simIntEnableIRQ
( char
*chip_name
,
unsigned int
intVector
)
int
simIntEnableFIQ
( char
*chip_name
,
unsigned int
intVector
)
int
simIntDisableIRQ
( char
*chip_name
,
unsigned int
intVector
)
int
simIntDisableFIQ
( char
*chip_name
,
unsigned int
intVector
)
where:
chip_name
:
name of the instatiated IXP2800/IXP2400 instance,
intVector
:
0..31 in correspond to the interrupt vector defined in the EAS(CSR
description, chapter 5, section 5.10),
return
value:
1 for success, -1 for fail
C.1.5
IS_CMB_ADDR_RESERVED / IS_CMB_INT_RESERVED
These two functions, only defined in XACT_IO, provide a way to verify if a calling routine will
access an unimplemented area. The result of such access is considered as unpredictable.
int
IS_CMB_ADDR_RESERVED
(unsigned int
addr
)
int
IS_CMB_INT_RESERVED
(unsigned int
intVecto
r)