bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: video mem access with oskit-mach


From: Marcus Brinkmann
Subject: Re: video mem access with oskit-mach
Date: Wed, 3 Oct 2001 22:32:07 +0200
User-agent: Mutt/1.3.22i

On Wed, Oct 03, 2001 at 04:20:25PM -0400, Roland McGrath wrote:
> I think a (partial) bitmask is the simpler interface.  I'd think the most
> common case is setting up access for just one device, i.e. a small
> contiguous range of io ports, so supplying a starting port number and a
> word or less of all-ones is very easy for the client side.  And bottom
> line, that's the Linux ioperm interface and we're best off having every
> actual program in question just use that interface and nothing
> Hurd-specific (at least for now), so we can change it all later.

The ioperm interface is a starting point and a number, so that would be

i386_io_port_create (mach_port_t device_master, io_reg_t start, int num)

and that would be fine by me (it requires multiple operations if you want
multiple ranges, but that's not the common case).

Passing bit masks directly seems to be less practical.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]