how to talk to the serial and parallel ports through a C

Bernard Dugas bernard.dugas at is-production.com
Wed Jun 11 01:07:58 PDT 2003


Hi,

I also did some programming on serial port to control pins with a c
program under linux, but I didn't found any simple way to port it under
freebsd. Any hint ?

For instance, I need the equivalent of :
inb(adr)
outb(val,adr)
iopl(n)
ioperm(adr)

from <sys/io.h> and <stdio.h> in linux.

Best regard,
Bernard Dugas

> ------------------------------
> 
> Message: 32
> Date: Mon, 09 Jun 2003 09:44:28 -0700
> From: Dan Malaby <dan at peritek.com>
> Subject: how to talk to the serial and parallel ports through a C
>         program
> To: freebsd-questions at freebsd.org
> Message-ID: <5.1.0.14.2.20030609093752.00a69d20 at pop3.peritek.com>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> 
> I was wondering if there was a good place to go to get programing examples
> on how to
> talk to the serial and parallel ports. I have looked in the developers
> handbook but have not
> any luck finding what I want.
> 
> Any pointers would be appreciated
> 
> Thanks
> 
> Daniel Malaby           voice:(510) 531-6500
> Peritek Corp.           fax:   (510) 530-8563
> 5550 Redwood Road       email: dan at peritek.com
> Oakland, CA 94619
> 
> ------------------------------


-- 

 __________ Bernard DUGAS ________________________________________
|                                                                 |
|  Technoparc Pays de Gex  mailto:bernard.dugas at is-production.com |
|  30 Rue Auguste Piccard           Tel.: +33 450 205 105         |
| FR 01630 St Genis Pouilly         Fax : +33 450 205 106         |
|_________________________________________________________________|




More information about the freebsd-questions mailing list