[PARPORT] SuperIO-4a patch for linux-2.3.99pre6

From: Gunther Mayer (gunther.mayer@braunschweig.okersurf.de)
Date: Sat May 06 2000 - 16:00:32 EDT

  • Next message: Ezio Pillan: "[PARPORT] Scsi CDROM mount"

    Chris Rankin wrote:

    > Woooooo HOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!! :-))))))))))))
    >
    > May 7 00:52:30 WellHouse kernel: SYBA multi-IO card detected (IRQ 9)
    > May 7 00:52:30 WellHouse kernel: control port at 0xf844
    > May 7 00:52:30 WellHouse kernel: EFER at 0xfa50
    > May 7 00:52:30 WellHouse kernel: EFIR at 0xfa51
    > May 7 00:52:30 WellHouse kernel: EFDR at 0xfa52
    > May 7 00:52:30 WellHouse kernel: CR0 = 0x04
    > May 7 00:52:30 WellHouse kernel: CR9 = 0x89
    > May 7 00:52:30 WellHouse kernel: config: a=0x1f, b=0x00
    > May 7 00:52:30 WellHouse kernel: Mode: 0x00
    > ...May 7 00:57:01 WellHouse kernel: parport1: PC-style at 0xf878, irq 9 [SPP,PS2,EPP]

    >
    >
    > The only problem is that I can't get the card to do ECP yet ... if I
    > try then the card comes up as SPP only.

    Did you program 0x0c into cr0?
    Perhaps the control port 0xf844 is just responsible
    for the PCI address decode range (that must be expanded (+0x400) for ECP)?

    I have a ISA add-on card with:
    May 6 20:53:40 linux kernel: Winbond chip at EFER=0x250 key=0x89 devid=ff devrev=2f oldid=89
    May 6 20:53:40 linux kernel: Winbond chip type 83787IF
    May 6 20:53:40 linux kernel: FixUP GE508
    May 6 20:53:40 linux kernel: Winbond 83877xx LPT Config cr0=0c cr3=30 cr4=00 cr5=00 cr9=89 cr17=ff cr23=30
    cr26=00 cr27=00 cr31=00
    May 6 20:53:40 linux kernel: Winbond 83877xx registers are ff from 0xf5, zero from 0xff
    May 6 20:53:40 linux kernel: W83877 LPT Config: io=0x0378, irq=jumpered, dma=jumpered, fifo threshold=0
    May 6 20:53:40 linux kernel: W83877 LPT Config: enabled=yes power-down=no
    May 6 20:53:40 linux kernel: W83877 LPT Config: Port mode=ECP+EPP, EPP version =1.7
    May 6 20:53:40 linux kernel: W83787 LPT Bidir mode=disabled
    May 6 20:53:40 linux kernel: W83xx7 automatic power down disabled
    ...
    May 6 20:53:40 linux kernel: 0x378: FIFO is 16 bytes
    May 6 20:53:40 linux kernel: 0x378: writeIntrThreshold is 16
    May 6 20:53:40 linux kernel: 0x378: readIntrThreshold is 16
    May 6 20:53:40 linux kernel: 0x378: PWord is 8 bits
    May 6 20:53:40 linux kernel: 0x378: Interrupts are ISA-Pulses
    May 6 20:53:40 linux kernel: 0x378: ECP port cfgA=0x10 cfgB=0x40
    May 6 20:53:40 linux kernel: 0x378: ECP settings irq=<none or set by other means> dma=<none or set by other
    means>
    May 6 20:53:40 linux kernel: parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP,ECP]
    May 6 20:53:40 linux kernel: parport0: irq 5 detected

    My work-in-progress SuperIO-4a patch can be downloaded from
    http://home.t-online.de/home/gunther.mayer/gmpatch-2399p6-superio_4a

    Changelog:
    - detect SYBA 1xECP, 0x0783 (chris)
    - detect w83787if
    - fixes and enhancements for w83877/787 (stef and me)
    - fixup for my defective 83787if ISA card
    - some pretty printking

    With this patch I could enable ECP on my ISA card, where the mode select jumpers(!) seem
    to be non-functioning...

    I think we need winbond_check1(f800+0x250,88 or 89) for your card...

    Regards, Gunther

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Sat May 06 2000 - 16:15:20 EDT