source: soft/giet_vm/giet_kernel/irq_handler.h @ 408

Last change on this file since 408 was 322, checked in by alain, 11 years ago

Various small modifs to comply with the genmap tool.

  • Property svn:executable set to *
File size: 2.0 KB
RevLine 
[294]1///////////////////////////////////////////////////////////////////////////////////
2// File     : irq_handler.h
3// Date     : 01/04/2012
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7// The irq_handler.c and irq_handler.h files are part of the GIET-VM nano-kernel.
8// They contain the code of the _irq_demux() function that access the XICU or
9// ICU component (Interupt Controler Unit), and the various ISRs (Interrupt
10// Service Routine) associated to the various ISR types.
11///////////////////////////////////////////////////////////////////////////////////
12
[258]13#ifndef _IRQ_HANDLER_H
14#define _IRQ_HANDLER_H
15
[294]16////////////////////////////////////////////////////////////////////////////////
17// This enum must be kept consistent with the values defined in the
18// xml_driver.c and irq_handler.c files (for display)
19///////////////////////////////////////////////////////////////////////////////
20
[258]21enum isr_type_t
22{
23    ISR_DEFAULT = 0,
[294]24    ISR_TICK    = 1,
25    ISR_TTY_RX  = 2,
26    ISR_TTY_TX  = 3,
27    ISR_BDV     = 4,
[258]28    ISR_TIMER   = 5,
29    ISR_WAKUP   = 6,
[294]30    ISR_NIC_RX  = 7,
31    ISR_NIC_TX  = 8,
32    ISR_CMA     = 9,
[297]33    ISR_MMC     = 10,
[322]34    ISR_DMA     = 11,
35    ISR_SPI     = 12,
[258]36};
37
38///////////////////////////////////////////////////////////////////////////////
39// Prototypes of the Interrupt Service Routines (ISRs) supported by the GIET.
40///////////////////////////////////////////////////////////////////////////////
41
42extern void _irq_demux();
43
44extern void _isr_default();
45
[294]46extern void _isr_tick( unsigned int irq_type,
47                       unsigned int irq_id,
48                       unsigned int channel );
49
50extern void _isr_wakup( unsigned int irq_type,
51                        unsigned int irq_id,
52                        unsigned int channel );
53
[258]54#endif
55
56// Local Variables:
57// tab-width: 4
58// c-basic-offset: 4
59// c-file-offsets:((innamespace . 0)(inline-open . 0))
60// indent-tabs-mode: nil
61// End:
62// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
63
Note: See TracBrowser for help on using the repository browser.