delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/21/01:34:07

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: 21 Sep 2001 05:47:25 -0000
Message-ID: <20010921054725.8957.qmail@mailweb25.rediffmail.com>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, cygwin-developers AT cygein DOT com
Subject: asm/io.h where can I find this ??
From: "abhishek gupta" <abhi_iit AT rediffmail DOT com>

Hello and Thanks you for openning this message.

I'm working on a program which write to a serial port and reads from it.

works under linux red hat, using the command line :
-> gcc myprog.c -o myprog -O2
and
->/myrep/myprog

but when I try to compile it under cygwin )))-: it doesn't works and show=
s:-

asm/io.h: No such file or directory

this is the lib I need

ORIGINAL LINE     : #include <asm/io.h>

where can I find the the equivalent of red hat "asm/io.h"
and where sould I copy it under cygwin ?

The following is myprog.c (fastly commented) source it will be usefull to=

understand what I say.

Thank you

Regards =

Abhishek

/*----Start of myprog source -------*/

#include <stdio.h>
#include <unistd.h>
#include <asm/io.h>
#define BASEPORT 0x378 =


int main()
{
    int i=3D0;
    char c=3D'A';
    ioperm (0x378,1,1);
    for (i;i<10;i++) {
       outb(c,0x378);
       printf("%c\n",inb(0x378));
       printf("%c\n",c);
       c++;
    }
    ioperm (i,1,0);
}  =


/*----End of myprog source -------*/




 =





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019