On Tue, 26 Jun 2001, Eric Norum wrote:
> Bill Lavender wrote:
> .
> .
> .
> > Can you send me a copy of the changes that you had to make to talk to the
> > Cyberresearch boards? It would be useful to see some examples of what is
> > required to talk to real devices under Linux via ioccore.
>
> For simple I/O (no interrupts, no DMA) I've found it easiest to just use
> inb, outb, etc. right from the user level. No kernel modules and no
> linux drivers required. I start such applications from a setuid-root
> wrapper which allocates the appropriate I/O ports then setuid's back to
> the real uid and exec's the application. In this way any user can
> safely play with the device without needing root priviliges.
>
>
Yep, that is what I am doing now. Very simple using inb and outb.
The only real "issue" is the compile time -ansi -pedantic which
breaks the macros in /usr/include/asm/io.h, but I was lazy and just
wrote a simple wrapper library. for this. Its cleaner in ioccore
since that app can run as root so an iopl(3) does it all.
- John
--
---
John Quintana Phone:630-252-0221
Northwestern University FAX: 630-252-0226
DND-CAT email: [email protected]
APS/ANL Building 432/A008
9700 South Cass Avenue
Argonne, IL 60439
- References:
- Re: IOC Controllers Under Linux (or IOC's for < $500) Eric Norum
- Navigate by Date:
- Prev:
3.14 not 3.13 John Quintana
- Next:
serial port communication Weixing Cheng
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: IOC Controllers Under Linux (or IOC's for < $500) Eric Norum
- Next:
3.14 not 3.13 John Quintana
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|