Re: Direct control of a device??

From: Brian Gerst (bgerst@quark.vpplus.com)
Date: Tue Jul 18 2000 - 11:34:45 EST


George Anzinger wrote:
>
> Is there any way a linux user app can be given direct access to
> hardware? For example:
> * a simple driver is loaded.
> * the user land app sends an ioctl() to the driver.
> * the driver returns the beginning physical address of the pci device
> we're interested in.
> * the user app calls something like "ioremap" to memory map the
> registers of that device into its own space in order to be able to
> directly do memory cycles to the device.
>
> Thanks,

Do the ioremap in kernel space, then use mmap to export the registers to
user space. An example of this is Device3Dfx, found at
http://linux.3dfx.com/open_source/download/voodoo3_banshee.htm

--

Brian Gerst

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:11 EST