www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/07/04:37:12

Message-ID: <E1FF8239A075D311AF7200A0C9D60AE30A67BA@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <SHargreaves AT acclaimstudios DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Portable code for accessing the hardware ports under DOS and
Linux
Date: Thu, 7 Oct 1999 09:21:55 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

Pablo M. Dotro writes:
> As far as I know, under DOS there are a couple of
> functions (inportb() and outportb() ) which handle 
> the access to the hardware ports (I need to access 
> port 0x220), but I do not know if they work under Linux...

Linux uses inb(), outb(), etc, but you have to do special
things first so that you will have permission to use the ports
at all. Fortunately for you, there is a HOWTO about this very
topic: see /usr/doc/HOWTO/mini/IO-Port-Programming for details.


	Shawn Hargreaves.

- Raw text -


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