Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 1999 09:04:59 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        Doug Rabson <dfr@FreeBSD.org>, current@FreeBSD.org
Subject:   Re: cvs commit: src/sys/alpha/include resource.h src/sys/alpha/pci pcibus.c src/sys/i386/include resource.h src/sys/pci pci.c         pci_compat.c
Message-ID:  <Pine.BSF.4.10.9907290903470.385-100000@salmon.nlsystems.com>
In-Reply-To: <199907281434.KAA07938@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Jul 1999, Garrett Wollman wrote:

> <<On Wed, 28 Jul 1999 00:57:49 -0700 (PDT), Doug Rabson <dfr@FreeBSD.org> said:
> 
> >   Add support for SYS_RES_DENSE and SYS_RES_BWX resource types. These are
> >   equivalent to SYS_RES_MEMORY for x86 but for alpha, the rman_get_virtual()
> >   address of the resource is initialised to point into either dense-mapped
> >   or bwx-mapped space respectively, allowing direct memory pointers to be
> >   used to device memory.
>   
> This makes me rather uncomfortable, on several fronts.  I believe it
> would be more appropriate to add a type argument to rman_get_virtual.

To make that work, rman_get_virtual would need to be a BUS interface
method. One possible alternative is to use SYS_RES_MEMORY with a set of
flags to specify how the memory is to be accessed.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 442 9037




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907290903470.385-100000>