Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
se7780.h File Reference
#include <linux/sh_intc.h>
#include <asm/addrspace.h>
#include <asm/io_generic.h>

Go to the source code of this file.

Macros

#define SE_AREA0_WIDTH   4 /* Area0: 32bit */
 
#define PA_ROM   0xa0000000 /* EPROM */
 
#define PA_ROM_SIZE   0x00400000 /* EPROM size 4M byte */
 
#define PA_FROM   0xa1000000 /* Flash-ROM */
 
#define PA_FROM_SIZE   0x01000000 /* Flash-ROM size 16M byte */
 
#define PA_EXT1   0xa4000000
 
#define PA_EXT1_SIZE   0x04000000
 
#define PA_SM501   PA_EXT1 /* Graphic IC (SM501) */
 
#define PA_SM501_SIZE   PA_EXT1_SIZE /* Graphic IC (SM501) */
 
#define PA_SDRAM   0xa8000000 /* DDR-SDRAM(Area2/3) 128MB */
 
#define PA_SDRAM_SIZE   0x08000000
 
#define PA_EXT4   0xb0000000
 
#define PA_EXT4_SIZE   0x04000000
 
#define PA_EXT_FLASH   PA_EXT4 /* Expansion Flash-ROM */
 
#define PA_PERIPHERAL   PA_AREA6_IO /* SW6-6=ON */
 
#define PA_LAN   (PA_PERIPHERAL + 0) /* SMC LAN91C111 */
 
#define PA_LED_DISP   (PA_PERIPHERAL + 0x02000000) /* 8words LED Display */
 
#define DISP_CHAR_RAM   (7 << 3)
 
#define DISP_SEL0_ADDR   (DISP_CHAR_RAM + 0)
 
#define DISP_SEL1_ADDR   (DISP_CHAR_RAM + 1)
 
#define DISP_SEL2_ADDR   (DISP_CHAR_RAM + 2)
 
#define DISP_SEL3_ADDR   (DISP_CHAR_RAM + 3)
 
#define DISP_SEL4_ADDR   (DISP_CHAR_RAM + 4)
 
#define DISP_SEL5_ADDR   (DISP_CHAR_RAM + 5)
 
#define DISP_SEL6_ADDR   (DISP_CHAR_RAM + 6)
 
#define DISP_SEL7_ADDR   (DISP_CHAR_RAM + 7)
 
#define DISP_UDC_RAM   (5 << 3)
 
#define PA_FPGA   (PA_PERIPHERAL + 0x03000000) /* FPGA base address */
 
#define FPGA_SFTRST   (PA_FPGA + 0) /* Soft reset register */
 
#define FPGA_INTMSK1   (PA_FPGA + 2) /* Interrupt Mask register 1 */
 
#define FPGA_INTMSK2   (PA_FPGA + 4) /* Interrupt Mask register 2 */
 
#define FPGA_INTSEL1   (PA_FPGA + 6) /* Interrupt select register 1 */
 
#define FPGA_INTSEL2   (PA_FPGA + 8) /* Interrupt select register 2 */
 
#define FPGA_INTSEL3   (PA_FPGA + 10) /* Interrupt select register 3 */
 
#define FPGA_PCI_INTSEL1   (PA_FPGA + 12) /* PCI Interrupt select register 1 */
 
#define FPGA_PCI_INTSEL2   (PA_FPGA + 14) /* PCI Interrupt select register 2 */
 
#define FPGA_INTSET   (PA_FPGA + 16) /* IRQ/IRL select register */
 
#define FPGA_INTSTS1   (PA_FPGA + 18) /* Interrupt status register 1 */
 
#define FPGA_INTSTS2   (PA_FPGA + 20) /* Interrupt status register 2 */
 
#define FPGA_REQSEL   (PA_FPGA + 22) /* REQ/GNT select register */
 
#define FPGA_DBG_LED   (PA_FPGA + 32) /* Debug LED(D-LED[8:1] */
 
#define PA_LED   FPGA_DBG_LED
 
#define FPGA_IVDRID   (PA_FPGA + 36) /* iVDR ID Register */
 
#define FPGA_IVDRPW   (PA_FPGA + 38) /* iVDR Power ON Register */
 
#define FPGA_MMCID   (PA_FPGA + 40) /* MMC ID Register */
 
#define IRQPOS_SMC91CX   (0 * 4)
 
#define IRQPOS_SM501   (1 * 4)
 
#define IRQPOS_EXTINT1   (0 * 4)
 
#define IRQPOS_EXTINT2   (1 * 4)
 
#define IRQPOS_EXTINT3   (2 * 4)
 
