delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
>Received: | from port.de (oe AT ute DOT port DOT de [194.173.33.3]) |
by ute.port.de (8.8.8/8.8.8) with ESMTP id NAA00633; | |
Thu, 28 Oct 1999 13:19:52 +0200 | |
Message-ID: | <38183157.402AC1A7@port.de> |
Date: | Thu, 28 Oct 1999 13:19:51 +0200 |
From: | Heinz-Juergen Oertel <oe AT port DOT de> |
Organization: | port GmbH Germany |
X-Mailer: | Mozilla 4.5 [en] (X11; I; Linux 2.0.36 i586) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | "'Cygwin mailing list'" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: accessing hardware |
References: | <1BC4E8549E84D311BDDD00001CC00D98342126 AT mail DOT hrz DOT uni-siegen DOT de> |
--------------55D1F4D83142766B747AFDEE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Schmidt, Dieter" wrote: > > Dear Sirs and Madams, > > I want to adress hardware in my PC using the cygwin-compiler. > Is there any instruction like outputb(word,byte) in the Turbo C > compiler available in cygwin ? > > Yours sincerely > > Dieter Schmidt try this -- Heinz --------------55D1F4D83142766B747AFDEE Content-Type: text/plain; charset=us-ascii; name="portio.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="portio.h" /* port io functions for gcc or egcs - useable for Cygwin targets */ static inline int inportb( int port ) { unsigned char value; __asm__ volatile ("inb %1,%0" : "=a" (value) : "d" ((unsigned short)port)); return value; } static inline void outportb( unsigned short int port, unsigned char val ) { __asm__ volatile ( "outb %0,%1\n" : : "a" (val), "d" (port) ); } --------------55D1F4D83142766B747AFDEE Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------55D1F4D83142766B747AFDEE--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |