1/* $OpenBSD: cia_bwx_bus_mem.c,v 1.3 2001/11/06 19:53:13 miod Exp $ */ 2/* $NetBSD: cia_bwx_bus_mem.c,v 1.3 2000/06/29 08:58:46 mrg Exp $ */ 3 4/* 5 * Copyright (c) 1996 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * 10 * Permission to use, copy, modify and distribute this software and 11 * its documentation is hereby granted, provided that both the copyright 12 * notice and this permission notice appear in all copies of the 13 * software, derivative works or modified versions, and any portions 14 * thereof, and that both notices appear in supporting documentation. 15 * 16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * Carnegie Mellon requests users of this software to return to 21 * 22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 23 * School of Computer Science 24 * Carnegie Mellon University 25 * Pittsburgh PA 15213-3890 26 * 27 * any improvements or extensions that they make and grant Carnegie the 28 * rights to redistribute these changes. 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/malloc.h> 34#include <sys/syslog.h> 35#include <sys/device.h> 36 37#include <uvm/uvm_extern.h> 38 39#include <machine/bus.h> 40 41#include <alpha/pci/ciareg.h> 42#include <alpha/pci/ciavar.h> 43 44#define CHIP cia_bwx 45 46#define CHIP_EX_MALLOC_SAFE(v) (((struct cia_config *)(v))->cc_mallocsafe) 47#define CHIP_MEM_EXTENT(v) (((struct cia_config *)(v))->cc_d_mem_ex) 48 49#define CHIP_MEM_SYS_START(v) CIA_EV56_BWMEM 50 51/* 52 * CIA core logic with BWX enabled appears on EV56 and PCA56. We 53 * require at least EV56 support for the assembler to emit BWX opcodes. 54 */ 55__asm(".arch ev56"); 56 57#include <alpha/pci/pci_bwx_bus_mem_chipdep.c> 58