Lines Matching +full:0 +full:x68000
32 * Function 0 is an IDE controller. It is identical to a PC87415 IDE
54 * 0x5A: FDC, SP1, IDE1, SP2, IDE2, PAR, Reserved, P92
55 * 0x5B: RTC, 8259, 8254, DMA1, DMA2, KBC, P61, APM
100 outb (OCW3_POLL,IC_PIC1+0); in superio_interrupt()
102 results = inb(IC_PIC1+0); in superio_interrupt()
105 * Bit 7: 1 = active Interrupt; 0 = no Interrupt pending in superio_interrupt()
107 * Bits 2-0: highest priority, active requesting interrupt ID (0-7) in superio_interrupt()
109 if ((results & 0x80) == 0) { in superio_interrupt()
118 local_irq = results & 0x0f; in superio_interrupt()
129 outb(OCW3_ISR,IC_PIC1+0); in superio_interrupt()
130 results = inb(IC_PIC1+0); in superio_interrupt()
131 if ((results & 0x80) == 0) { /* if ISR7 not set: spurious */ in superio_interrupt()
143 outb((OCW2_SEOI|local_irq),IC_PIC1 + 0); in superio_interrupt()
173 printk(KERN_INFO PFX "Serial port 1 at 0x%x\n", sio->sp1_base); in superio_init()
177 printk(KERN_INFO PFX "Serial port 2 at 0x%x\n", sio->sp2_base); in superio_init()
181 printk(KERN_INFO PFX "Parallel port at 0x%x\n", sio->pp_base); in superio_init()
185 printk(KERN_INFO PFX "Floppy controller at 0x%x\n", sio->fdc_base); in superio_init()
188 printk(KERN_INFO PFX "ACPI at 0x%x\n", sio->acpi_base); in superio_init()
190 request_region (IC_PIC1, 0x1f, "pic1"); in superio_init()
191 request_region (IC_PIC2, 0x1f, "pic2"); in superio_init()
192 request_region (sio->acpi_base, 0x1f, "acpi"); in superio_init()
201 BUG_ON(ret < 0); /* not too much we can do about this... */ in superio_init()
212 /* 0x64 - 0x67 : in superio_init()
216 TRIGGER_1 == 0x82 USB & IDE level triggered, rest to edge in superio_init()
218 pci_write_config_dword (pdev, 0x64, 0x82000000U); in superio_init()
220 /* 0x68 - 0x6b : in superio_init()
221 TRIGGER_2 == 0x00 all edge triggered (not used) in superio_init()
222 CFG_IR_SER == 0x43 SerPort1 = IRQ3, SerPort2 = IRQ4 in superio_init()
223 CFG_IR_PF == 0x65 ParPort = IRQ5, FloppyCtlr = IRQ6 in superio_init()
224 CFG_IR_IDE == 0x07 IDE1 = IRQ7, reserved in superio_init()
226 pci_write_config_dword (pdev, TRIGGER_2, 0x07654300U); in superio_init()
228 /* 0x6c - 0x6f : in superio_init()
229 CFG_IR_INTAB == 0x00 in superio_init()
230 CFG_IR_INTCD == 0x10 USB = IRQ1 in superio_init()
231 CFG_IR_PS2 == 0x00 in superio_init()
232 CFG_IR_FXBUS == 0x00 in superio_init()
234 pci_write_config_dword (pdev, CFG_IR_INTAB, 0x00001000U); in superio_init()
236 /* 0x70 - 0x73 : in superio_init()
237 CFG_IR_USB == 0x00 not used. USB is connected to INTD. in superio_init()
238 CFG_IR_ACPI == 0x00 not used. in superio_init()
239 DMA Priority == 0x4c88 Power on default value. NFC. in superio_init()
241 pci_write_config_dword (pdev, CFG_IR_USB, 0x4c880000U); in superio_init()
244 outb (0x11,IC_PIC1+0); /* ICW1: ICW4 write req | ICW1 */ in superio_init()
245 outb (0x00,IC_PIC1+1); /* ICW2: interrupt vector table - not used */ in superio_init()
246 outb (0x04,IC_PIC1+1); /* ICW3: Cascade */ in superio_init()
247 outb (0x01,IC_PIC1+1); /* ICW4: x86 mode */ in superio_init()
250 outb (0xff,IC_PIC1+1); /* OCW1: Mask all interrupts */ in superio_init()
251 outb (0xc2,IC_PIC1+0); /* OCW2: priority (3-7,0-2) */ in superio_init()
254 outb (0x11,IC_PIC2+0); /* ICW1: ICW4 write req | ICW1 */ in superio_init()
255 outb (0x00,IC_PIC2+1); /* ICW2: N/A */ in superio_init()
256 outb (0x02,IC_PIC2+1); /* ICW3: Slave ID code */ in superio_init()
257 outb (0x01,IC_PIC2+1); /* ICW4: x86 mode */ in superio_init()
260 outb (0xff,IC_PIC1+1); /* OCW1: Mask all interrupts */ in superio_init()
261 outb (0x68,IC_PIC1+0); /* OCW3: OCW3 select | ESMM | SMM */ in superio_init()
264 outb (0xff,IC_PIC1+1); in superio_init()
273 if (request_irq(pdev->irq, superio_interrupt, 0, in superio_init()
347 printk(KERN_DEBUG "superio_fixup_irq(%s) ven 0x%x dev 0x%x from %ps\n", in superio_fixup_irq()
350 __builtin_return_address(0)); in superio_fixup_irq()
353 for (i = 0; i < 16; i++) { in superio_fixup_irq()
365 case PCI_DEVICE_ID_NS_87415: /* Function 0 */ in superio_fixup_irq()
390 memset(&serial_port, 0, sizeof(serial_port)); in superio_serial_init()
400 serial_port.line = 0; in superio_serial_init()
402 if (retval < 0) { in superio_serial_init()
403 printk(KERN_WARNING PFX "Register Serial #0 failed.\n"); in superio_serial_init()
412 if (retval < 0) in superio_serial_init()
422 0 /*base_hi*/, in superio_parport_init()
426 0 /* shared irq flags */)) in superio_parport_init()
437 pdev->class |= 0x5; in superio_fixup_pci()
441 printk("PCI: Enabled native mode for NS87415 (pif=0x%x)\n", prog); in superio_fixup_pci()
452 ** superio_probe(00:0e.0) ven 0x100b dev 0x2 sv 0x0 sd 0x0 class 0x1018a in superio_probe()
453 ** superio_probe(00:0e.1) ven 0x100b dev 0xe sv 0x0 sd 0x0 class 0x68000 in superio_probe()
454 ** superio_probe(00:0e.2) ven 0x100b dev 0x12 sv 0x0 sd 0x0 class 0xc0310 in superio_probe()
456 DBG_INIT("superio_probe(%s) ven 0x%x dev 0x%x sv 0x%x sd 0x%x class 0x%x\n", in superio_probe()
468 return 0; in superio_probe()
469 } else if (dev->device == PCI_DEVICE_ID_NS_87415) { /* Function 0 */ in superio_probe()
485 { 0, }