comp.lang.ada
 help / color / mirror / Atom feed
* Writing to I/O ports in Linux
@ 2002-03-15 18:04 Bj�rn Lundin
  2002-03-15 19:23 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: Bj�rn Lundin @ 2002-03-15 18:04 UTC (permalink / raw)


Hi!
I've written a package that gets input from the gameport of a PC
running Linux. To get information from the port I use the 'inb' function
 i C. But I don't like to interface with C. 

Is there an alternative in Ada to read from ports? 
I looked in the RM and Annex C 1.11.5 (Implementaion advice) states 

Examples of such instructions include: 
  .
  .
  .   
Direct operations on I/O ports.

I wonder if this is implemented in Gnat 3.13p?

regards,
/Bj�rn



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Writing to I/O ports in Linux
  2002-03-15 18:04 Writing to I/O ports in Linux Bj�rn Lundin
@ 2002-03-15 19:23 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2002-03-15 19:23 UTC (permalink / raw)


Bj�rn Lundin <bjorn.lundin@swipnet.se> writes:

> I wonder if this is implemented in Gnat 3.13p?

Use machine code insertions.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-15 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 18:04 Writing to I/O ports in Linux Bj�rn Lundin
2002-03-15 19:23 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox