Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
irqs.h File Reference
#include <asm/mach-types.h>

Go to the source code of this file.

Macros

#define NR_IRQS   36
 
#define NR_DC21285_IRQS   16
 
#define _ISA_IRQ(x)   (0 + (x))
 
#define _ISA_INR(x)   ((x) - 0)
 
#define _DC21285_IRQ(x)   (16 + (x))
 
#define _DC21285_INR(x)   ((x) - 16)
 
#define IRQ_CONRX   _DC21285_IRQ(0)
 
#define IRQ_CONTX   _DC21285_IRQ(1)
 
#define IRQ_TIMER1   _DC21285_IRQ(2)
 
#define IRQ_TIMER2   _DC21285_IRQ(3)
 
#define IRQ_TIMER3   _DC21285_IRQ(4)
 
#define IRQ_IN0   _DC21285_IRQ(5)
 
#define IRQ_IN1   _DC21285_IRQ(6)
 
#define IRQ_IN2   _DC21285_IRQ(7)
 
#define IRQ_IN3   _DC21285_IRQ(8)
 
#define IRQ_DOORBELLHOST   _DC21285_IRQ(9)
 
#define IRQ_DMA1   _DC21285_IRQ(10)
 
#define IRQ_DMA2   _DC21285_IRQ(11)
 
#define IRQ_PCI   _DC21285_IRQ(12)
 
#define IRQ_SDRAMPARITY   _DC21285_IRQ(13)
 
#define IRQ_I2OINPOST   _DC21285_IRQ(14)
 
#define IRQ_PCI_ABORT   _DC21285_IRQ(15)
 
#define IRQ_PCI_SERR   _DC21285_IRQ(16)
 
#define IRQ_DISCARD_TIMER   _DC21285_IRQ(17)
 
#define IRQ_PCI_DPERR   _DC21285_IRQ(18)
 
#define IRQ_PCI_PERR   _DC21285_IRQ(19)
 
#define IRQ_ISA_TIMER   _ISA_IRQ(0)
 
#define IRQ_ISA_KEYBOARD   _ISA_IRQ(1)
 
#define IRQ_ISA_CASCADE   _ISA_IRQ(2)
 
#define IRQ_ISA_UART2   _ISA_IRQ(3)
 
#define IRQ_ISA_UART   _ISA_IRQ(4)
 
#define IRQ_ISA_FLOPPY   _ISA_IRQ(6)
 
#define IRQ_ISA_PRINTER   _ISA_IRQ(7)
 
#define IRQ_ISA_RTC_ALARM   _ISA_IRQ(8)
 
#define IRQ_ISA_2   _ISA_IRQ(9)
 
#define IRQ_ISA_PS2MOUSE   _ISA_IRQ(12)
 
#define IRQ_ISA_HARDDISK1   _ISA_IRQ(14)
 
#define IRQ_ISA_HARDDISK2   _ISA_IRQ(15)
 
#define IRQ_MASK_UART_RX   (1 << 2)
 
#define IRQ_MASK_UART_TX   (1 << 3)
 
#define IRQ_MASK_TIMER1   (1 << 4)
 
#define IRQ_MASK_TIMER2   (1 << 5)
 
#define IRQ_MASK_TIMER3   (1 << 6)
 
#define IRQ_MASK_IN0   (1 << 8)
 
#define IRQ_MASK_IN1   (1 << 9)
 
#define IRQ_MASK_IN2   (1 << 10)
 
#define IRQ_MASK_IN3   (1 << 11)
 
#define IRQ_MASK_DOORBELLHOST   (1 << 15)
 
#define IRQ_MASK_DMA1   (1 << 16)
 
#define IRQ_MASK_DMA2   (1 << 17)
 
#define IRQ_MASK_PCI   (1 << 18)
 
#define IRQ_MASK_SDRAMPARITY   (1 << 24)
 
#define IRQ_MASK_I2OINPOST   (1 << 25)
 
#define IRQ_MASK_PCI_ABORT   ((1 << 29) | (1 << 30))
 
#define IRQ_MASK_PCI_SERR   (1 << 23)
 
#define IRQ_MASK_DISCARD_TIMER   (1 << 27)
 
#define IRQ_MASK_PCI_DPERR   (1 << 28)
 
#define IRQ_MASK_PCI_PERR   (1 << 31)
 
#define IRQ_NETWINDER_ETHER10   IRQ_IN0
 
#define IRQ_NETWINDER_ETHER100   IRQ_IN1
 
