From 37dec27558a97e62dc2669724f0b5a5c01f68004 Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 28 Jul 1999 07:57:48 +0000 Subject: 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. Reviewed by: Andrew Gallatin --- sys/pci/pci.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/pci/pci.c') diff --git a/sys/pci/pci.c b/sys/pci/pci.c index c2091f3..c6184da 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.111 1999/07/27 04:28:14 mdodd Exp $ + * $Id: pci.c,v 1.112 1999/07/27 05:08:36 mdodd Exp $ * */ @@ -1333,6 +1333,10 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid, case SYS_RES_DRQ: /* passthru for child isa */ break; +#ifdef __alpha__ + case SYS_RES_DENSE: + case SYS_RES_BWX: +#endif case SYS_RES_MEMORY: if (isdefault) { map = pci_mapno(cfg, *rid); @@ -1389,6 +1393,10 @@ pci_release_resource(device_t dev, device_t child, int type, int rid, case SYS_RES_DRQ: /* passthru for child isa */ break; +#ifdef __alpha__ + case SYS_RES_DENSE: + case SYS_RES_BWX: +#endif case SYS_RES_MEMORY: case SYS_RES_IOPORT: /* @@ -1416,6 +1424,10 @@ pci_release_resource(device_t dev, device_t child, int type, int rid, case SYS_RES_DRQ: /* passthru for child isa */ break; +#ifdef __alpha__ + case SYS_RES_DENSE: + case SYS_RES_BWX: +#endif case SYS_RES_MEMORY: case SYS_RES_IOPORT: if (map != -1) -- cgit v1.1