12.07.2015 Views

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

Intel(R) IQ80315 I/O Processor DMA and XOR Library APIs and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Intel</strong> ® GW80314 I/O <strong>Processor</strong> <strong>DMA</strong> <strong>and</strong> <strong>XOR</strong> <strong>Library</strong><strong>Library</strong> Function PrototypesE.3 Functions Included in chain_interrupt.h <strong>and</strong>chain_interrupt.cE.3.1void intH<strong>and</strong>lerDetach(void)ItemPrototypeInputOutputPurposeOperationvoid intH<strong>and</strong>lerDetach(void);NoneNoneDescriptionTo remove lib_fiq_h<strong>and</strong>ler <strong>and</strong> lib_fiq_h<strong>and</strong>ler h<strong>and</strong>lers from chain. Returns state of interruptvectors to pre-callintH<strong>and</strong>lerAttach() state.Restore pre-callintH<strong>and</strong>lerAttach() vector values.E.3.2void callintH<strong>and</strong>lerAttach(void)ItemPrototypeInputOutputPurposeOperationDescriptionvoid callintH<strong>and</strong>lerAttach(void);NoneNoneChains in lib_fiq_h<strong>and</strong>ler <strong>and</strong> lib_irq_h<strong>and</strong>ler to interrupt vectors.Calls function intH<strong>and</strong>lerAttach(lib_irq_h<strong>and</strong>ler,lib_fiq_h<strong>and</strong>ler).E.3.3void intH<strong>and</strong>lerAttach(void (*irq)(void),void (*fiq)(void))ItemPrototypeInputOutputPurposeOperationDescriptionvoid intH<strong>and</strong>lerAttach(void (*irq)(void),void (*fiq)(void));irq: irq h<strong>and</strong>ler to be chained into interrupt vectorfiq: fiq h<strong>and</strong>ler to be chained into interrupt vectorNoneTo chain functions into interrupt vectors.• Get location pointed to by interrupt vectors• Save contents at location to global variable used to restore state• Record address of function being chained in• Function chained in jump to prior vector it interrupt is not <strong>XOR</strong> or <strong>DMA</strong> related.<strong>APIs</strong> <strong>and</strong> Testbench White Paper 77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!