Article View: alt.uu.comp.os.linux.questions
Article #227Re: low level hardware access
From: Eric Reaburn
Date: Thu, 23 Apr 1998 00:00
Date: Thu, 23 Apr 1998 00:00
36 lines
2288 bytes
2288 bytes
On Wed, 22 Apr 1998 05:30:21 -0700, Lawrence Foard wrote: :>Eric Reaburn wrote: :>> :>> Dear Linux hackers, :>> how difficult (easy?) is it to get low-level program access to the serial and :>> parallel ports :>> on an average pentium PC running Red Hat? Ideally I would like DOS-like :>> direct access :>> to the hardware, but I guess that's not possible from a "normal" program in :>> Linux. :> :>The two commands to look at are ioperm for enabling port access. You :>need to setup some inline assembly for inport/outport (look at the X :>server source for examples, or the kernel). :>The second thing you may need is access to physical ram, you can do this :>by using the mmap call on /dev/mem. You can map a range of physical :>ram into your process. Thanks for the info. Also thanks to the others who replied. Unfortunately while composing a nice reply to everyone last night I inadvertantly discovered a key combo to instantly delete all trace of my reply and (apparently) original posts. Being late at night I went to bed... When I get a couple of hours free I'll try out your suggestions and see how far I get. Being a Linux novice this could be a while! Eric. -------------------------------------------------------------------------- Remove planet.earth for real e-mail address. --------------------------------------------------------------------------
Technical Details
Message-ID:
<lkkgsviqgjcgsxqnqs.pminews@news.darkstar.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<tglhpegaipbcsjonkm.pminews@news.darkstar.com.au> <353DE2DD.75E4CCD1@vwis.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b32,e916d7c135e17372 X-Google-Attributes: gid102b32,public X-Google-Thread: 102983,e916d7c135e17372 X-Google-Attributes: gid102983,public X-Google-Thread: 10a997,e916d7c135e17372 X-Google-Attributes: gid10a997,public From: "Eric Reaburn" <ericreaburn@planet.earth.cyberdude.com> Subject: Re: low level hardware access Date: 1998/04/23 Message-ID: <lkkgsviqgjcgsxqnqs.pminews@news.darkstar.com.au> X-Deja-AN: 346940406 Content-Transfer-Encoding: 7bit References: <tglhpegaipbcsjonkm.pminews@news.darkstar.com.au> <353DE2DD.75E4CCD1@vwis.com> Mime-Version: 1.0 Reply-To: "Eric Reaburn" <ericreaburn@planet.earth.cyberdude.com> Content-Type: text/plain; charset="us-ascii" Organization: Telstra Internet Browse Server Newsgroups: alt.uu.comp.os.linux.questions,comp.os.linux.hardware,aus.computers.linux