Home | History | Annotate | Line # | Download | only in pci
      1  1.7  thorpej /* $NetBSD: cia_bwx_bus_io.c,v 1.7 2023/12/04 00:32:10 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.7  thorpej __KERNEL_RCSID(1, "$NetBSD: cia_bwx_bus_io.c,v 1.7 2023/12/04 00:32:10 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.7  thorpej #define	CHIP_IO_ARENA(v)	(((struct cia_config *)(v))->cc_io_arena)
     47  1.1  thorpej 
     48  1.1  thorpej #define	CHIP_IO_SYS_START(v)	CIA_EV56_BWIO
     49  1.2  thorpej 
     50  1.2  thorpej /*
     51  1.2  thorpej  * CIA core logic with BWX enabled appears on EV56 and PCA56.  We
     52  1.2  thorpej  * require at least EV56 support for the assembler to emit BWX opcodes.
     53  1.2  thorpej  */
     54  1.2  thorpej __asm(".arch ev56");
     55  1.1  thorpej 
     56  1.1  thorpej #include <alpha/pci/pci_bwx_bus_io_chipdep.c>
     57