cia_swiz_bus_mem.c revision 1.2
11.2Scgd/* $NetBSD: cia_swiz_bus_mem.c,v 1.2 1996/04/12 06:08:23 cgd Exp $ */ 21.2Scgd 31.2Scgd/* 41.2Scgd * Copyright (c) 1996 Carnegie-Mellon University. 51.2Scgd * All rights reserved. 61.2Scgd * 71.2Scgd * Author: Chris G. Demetriou 81.2Scgd * 91.2Scgd * Permission to use, copy, modify and distribute this software and 101.2Scgd * its documentation is hereby granted, provided that both the copyright 111.2Scgd * notice and this permission notice appear in all copies of the 121.2Scgd * software, derivative works or modified versions, and any portions 131.2Scgd * thereof, and that both notices appear in supporting documentation. 141.2Scgd * 151.2Scgd * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 161.2Scgd * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 171.2Scgd * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 181.2Scgd * 191.2Scgd * Carnegie Mellon requests users of this software to return to 201.2Scgd * 211.2Scgd * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 221.2Scgd * School of Computer Science 231.2Scgd * Carnegie Mellon University 241.2Scgd * Pittsburgh PA 15213-3890 251.2Scgd * 261.2Scgd * any improvements or extensions that they make and grant Carnegie the 271.2Scgd * rights to redistribute these changes. 281.2Scgd */ 291.1Scgd 301.1Scgd#include <sys/param.h> 311.1Scgd#include <sys/malloc.h> 321.1Scgd#include <sys/syslog.h> 331.1Scgd#include <sys/device.h> 341.1Scgd#include <vm/vm.h> 351.1Scgd 361.1Scgd#include <machine/bus.h> 371.1Scgd 381.1Scgd#include <alpha/pci/ciareg.h> 391.1Scgd 401.1Scgd#define CHIP cia 411.1Scgd#define CHIP_D_MEM_BASE CIA_PCI_DENSE 421.1Scgd#define CHIP_S_MEM_BASE CIA_PCI_SPARSE0 431.1Scgd 441.1Scgd#include "pcs_bus_mem_common.c" 45