Message-ID: From: Shawn Hargreaves 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) Content-Type: text/plain; charset="iso-8859-1" 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.