From owner-freebsd-hackers Fri Nov 8 06:50:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA07137 for hackers-outgoing; Fri, 8 Nov 1996 06:50:54 -0800 (PST) Received: from ra.dkuug.dk (ra.dkuug.dk [193.88.44.193]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA07131 for ; Fri, 8 Nov 1996 06:50:49 -0800 (PST) Received: (from sos@localhost) by ra.dkuug.dk (8.6.12/8.6.12) id PAA00718; Fri, 8 Nov 1996 15:49:34 +0100 Message-Id: <199611081449.PAA00718@ra.dkuug.dk> Subject: Re: Q: How to read hardware port ? To: ts@polynet.lviv.ua (Slavik Terletsky) Date: Fri, 8 Nov 1996 15:49:34 +0100 (MET) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <328344CB.167E@polynet.lviv.ua> from "Slavik Terletsky" at Nov 8, 96 04:33:47 pm From: sos@FreeBSD.ORG Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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.