Date: Wed, 15 Mar 2000 07:29:15 +0500
Message-Id: <200003150229.HAA01143@midpec.com>
From: Prashant TR
To: Vincent Croquette
CC: djgpp AT delorie DOT com
In-reply-to: <00031416252308.00468@isnogood.lps.ens.fr> (message from Vincent
Croquette on Tue, 14 Mar 2000 16:23:22 +0100)
Subject: Re: how to port outw_p from linux ?
References: <00031416252308 DOT 00468 AT isnogood DOT lps DOT ens DOT fr>
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk
Vincent Croquette writes:
> I am porting a driver from linux and I have encountered the function
> outw_p
>
> apparently it does not exists in DJGPP, is there any simple way to replace it ?
Use this macro at the beginning of your program (or put this in some header
file).
#define outw_p(VALUE, PORT) outportb(PORT, VALUE);
In Linux, the arguments are reversed. The '_p' in outw_p is to give a small
pause which is just a jump statement to the next line. Most of the times, this
shouldn't matter.