#define IRQ_NETWINDER_VIDCOMP   IRQ_IN2
 
#define IRQ_NETWINDER_PS2MOUSE   _ISA_IRQ(5)
 
#define IRQ_NETWINDER_IR   _ISA_IRQ(6)
 
#define IRQ_NETWINDER_BUTTON   _ISA_IRQ(10)
 
#define IRQ_NETWINDER_VGA   _ISA_IRQ(11)
 
#define IRQ_NETWINDER_SOUND   _ISA_IRQ(12)
 
#define I8042_KBD_IRQ   IRQ_ISA_KEYBOARD
 
#define I8042_AUX_IRQ   (machine_is_netwinder() ? IRQ_NETWINDER_PS2MOUSE : IRQ_ISA_PS2MOUSE)
 
#define IRQ_FLOPPYDISK   IRQ_ISA_FLOPPY
 
#define irq_canonicalize(_i)   (((_i) == IRQ_ISA_CASCADE) ? IRQ_ISA_2 : _i)
 

Macro Definition Documentation

#define _DC21285_INR (   x)    ((x) - 16)

Definition at line 19 of file irqs.h.

#define _DC21285_IRQ (   x)    (16 + (x))

Definition at line 18 of file irqs.h.

#define _ISA_INR (   x)    ((x) - 0)

Definition at line 17 of file irqs.h.

#define _ISA_IRQ (   x)    (0 + (x))

Definition at line 16 of file irqs.h.

#define I8042_AUX_IRQ   (machine_is_netwinder() ? IRQ_NETWINDER_PS2MOUSE : IRQ_ISA_PS2MOUSE)

Definition at line 93 of file irqs.h.

#define I8042_KBD_IRQ   IRQ_ISA_KEYBOARD

Definition at line 92 of file irqs.h.

#define irq_canonicalize (   _i)    (((_i) == IRQ_ISA_CASCADE) ? IRQ_ISA_2 : _i)

Definition at line 96 of file irqs.h.

#define IRQ_CONRX   _DC21285_IRQ(0)

Definition at line 25 of file irqs.h.

#define IRQ_CONTX   _DC21285_IRQ(1)

Definition at line 26 of file irqs.h.

#define IRQ_DISCARD_TIMER   _DC21285_IRQ(17)

Definition at line 42 of file irqs.h.

#define IRQ_DMA1   _DC21285_IRQ(10)

Definition at line 35 of file irqs.h.

#define IRQ_DMA2   _DC21285_IRQ(11)

Definition at line 36 of file irqs.h.

#define IRQ_DOORBELLHOST   _DC21285_IRQ(9)

Definition at line 34 of file irqs.h.

#define IRQ_FLOPPYDISK   IRQ_ISA_FLOPPY

Definition at line 94 of file irqs.h.

#define IRQ_I2OINPOST   _DC21285_IRQ(14)

Definition at line 39 of file irqs.h.

#define IRQ_IN0   _DC21285_IRQ(5)

Definition at line 30 of file irqs.h.

#define IRQ_IN1   _DC21285_IRQ(6)

Definition at line 31 of file irqs.h.

#define IRQ_IN2   _DC21285_IRQ(7)

Definition at line 32 of file irqs.h.

#define IRQ_IN3   _DC21285_IRQ(8)

Definition at line 33 of file irqs.h.

#define IRQ_ISA_2   _ISA_IRQ(9)

Definition at line 54 of file irqs.h.

#define IRQ_ISA_CASCADE   _ISA_IRQ(2)

Definition at line 48 of file irqs.h.

#define IRQ_ISA_FLOPPY   _ISA_IRQ(6)

Definition at line 51 of file irqs.h.

#define IRQ_ISA_HARDDISK1   _ISA_IRQ(14)

Definition at line 56 of file irqs.h.

#define IRQ_ISA_HARDDISK2   _ISA_IRQ(15)

Definition at line 57 of file irqs.h.

#define IRQ_ISA_KEYBOARD   _ISA_IRQ(1)

Definition at line 47 of file irqs.h.

#define IRQ_ISA_PRINTER   _ISA_IRQ(7)

Definition at line 52 of file irqs.h.

#define IRQ_ISA_PS2MOUSE   _ISA_IRQ(12)

Definition at line 55 of file irqs.h.

#define IRQ_ISA_RTC_ALARM   _ISA_IRQ(8)

Definition at line 53 of file irqs.h.

#define IRQ_ISA_TIMER   _ISA_IRQ(0)

Definition at line 46 of file irqs.h.

#define IRQ_ISA_UART   _ISA_IRQ(4)

