cia_bwx_bus_mem.c revision 1.7
11.7Sthorpej/* $NetBSD: cia_bwx_bus_mem.c,v 1.7 2023/12/04 00:32:10 thorpej Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright (c) 1996 Carnegie-Mellon University. 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Author: Chris G. Demetriou 81.1Sthorpej * 91.1Sthorpej * Permission to use, copy, modify and distribute this software and 101.1Sthorpej * its documentation is hereby granted, provided that both the copyright 111.1Sthorpej * notice and this permission notice appear in all copies of the 121.1Sthorpej * software, derivative works or modified versions, and any portions 131.1Sthorpej * thereof, and that both notices appear in supporting documentation. 141.1Sthorpej * 151.1Sthorpej * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 161.1Sthorpej * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 171.1Sthorpej * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 181.1Sthorpej * 191.1Sthorpej * Carnegie Mellon requests users of this software to return to 201.1Sthorpej * 211.1Sthorpej * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 221.1Sthorpej * School of Computer Science 231.1Sthorpej * Carnegie Mellon University 241.1Sthorpej * Pittsburgh PA 15213-3890 251.1Sthorpej * 261.1Sthorpej * any improvements or extensions that they make and grant Carnegie the 271.1Sthorpej * rights to redistribute these changes. 281.1Sthorpej */ 291.1Sthorpej 301.1Sthorpej#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ 311.1Sthorpej 321.7Sthorpej__KERNEL_RCSID(1, "$NetBSD: cia_bwx_bus_mem.c,v 1.7 2023/12/04 00:32:10 thorpej Exp $"); 331.1Sthorpej 341.1Sthorpej#include <sys/param.h> 351.1Sthorpej#include <sys/systm.h> 361.1Sthorpej#include <sys/syslog.h> 371.1Sthorpej#include <sys/device.h> 381.3Smrg 391.5Sdyoung#include <sys/bus.h> 401.1Sthorpej 411.1Sthorpej#include <alpha/pci/ciareg.h> 421.1Sthorpej#include <alpha/pci/ciavar.h> 431.1Sthorpej 441.1Sthorpej#define CHIP cia_bwx 451.1Sthorpej 461.7Sthorpej#define CHIP_MEM_ARENA(v) (((struct cia_config *)(v))->cc_d_mem_arena) 471.1Sthorpej 481.1Sthorpej#define CHIP_MEM_SYS_START(v) CIA_EV56_BWMEM 491.2Sthorpej 501.2Sthorpej/* 511.2Sthorpej * CIA core logic with BWX enabled appears on EV56 and PCA56. We 521.2Sthorpej * require at least EV56 support for the assembler to emit BWX opcodes. 531.2Sthorpej */ 541.2Sthorpej__asm(".arch ev56"); 551.1Sthorpej 561.1Sthorpej#include <alpha/pci/pci_bwx_bus_mem_chipdep.c> 57