Date: Tue, 16 Jan 1996 13:08:49 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: scott@patton.com (Scott Whittle) Cc: hackers@FreeBSD.org Subject: Re: Request examples of using outb() in inb()in program. Message-ID: <199601160238.NAA27039@genesis.atrad.adelaide.edu.au> In-Reply-To: <199601151554.KAA23095@emma.patton.com> from "Scott Whittle" at Jan 15, 96 10:54:30 am
next in thread | previous in thread | raw e-mail | index | archive | help
Scott Whittle stands accused of saying: > > 'Lo all - > I recently saw a thread on I/O at the port level using outb() and inb(). > Would someone post (or email) some source showing the use of each. > > I wrote a small program, which complied fine, but when I ran it (as root) > it puked big time. I'm not into the frustration thing, so I figure I'd ask > those who know. :) How about you send us your source so we can pick over it? Here's an example : open("/dev/io",O_RDONLY,0); i = inb(0x300); /* fiddle with port 0x300 */ outb(0x300,i+1); > Scott Whittle email: scott@patton.com -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601160238.NAA27039>