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