Date: Thu, 6 May 1999 09:28:59 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: CyberPsychotic <fygrave@tigerteam.net> Cc: Julian Elischer <julian@whistle.com>, freebsd-hackers@FreeBSD.ORG, tech@openbsd.org Subject: Re: io ports reading/writing Message-ID: <Pine.BSF.4.05.9905060928430.411-100000@herring.nlsystems.com> In-Reply-To: <Pine.GSO.4.05.9905060918170.632-100000@kyrnet.kg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 May 1999, CyberPsychotic wrote: > ~ > I think you just open /dev/io and use inb/outb. Be warned that this will > ~ > only work on i386 - the alpha uses a library, libio, to emulate inb/outb > ~ > in user programs. > ~ > ~ Also beware the arguments are in the oposite order to linux in outb() > ~ > > oops.. I actually wasn't able to find inb/outb routines in standard-linked > library at all. Should I link any external routines? (as for now I just made > them of my own, using inline asm directives). There are inline macros in <machine/cpufunc.h> -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905060928430.411-100000>