diff options
Diffstat (limited to 'include/asm-mips/txx9/rbtx4927.h')
-rw-r--r-- | include/asm-mips/txx9/rbtx4927.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/include/asm-mips/txx9/rbtx4927.h b/include/asm-mips/txx9/rbtx4927.h index 5531342bcc01..5b6f488b1b3c 100644 --- a/include/asm-mips/txx9/rbtx4927.h +++ b/include/asm-mips/txx9/rbtx4927.h | |||
@@ -29,10 +29,33 @@ | |||
29 | 29 | ||
30 | #include <asm/txx9/tx4927.h> | 30 | #include <asm/txx9/tx4927.h> |
31 | 31 | ||
32 | #define RBTX4927_PCIMEM 0x08000000 | ||
33 | #define RBTX4927_PCIMEM_SIZE 0x08000000 | ||
34 | #define RBTX4927_PCIIO 0x16000000 | ||
35 | #define RBTX4927_PCIIO_SIZE 0x01000000 | ||
36 | |||
37 | #define rbtx4927_pcireset_addr ((__u8 __iomem *)0xbc00f006UL) | ||
38 | |||
39 | /* bits for ISTAT/IMASK/IMSTAT */ | ||
40 | #define RBTX4927_INTB_PCID 0 | ||
41 | #define RBTX4927_INTB_PCIC 1 | ||
42 | #define RBTX4927_INTB_PCIB 2 | ||
43 | #define RBTX4927_INTB_PCIA 3 | ||
44 | #define RBTX4927_INTF_PCID (1 << RBTX4927_INTB_PCID) | ||
45 | #define RBTX4927_INTF_PCIC (1 << RBTX4927_INTB_PCIC) | ||
46 | #define RBTX4927_INTF_PCIB (1 << RBTX4927_INTB_PCIB) | ||
47 | #define RBTX4927_INTF_PCIA (1 << RBTX4927_INTB_PCIA) | ||
48 | |||
49 | #define RBTX4927_IRQ_IOC (TX4927_IRQ_PIC_BEG + TX4927_NUM_IR) | ||
50 | #define RBTX4927_IRQ_IOC_PCID (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCID) | ||
51 | #define RBTX4927_IRQ_IOC_PCIC (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIC) | ||
52 | #define RBTX4927_IRQ_IOC_PCIB (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIB) | ||
53 | #define RBTX4927_IRQ_IOC_PCIA (RBTX4927_IRQ_IOC + RBTX4927_INTB_PCIA) | ||
54 | |||
32 | #ifdef CONFIG_PCI | 55 | #ifdef CONFIG_PCI |
33 | #define TBTX4927_ISA_IO_OFFSET TX4927_PCIIO | 56 | #define RBTX4927_ISA_IO_OFFSET RBTX4927_PCIIO |
34 | #else | 57 | #else |
35 | #define TBTX4927_ISA_IO_OFFSET 0 | 58 | #define RBTX4927_ISA_IO_OFFSET 0 |
36 | #endif | 59 | #endif |
37 | 60 | ||
38 | #define RBTX4927_SW_RESET_DO (void __iomem *)0xbc00f000UL | 61 | #define RBTX4927_SW_RESET_DO (void __iomem *)0xbc00f000UL |
@@ -41,7 +64,7 @@ | |||
41 | #define RBTX4927_SW_RESET_ENABLE (void __iomem *)0xbc00f002UL | 64 | #define RBTX4927_SW_RESET_ENABLE (void __iomem *)0xbc00f002UL |
42 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 | 65 | #define RBTX4927_SW_RESET_ENABLE_SET 0x01 |
43 | 66 | ||
44 | #define RBTX4927_RTL_8019_BASE (0x1c020280-TBTX4927_ISA_IO_OFFSET) | 67 | #define RBTX4927_RTL_8019_BASE (0x1c020280 - RBTX4927_ISA_IO_OFFSET) |
45 | #define RBTX4927_RTL_8019_IRQ (TX4927_IRQ_PIC_BEG + 5) | 68 | #define RBTX4927_RTL_8019_IRQ (TX4927_IRQ_PIC_BEG + 5) |
46 | 69 | ||
47 | int toshiba_rbtx4927_irq_nested(int sw_irq); | 70 | int toshiba_rbtx4927_irq_nested(int sw_irq); |