dummy help on io

From: Gene Heskett (gene.heskett_at_verizon.net)
Date: 12/13/04

  • Next message: Marcin Gibuła: "Re: STIr4200 warnings"
    To: linux-kernel@vger.kernel.org
    Date:	Sun, 12 Dec 2004 18:54:48 -0500
    
    

    Greetings;

    I've ordered the device drivers book from O-Reilly but it will be
    a few days getting here.

    I'm trying to mod the GPL'd archive PIO.tar.gz, so it will build a
    driver for a pci card with 3 each 82C55's on it, and I *think* I'd
    have it working with the first of the 3 chips if I could figure
    out what to do about using the call "iopl(3);" on installing
    the driver, and conversely an "iopl(0);" at rmmod time.

    I'm told this is required to gain access perms to addresses above
    0x3FF. The call "ioperm" is used below that I've been told.

    Unforch, an "insmod PIO io=0xf100" (where the card is addressed
    at currently) is spitting out an "unresolved symbol" error for the
    iopl call.

    Being a rank beginner at "pc" hardware, can someone give me a
    checklist of things I've probably left out please?

    Kernel is 2.4.25-adeos. With the module "rtai" inserted when emc
    is running for realtime control purposes.

    The card is pure hardware, no bios, only address decoding that
    can set the base address anyplace in the first 64k of address
    space in a step of 4 sequence from 0xnn00-0xnn0C for the 4
    ports of chip 1, 0xnn10-1C for chip 2, etc, where the nn is the
    dipswitch setting.

    -- 
    Cheers, Gene
    "There are four boxes to be used in defense of liberty:
     soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author)
    99.30% setiathome rank, not too shabby for a WV hillbilly
    Yahoo.com attorneys please note, additions to this message
    by Gene Heskett are:
    Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Marcin Gibuła: "Re: STIr4200 warnings"

    Relevant Pages

    • Re: Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?]
      ... Some of them do dominate a market. ... implementing a specific grafics standard. ... grafic chips just need a driver - but they ... spent tons of research on the chip development as well, ...
      (Linux-Kernel)
    • Re: [PATCH 3/3] wm97xx-core: Support use as a wakeup source
      ... the features of the driver depend on exactly how the chip is connected ... It's probably worth pointing out here that this part of the WM97xx ... the suspend_mode configuration to know how to wake. ...
      (Linux-Kernel)
    • Re: Can i8042prt.sys crashes be avoided?
      ... it sounds like malfunctioning hardware to me. ... most laptops have an Fn+key ... If the i8042 chip did not overheat then I have ... > Is there really no way for the driver to command the chip to reset itself? ...
      (microsoft.public.development.device.drivers)
    • Re: [PATCH] I2C fixes for 2.6.10-rc2
      ... I2C: add adm1026 chip driver ... Here is the revised adm1026 driver port for kernel 2.6.10-rc2. ... No way is currently provided to turn on DAC-mediated automatic fan control. ... +static ssize_t show_in(struct device *dev, char *buf, int nr) ...
      (Linux-Kernel)
    • [PATCH] I2C: New lm92 chip driver
      ... This is a new i2c chip driver named lm92. ... left-justified in 16-bit registers. ...
      (Linux-Kernel)