Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Parallel port programming: i386 only?
@ 1998-12-31  5:00 John Eley
  1999-01-03  5:00 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: John Eley @ 1998-12-31  5:00 UTC (permalink / raw)


I've been trying to write some routines for accessing the parallel port
on my AS200. I like to make little experimental boards and the parallel
port is usually easy to use (at least on the PC).

I read the IO Programming mini faq and tried to use ioperm() to access
the port. However, after getting implicit declaration errors I looked
and found that ioperm is not in unistd.h on the alpha. After further
research (by searching deja news) it seems that the low level io
routines like ioperm are i386 only. Is this the case? If so how do I do
it on the alpha?

Thanks,

John Eley
John_Eley@niu.edu




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

* Re: Parallel port programming: i386 only?
  1998-12-31  5:00 Parallel port programming: i386 only? John Eley
@ 1999-01-03  5:00 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 1999-01-03  5:00 UTC (permalink / raw)


On Thu, 31 Dec 1998 15:29:12 -0600, John Eley <John_Eley@niu.edu> wrote:
>I read the IO Programming mini faq and tried to use ioperm() to access
>the port. However, after getting implicit declaration errors I looked
>and found that ioperm is not in unistd.h on the alpha. After further
>research (by searching deja news) it seems that the low level io
>routines like ioperm are i386 only. Is this the case? If so how do I do
>it on the alpha?

You can use /dev/port to access the I/O ports.  Just mmap() it and
read/write to the offset corresponding to the appropriate port.

-- 
Scott Wood	http://darkflame.ml.org/
"In your case, a few 'find / -uid 1000 rm {} \;' are very healthy
as well... for this newsgroup, I mean..." 
	-s.c.sprong@student.utwente.nl on comp.unix.bsd.freebsd.misc



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

end of thread, other threads:[~1999-01-03  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-31  5:00 Parallel port programming: i386 only? John Eley
1999-01-03  5:00 ` Scott Wood

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