#define IRQPOS_EXTINT4   (3 * 4)
 
#define IRQPOS_PCCPW   (0 * 4)
 
#define IRQ_IDE0   evt2irq(0xa60) /* iVDR */
 
#define SMC_IRQ   evt2irq(0x300)
 
#define SM501_IRQ   evt2irq(0x200)
 
#define IRQPIN_EXTINT1   0 /* IRQ0 pin */
 
#define IRQPIN_EXTINT2   1 /* IRQ1 pin */
 
#define IRQPIN_EXTINT3   2 /* IRQ2 pin */
 
#define IRQPIN_SMC91CX   3 /* IRQ3 pin */
 
#define IRQPIN_EXTINT4   4 /* IRQ4 pin */
 
#define IRQPIN_PCC0   5 /* IRQ5 pin */
 
#define IRQPIN_PCC2   6 /* IRQ6 pin */
 
#define IRQPIN_SM501   7 /* IRQ7 pin */
 
#define IRQPIN_PCCPW   7 /* IRQ7 pin */
 
#define __IO_PREFIX   se7780
 

Functions

void init_se7780_IRQ (void)
 

Macro Definition Documentation

#define __IO_PREFIX   se7780

Definition at line 106 of file se7780.h.

#define DISP_CHAR_RAM   (7 << 3)

Definition at line 39 of file se7780.h.

#define DISP_SEL0_ADDR   (DISP_CHAR_RAM + 0)

Definition at line 40 of file se7780.h.

#define DISP_SEL1_ADDR   (DISP_CHAR_RAM + 1)

Definition at line 41 of file se7780.h.

#define DISP_SEL2_ADDR   (DISP_CHAR_RAM + 2)

Definition at line 42 of file se7780.h.

#define DISP_SEL3_ADDR   (DISP_CHAR_RAM + 3)

Definition at line 43 of file se7780.h.

#define DISP_SEL4_ADDR   (DISP_CHAR_RAM + 4)

Definition at line 44 of file se7780.h.

#define DISP_SEL5_ADDR   (DISP_CHAR_RAM + 5)

Definition at line 45 of file se7780.h.

#define DISP_SEL6_ADDR   (DISP_CHAR_RAM + 6)

Definition at line 46 of file se7780.h.

#define DISP_SEL7_ADDR   (DISP_CHAR_RAM + 7)

Definition at line 47 of file se7780.h.

#define DISP_UDC_RAM   (5 << 3)

Definition at line 49 of file se7780.h.

#define FPGA_DBG_LED   (PA_FPGA + 32) /* Debug LED(D-LED[8:1] */

Definition at line 65 of file se7780.h.

#define FPGA_INTMSK1   (PA_FPGA + 2) /* Interrupt Mask register 1 */

Definition at line 54 of file se7780.h.

#define FPGA_INTMSK2   (PA_FPGA + 4) /* Interrupt Mask register 2 */

Definition at line 55 of file se7780.h.

#define FPGA_INTSEL1   (PA_FPGA + 6) /* Interrupt select register 1 */

Definition at line 56 of file se7780.h.

#define FPGA_INTSEL2   (PA_FPGA + 8) /* Interrupt select register 2 */

Definition at line 57 of file se7780.h.

#define FPGA_INTSEL3   (PA_FPGA + 10) /* Interrupt select register 3 */

Definition at line 58 of file se7780.h.

#define FPGA_INTSET   (PA_FPGA + 16) /* IRQ/IRL select register */

Definition at line 61 of file se7780.h.

#define FPGA_INTSTS1   (PA_FPGA + 18) /* Interrupt status register 1 */

Definition at line 62 of file se7780.h.

#define FPGA_INTSTS2   (PA_FPGA + 20) /* Interrupt status register 2 */

Definition at line 63 of file se7780.h.

#define FPGA_IVDRID   (PA_FPGA + 36) /* iVDR ID Register */

Definition at line 67 of file se7780.h.

#define FPGA_IVDRPW   (PA_FPGA + 38) /* iVDR Power ON Register */

Definition at line 68 of file se7780.h.

#define FPGA_MMCID   (PA_FPGA + 40) /* MMC ID Register */

Definition at line 69 of file se7780.h.

#define FPGA_PCI_INTSEL1   (PA_FPGA + 12) /* PCI Interrupt select register 1 */

Definition at line 59 of file se7780.h.

#define FPGA_PCI_INTSEL2   (PA_FPGA + 14) /* PCI Interrupt select register 2 */

Definition at line 60 of file se7780.h.

#define FPGA_REQSEL   (PA_FPGA + 22) /* REQ/GNT select register */

