How to directly access ISA bus registers? (Solved)
How to directly access ISA bus registers? (Solved)
Hi all,
I have a Pentium P3 with ISA bus that has a 24 line IO card - it is accessed by a Clipper application that talks directly to the card ports in memory space - like 110hex
I would like to re-do this thing on Puppy Lucid using gcc - but as far as I can see we have obeyed the Gods of Redmond and removed the inport and outport functions from the C Libraries ?
Two questions - does anyone suggest a workaround to give a program this sort of access to memory space - and is there a function listing for the Puppy C Libraries ?
Thanks in advance,
Bob.
I have a Pentium P3 with ISA bus that has a 24 line IO card - it is accessed by a Clipper application that talks directly to the card ports in memory space - like 110hex
I would like to re-do this thing on Puppy Lucid using gcc - but as far as I can see we have obeyed the Gods of Redmond and removed the inport and outport functions from the C Libraries ?
Two questions - does anyone suggest a workaround to give a program this sort of access to memory space - and is there a function listing for the Puppy C Libraries ?
Thanks in advance,
Bob.
Have you lloked at Linux I/O port programming mini-HOWTO?
I/O Port access
Thanks Muggins - as you would have seen in your article they talk about the inport family of routines as the best way to do it.
As you would have read in my OP these routines seem to be missing from the Puppy implementation of gcc ?
Or do you know which library they are in ?
Cheers,
Bob
As you would have read in my OP these routines seem to be missing from the Puppy implementation of gcc ?
Or do you know which library they are in ?
Cheers,
Bob
Citybook, it was I who edited the title of your first post. The idea is to grab the interest of someone who knows the answer. If I got it wrong, feel free to edit it for accuracy.
I believe Puppy uses a cut-down version of Bash. Could that be the cause of your problem? I'm not a programmer so I'm not familiar with it.
I believe Puppy uses a cut-down version of Bash. Could that be the cause of your problem? I'm not a programmer so I'm not familiar with it.
ISA register access
Hi Flash, no problem with changing the title - yours is probably better.
Don't know about the Bash thing - I am new to Puppy - you could be right.
Would welcome input from folks who know about this.
Cheers,
Bob.
Don't know about the Bash thing - I am new to Puppy - you could be right.
Would welcome input from folks who know about this.
Cheers,
Bob.
I'd look first at the old isapnptools to see if they contain anything useful.
The contents of ISA PnP registers are readable under:
/proc/bus/isapnp
Here's the homepage of isapnptools:
http://www.roestock.demon.co.uk/isapnptools/
You may find something useful in the Linux serial howto:
http://linux.about.com/od/srl_howto/a/hwtsrl_idx.htm
Ahh, just found this, Interfacing with the ISA bus:
http://linuxgazette.net/124/dutta.html
The contents of ISA PnP registers are readable under:
/proc/bus/isapnp
Here's the homepage of isapnptools:
http://www.roestock.demon.co.uk/isapnptools/
You may find something useful in the Linux serial howto:
http://linux.about.com/od/srl_howto/a/hwtsrl_idx.htm
Ahh, just found this, Interfacing with the ISA bus:
http://linuxgazette.net/124/dutta.html
Re: I/O Port access
inb/outb seem to have moved from asm/io.h to sys/io.h when using newer versions of the kernel headers.citybook wrote:Thanks Muggins - as you would have seen in your article they talk about the inport family of routines as the best way to do it.
As you would have read in my OP these routines seem to be missing from the Puppy implementation of gcc ?
Or do you know which library they are in ?
Bash does not have any relevance whatsoever.
ISA Port I/O
Thanks Amigo - I'll save those links.
Ibidem, that's what I was looking for - I included sys/io and it all works.
Do you by any chance have a link to a Puppy .lib function list ?
Thanks to all who answered,
cheers,
Bob.
Ibidem, that's what I was looking for - I included sys/io and it all works.
Do you by any chance have a link to a Puppy .lib function list ?
Thanks to all who answered,
cheers,
Bob.
Re: ISA Port I/O
The official list would be the headerscitybook wrote:Ibidem, that's what I was looking for - I included sys/io and it all works.
Do you by any chance have a link to a Puppy .lib function list ?
You can find all functions, though not the parameters, via
Code: Select all
nm /lib/libc.so.6
Glad it works now.
Accessing ISA ports
Yes Flash, I can do it now thank-you.
Thanks Ibidem - I will try that later - maybe work up a listing of my own.
Cheers,
Bob.
Thanks Ibidem - I will try that later - maybe work up a listing of my own.
Cheers,
Bob.