Definition at line 50 of file irqs.h.

#define IRQ_ISA_UART2   _ISA_IRQ(3)

Definition at line 49 of file irqs.h.

#define IRQ_MASK_DISCARD_TIMER   (1 << 27)

Definition at line 76 of file irqs.h.

#define IRQ_MASK_DMA1   (1 << 16)

Definition at line 69 of file irqs.h.

#define IRQ_MASK_DMA2   (1 << 17)

Definition at line 70 of file irqs.h.

#define IRQ_MASK_DOORBELLHOST   (1 << 15)

Definition at line 68 of file irqs.h.

#define IRQ_MASK_I2OINPOST   (1 << 25)

Definition at line 73 of file irqs.h.

#define IRQ_MASK_IN0   (1 << 8)

Definition at line 64 of file irqs.h.

#define IRQ_MASK_IN1   (1 << 9)

Definition at line 65 of file irqs.h.

#define IRQ_MASK_IN2   (1 << 10)

Definition at line 66 of file irqs.h.

#define IRQ_MASK_IN3   (1 << 11)

Definition at line 67 of file irqs.h.

#define IRQ_MASK_PCI   (1 << 18)

Definition at line 71 of file irqs.h.

#define IRQ_MASK_PCI_ABORT   ((1 << 29) | (1 << 30))

Definition at line 74 of file irqs.h.

#define IRQ_MASK_PCI_DPERR   (1 << 28)

Definition at line 77 of file irqs.h.

#define IRQ_MASK_PCI_PERR   (1 << 31)

Definition at line 78 of file irqs.h.

#define IRQ_MASK_PCI_SERR   (1 << 23)

Definition at line 75 of file irqs.h.

#define IRQ_MASK_SDRAMPARITY   (1 << 24)

Definition at line 72 of file irqs.h.

#define IRQ_MASK_TIMER1   (1 << 4)

Definition at line 61 of file irqs.h.

#define IRQ_MASK_TIMER2   (1 << 5)

Definition at line 62 of file irqs.h.

#define IRQ_MASK_TIMER3   (1 << 6)

Definition at line 63 of file irqs.h.

#define IRQ_MASK_UART_RX   (1 << 2)

Definition at line 59 of file irqs.h.

#define IRQ_MASK_UART_TX   (1 << 3)

Definition at line 60 of file irqs.h.

#define IRQ_NETWINDER_BUTTON   _ISA_IRQ(10)

Definition at line 88 of file irqs.h.

#define IRQ_NETWINDER_ETHER10   IRQ_IN0

Definition at line 83 of file irqs.h.

#define IRQ_NETWINDER_ETHER100   IRQ_IN1

Definition at line 84 of file irqs.h.

#define IRQ_NETWINDER_IR   _ISA_IRQ(6)

Definition at line 87 of file irqs.h.

#define IRQ_NETWINDER_PS2MOUSE   _ISA_IRQ(5)

Definition at line 86 of file irqs.h.

#define IRQ_NETWINDER_SOUND   _ISA_IRQ(12)

Definition at line 90 of file irqs.h.

#define IRQ_NETWINDER_VGA   _ISA_IRQ(11)

Definition at line 89 of file irqs.h.

#define IRQ_NETWINDER_VIDCOMP   IRQ_IN2

Definition at line 85 of file irqs.h.

#define IRQ_PCI   _DC21285_IRQ(12)

Definition at line 37 of file irqs.h.

#define IRQ_PCI_ABORT   _DC21285_IRQ(15)

Definition at line 40 of file irqs.h.

#define IRQ_PCI_DPERR   _DC21285_IRQ(18)

Definition at line 43 of file irqs.h.

#define IRQ_PCI_PERR   _DC21285_IRQ(19)

Definition at line 44 of file irqs.h.

#define IRQ_PCI_SERR   _DC21285_IRQ(16)

Definition at line 41 of file irqs.h.

#define IRQ_SDRAMPARITY   _DC21285_IRQ(13)

Definition at line 38 of file irqs.h.

#define IRQ_TIMER1   _DC21285_IRQ(2)

Definition at line 27 of file irqs.h.

#define IRQ_TIMER2   _DC21285_IRQ(3)

Definition at line 28 of file irqs.h.

#define IRQ_TIMER3   _DC21285_IRQ(4)

Definition at line 29 of file irqs.h.

#define NR_DC21285_IRQS   16

Definition at line 14 of file irqs.h.

#define NR_IRQS   36

Definition at line 13 of file irqs.h.