Definition at line 64 of file se7780.h.

#define FPGA_SFTRST   (PA_FPGA + 0) /* Soft reset register */

Definition at line 53 of file se7780.h.

#define IRQ_IDE0   evt2irq(0xa60) /* iVDR */

Definition at line 84 of file se7780.h.

#define IRQPIN_EXTINT1   0 /* IRQ0 pin */

Definition at line 93 of file se7780.h.

#define IRQPIN_EXTINT2   1 /* IRQ1 pin */

Definition at line 94 of file se7780.h.

#define IRQPIN_EXTINT3   2 /* IRQ2 pin */

Definition at line 95 of file se7780.h.

#define IRQPIN_EXTINT4   4 /* IRQ4 pin */

Definition at line 97 of file se7780.h.

#define IRQPIN_PCC0   5 /* IRQ5 pin */

Definition at line 98 of file se7780.h.

#define IRQPIN_PCC2   6 /* IRQ6 pin */

Definition at line 99 of file se7780.h.

#define IRQPIN_PCCPW   7 /* IRQ7 pin */

Definition at line 101 of file se7780.h.

#define IRQPIN_SM501   7 /* IRQ7 pin */

Definition at line 100 of file se7780.h.

#define IRQPIN_SMC91CX   3 /* IRQ3 pin */

Definition at line 96 of file se7780.h.

#define IRQPOS_EXTINT1   (0 * 4)

Definition at line 76 of file se7780.h.

#define IRQPOS_EXTINT2   (1 * 4)

Definition at line 77 of file se7780.h.

#define IRQPOS_EXTINT3   (2 * 4)

Definition at line 78 of file se7780.h.

#define IRQPOS_EXTINT4   (3 * 4)

Definition at line 79 of file se7780.h.

#define IRQPOS_PCCPW   (0 * 4)

Definition at line 81 of file se7780.h.

#define IRQPOS_SM501   (1 * 4)

Definition at line 74 of file se7780.h.

#define IRQPOS_SMC91CX   (0 * 4)

Definition at line 73 of file se7780.h.

#define PA_EXT1   0xa4000000

Definition at line 24 of file se7780.h.

#define PA_EXT1_SIZE   0x04000000

Definition at line 25 of file se7780.h.

#define PA_EXT4   0xb0000000

Definition at line 31 of file se7780.h.

#define PA_EXT4_SIZE   0x04000000

Definition at line 32 of file se7780.h.

#define PA_EXT_FLASH   PA_EXT4 /* Expansion Flash-ROM */

Definition at line 33 of file se7780.h.

#define PA_FPGA   (PA_PERIPHERAL + 0x03000000) /* FPGA base address */

Definition at line 50 of file se7780.h.

#define PA_FROM   0xa1000000 /* Flash-ROM */

Definition at line 22 of file se7780.h.

#define PA_FROM_SIZE   0x01000000 /* Flash-ROM size 16M byte */

Definition at line 23 of file se7780.h.

#define PA_LAN   (PA_PERIPHERAL + 0) /* SMC LAN91C111 */

Definition at line 37 of file se7780.h.

#define PA_LED   FPGA_DBG_LED

Definition at line 66 of file se7780.h.

#define PA_LED_DISP   (PA_PERIPHERAL + 0x02000000) /* 8words LED Display */

Definition at line 38 of file se7780.h.

#define PA_PERIPHERAL   PA_AREA6_IO /* SW6-6=ON */

Definition at line 35 of file se7780.h.

#define PA_ROM   0xa0000000 /* EPROM */

Definition at line 20 of file se7780.h.

#define PA_ROM_SIZE   0x00400000 /* EPROM size 4M byte */

Definition at line 21 of file se7780.h.

#define PA_SDRAM   0xa8000000 /* DDR-SDRAM(Area2/3) 128MB */

Definition at line 28 of file se7780.h.

#define PA_SDRAM_SIZE   0x08000000

Definition at line 29 of file se7780.h.

#define PA_SM501   PA_EXT1 /* Graphic IC (SM501) */

Definition at line 26 of file se7780.h.

#define PA_SM501_SIZE   PA_EXT1_SIZE /* Graphic IC (SM501) */

Definition at line 27 of file se7780.h.

#define SE_AREA0_WIDTH   4 /* Area0: 32bit */

Definition at line 19 of file se7780.h.

#define SM501_IRQ   evt2irq(0x200)

Definition at line 90 of file se7780.h.

#define SMC_IRQ   evt2irq(0x300)

Definition at line 87 of file se7780.h.

Function Documentation

void init_se7780_IRQ ( void  )

Definition at line 24 of file irq.c.