Subject: Shark I/O
To: None <port-arm32@netbsd.org>
From: Stefan Zier <stefan@zier.com>
List: port-arm32
Date: 06/02/1999 15:48:01
hi folks!

i really need to access the parallel port directly from a piece of software
so i can easily send/receive bytes. can anyone provide me with a code
snippet that does something like that? i'm trying to port qcread, a program
that reads images from a connectix quickcam color in order to set up a web
cam.

what the program does right now for NetBSD/x86 is:

#include <sys/types.h>
#include <machine/sysarch.h>
#include <machine/pio.h> /* XXX x86-specific */
  if (i386_iopl(3) != 0) {
    perror("i386_iopl");
    return;

and then read/write to the port with inb and outb. does anyone have tips?

thanks in advance.

Stefan Zier

www.zier.com
Not yet ready.
stefan@zier.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/MC d? s+:+++ a-- C++ UB UL+ UH UO US UA UU P--
L+ E--- W+++ N+ o K- w+(++++) O-(--) M- V? PS+ PE++
Y PGP t+ 5- X+ R tv++ b+ DI- D++ G e+ h! r++ y++
------END GEEK CODE BLOCK------