Date: Tue, 16 Jan 1996 01:49:21 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Cc: scott@patton.com Subject: Re: Request examples of using outb() in inb()in program. Message-ID: <199601160049.BAA14557@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.91.960115143559.2940B-100000@sl-001.sl.cybercomm.net> from "Sujal Patel" at Jan 15, 96 02:39:44 pm
next in thread | previous in thread | raw e-mail | index | archive | help
As Sujal Patel wrote: > > You need to open /dev/io before you access the ports (O_RDONLY is rnough > to read and write any port). You can also use the KDENABIO ioctl on > /dev/console (probably the preferred way, but /dev/io is easier :) KDENABIO is not the preferred way, it's the traditional way. It requires root priv's (as opposed to /dev/io which is subject to normal file access constraints), and it's only available if your kernel does have either syscons or pcvt configured. Both drivers are optional however. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601160049.BAA14557>