🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.uu.comp.os.linux.questions
Article #230

Re: low level hardware access

#230
From: Lawrence Foard
Date: Wed, 22 Apr 1998 00:00
17 lines
1577 bytes
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.
Technical Details
Message-ID: <353DE2DD.75E4CCD1@vwis.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <tglhpegaipbcsjonkm.pminews@news.darkstar.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,e916d7c135e17372
X-Google-Attributes: gid1103af,public
X-Google-Thread: 102983,e916d7c135e17372
X-Google-Attributes: gid102983,public
X-Google-Thread: 102b32,e916d7c135e17372
X-Google-Attributes: gid102b32,public
X-Google-Thread: 10a997,e916d7c135e17372
X-Google-Attributes: gid10a997,public
From: Lawrence Foard <entropy@vwis.com>
Subject: Re: low level hardware access
Date: 1998/04/22
Message-ID: <353DE2DD.75E4CCD1@vwis.com>
X-Deja-AN: 346649558
Content-Transfer-Encoding: 7bit
References: <tglhpegaipbcsjonkm.pminews@news.darkstar.com.au>
Content-Type: text/plain; charset=us-ascii
X-Trace: 893255428 14735 (none) 206.184.139.132
Organization: Virtual World Information Systems
Mime-Version: 1.0
Newsgroups: alt.uu.comp.os.linux.questions,aus.computers.linux,comp.os.linux.misc,comp.os.linux.hardware