Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 1996 15:49:34 +0100 (MET)
From:      sos@FreeBSD.ORG
To:        ts@polynet.lviv.ua (Slavik Terletsky)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Q: How to read hardware port ?
Message-ID:  <199611081449.PAA00718@ra.dkuug.dk>
In-Reply-To: <328344CB.167E@polynet.lviv.ua> from "Slavik Terletsky" at Nov 8, 96 04:33:47 pm

next in thread | previous in thread | raw e-mail | index | archive | help
In reply to Slavik Terletsky who wrote:
> 
> Hi
> How can i read hardware port in Unix ?
> Something like this: inport(#), inportb(#);
> Thanx

Open /dev/io and use the inb/outb etc functions, you must be
root though for this to work (with good reason).


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Soren Schmidt             (sos@FreeBSD.org)             FreeBSD Core Team
               So much code to hack -- so little time.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611081449.PAA00718>