|
@@ -249,3 +249,130 @@ cia_cab_init_pci(void)
|
|
|
* The PC164 and LX164 have 19 PCI interrupts, four from each of the four
|
|
|
* PCI slots, the SIO, PCI/IDE, and USB.
|
|
|
*
|
|
|
+ * Each of the interrupts can be individually masked. This is
|
|
|
+ * accomplished by setting the appropriate bit in the mask register.
|
|
|
+ * A bit is set by writing a "1" to the desired position in the mask
|
|
|
+ * register and cleared by writing a "0". There are 3 mask registers
|
|
|
+ * located at ISA address 804h, 805h and 806h.
|
|
|
+ *
|
|
|
+ * An I/O read at ISA address 804h, 805h, 806h will return the
|
|
|
+ * state of the 11 PCI interrupts and not the state of the MASKED
|
|
|
+ * interrupts.
|
|
|
+ *
|
|
|
+ * Note: A write to I/O 804h, 805h, and 806h the mask register will be
|
|
|
+ * updated.
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * ISA DATA<7:0>
|
|
|
+ * ISA +--------------------------------------------------------------+
|
|
|
+ * ADDRESS | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
|
|
+ * +==============================================================+
|
|
|
+ * 0x804 | INTB0 | USB | IDE | SIO | INTA3 |INTA2 | INTA1 | INTA0 |
|
|
|
+ * +--------------------------------------------------------------+
|
|
|
+ * 0x805 | INTD0 | INTC3 | INTC2 | INTC1 | INTC0 |INTB3 | INTB2 | INTB1 |
|
|
|
+ * +--------------------------------------------------------------+
|
|
|
+ * 0x806 | Rsrv | Rsrv | Rsrv | Rsrv | Rsrv |INTD3 | INTD2 | INTD1 |
|
|
|
+ * +--------------------------------------------------------------+
|
|
|
+ * * Rsrv = reserved bits
|
|
|
+ * Note: The mask register is write-only.
|
|
|
+ *
|
|
|
+ * IdSel
|
|
|
+ * 5 32 bit PCI option slot 2
|
|
|
+ * 6 64 bit PCI option slot 0
|
|
|
+ * 7 64 bit PCI option slot 1
|
|
|
+ * 8 Saturn I/O
|
|
|
+ * 9 32 bit PCI option slot 3
|
|
|
+ * 10 USB
|
|
|
+ * 11 IDE
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+static inline int __init
|
|
|
+alphapc164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
|
|
|
+{
|
|
|
+ static char irq_tab[7][5] __initdata = {
|
|
|
+ /*INT INTA INTB INTC INTD */
|
|
|
+ { 16+2, 16+2, 16+9, 16+13, 16+17}, /* IdSel 5, slot 2, J20 */
|
|
|
+ { 16+0, 16+0, 16+7, 16+11, 16+15}, /* IdSel 6, slot 0, J29 */
|
|
|
+ { 16+1, 16+1, 16+8, 16+12, 16+16}, /* IdSel 7, slot 1, J26 */
|
|
|
+ { -1, -1, -1, -1, -1}, /* IdSel 8, SIO */
|
|
|
+ { 16+3, 16+3, 16+10, 16+14, 16+18}, /* IdSel 9, slot 3, J19 */
|
|
|
+ { 16+6, 16+6, 16+6, 16+6, 16+6}, /* IdSel 10, USB */
|
|
|
+ { 16+5, 16+5, 16+5, 16+5, 16+5} /* IdSel 11, IDE */
|
|
|
+ };
|
|
|
+ const long min_idsel = 5, max_idsel = 11, irqs_per_slot = 5;
|
|
|
+ return COMMON_TABLE_LOOKUP;
|
|
|
+}
|
|
|
+
|
|
|
+static inline void __init
|
|
|
+alphapc164_init_pci(void)
|
|
|
+{
|
|
|
+ cia_init_pci();
|
|
|
+ SMC93x_Init();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
+ * The System Vector
|
|
|
+ */
|
|
|
+
|
|
|
+#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_CABRIOLET)
|
|
|
+struct alpha_machine_vector cabriolet_mv __initmv = {
|
|
|
+ .vector_name = "Cabriolet",
|
|
|
+ DO_EV4_MMU,
|
|
|
+ DO_DEFAULT_RTC,
|
|
|
+ DO_APECS_IO,
|
|
|
+ .machine_check = apecs_machine_check,
|
|
|
+ .max_isa_dma_address = ALPHA_MAX_ISA_DMA_ADDRESS,
|
|
|
+ .min_io_address = DEFAULT_IO_BASE,
|
|
|
+ .min_mem_address = APECS_AND_LCA_DEFAULT_MEM_BASE,
|
|
|
+
|
|
|
+ .nr_irqs = 35,
|
|
|
+ .device_interrupt = cabriolet_device_interrupt,
|
|
|
+
|
|
|
+ .init_arch = apecs_init_arch,
|
|
|
+ .init_irq = cabriolet_init_irq,
|
|
|
+ .init_rtc = common_init_rtc,
|
|
|
+ .init_pci = cabriolet_init_pci,
|
|
|
+ .pci_map_irq = cabriolet_map_irq,
|
|
|
+ .pci_swizzle = common_swizzle,
|
|
|
+};
|
|
|
+#ifndef CONFIG_ALPHA_EB64P
|
|
|
+ALIAS_MV(cabriolet)
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EB164)
|
|
|
+struct alpha_machine_vector eb164_mv __initmv = {
|
|
|
+ .vector_name = "EB164",
|
|
|
+ DO_EV5_MMU,
|
|
|
+ DO_DEFAULT_RTC,
|
|
|
+ DO_CIA_IO,
|
|
|
+ .machine_check = cia_machine_check,
|
|
|
+ .max_isa_dma_address = ALPHA_MAX_ISA_DMA_ADDRESS,
|
|
|
+ .min_io_address = DEFAULT_IO_BASE,
|
|
|
+ .min_mem_address = CIA_DEFAULT_MEM_BASE,
|
|
|
+
|
|
|
+ .nr_irqs = 35,
|
|
|
+ .device_interrupt = cabriolet_device_interrupt,
|
|
|
+
|
|
|
+ .init_arch = cia_init_arch,
|
|
|
+ .init_irq = cabriolet_init_irq,
|
|
|
+ .init_rtc = common_init_rtc,
|
|
|
+ .init_pci = cia_cab_init_pci,
|
|
|
+ .kill_arch = cia_kill_arch,
|
|
|
+ .pci_map_irq = cabriolet_map_irq,
|
|
|
+ .pci_swizzle = common_swizzle,
|
|
|
+};
|
|
|
+ALIAS_MV(eb164)
|
|
|
+#endif
|
|
|
+
|
|
|
+#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EB66P)
|
|
|
+struct alpha_machine_vector eb66p_mv __initmv = {
|
|
|
+ .vector_name = "EB66+",
|
|
|
+ DO_EV4_MMU,
|
|
|
+ DO_DEFAULT_RTC,
|
|
|
+ DO_LCA_IO,
|
|
|
+ .machine_check = lca_machine_check,
|
|
|
+ .max_isa_dma_address = ALPHA_MAX_ISA_DMA_ADDRESS,
|
|
|
+ .min_io_address = DEFAULT_IO_BASE,
|