Home | History | Annotate | Download | only in asm
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef __ASM_SH_MICRODEV_H
     13 #define __ASM_SH_MICRODEV_H
     14 
     15 #define MICRODEV_FPGA_INTC_BASE 0xa6110000ul
     16 #define MICRODEV_FPGA_INTENB_REG (MICRODEV_FPGA_INTC_BASE+0ul)
     17 #define MICRODEV_FPGA_INTDSB_REG (MICRODEV_FPGA_INTC_BASE+8ul)
     18 #define MICRODEV_FPGA_INTC_MASK(n) (1ul<<(n))
     19 #define MICRODEV_FPGA_INTPRI_REG(n) (MICRODEV_FPGA_INTC_BASE+0x10+((n)/8)*8)
     20 #define MICRODEV_FPGA_INTPRI_LEVEL(n,x) ((x)<<(((n)%8)*4))
     21 #define MICRODEV_FPGA_INTPRI_MASK(n) (MICRODEV_FPGA_INTPRI_LEVEL((n),0xful))
     22 #define MICRODEV_FPGA_INTSRC_REG (MICRODEV_FPGA_INTC_BASE+0x30ul)
     23 #define MICRODEV_FPGA_INTREQ_REG (MICRODEV_FPGA_INTC_BASE+0x38ul)
     24 
     25 #define MICRODEV_LINUX_IRQ_KEYBOARD 1
     26 #define MICRODEV_LINUX_IRQ_SERIAL1 2
     27 #define MICRODEV_LINUX_IRQ_ETHERNET 3
     28 #define MICRODEV_LINUX_IRQ_SERIAL2 4
     29 #define MICRODEV_LINUX_IRQ_USB_HC 7
     30 #define MICRODEV_LINUX_IRQ_MOUSE 12
     31 #define MICRODEV_LINUX_IRQ_IDE2 13
     32 #define MICRODEV_LINUX_IRQ_IDE1 14
     33 
     34 #define MICRODEV_FPGA_IRQ_KEYBOARD 1
     35 #define MICRODEV_FPGA_IRQ_SERIAL1 3
     36 #define MICRODEV_FPGA_IRQ_SERIAL2 4
     37 #define MICRODEV_FPGA_IRQ_MOUSE 12
     38 #define MICRODEV_FPGA_IRQ_IDE1 14
     39 #define MICRODEV_FPGA_IRQ_IDE2 15
     40 #define MICRODEV_FPGA_IRQ_USB_HC 16
     41 #define MICRODEV_FPGA_IRQ_ETHERNET 18
     42 
     43 #define MICRODEV_IRQ_PCI_INTA 8
     44 #define MICRODEV_IRQ_PCI_INTB 9
     45 #define MICRODEV_IRQ_PCI_INTC 10
     46 #define MICRODEV_IRQ_PCI_INTD 11
     47 
     48 #define __IO_PREFIX microdev
     49 #include <asm/io_generic.h>
     50 
     51 #endif
     52