Home | History | Annotate | Line # | Download | only in pci
cia_bwx_bus_io.c revision 1.1.20.1
      1  1.1.20.1  wrstuden /* $NetBSD: cia_bwx_bus_io.c,v 1.1.20.1 1999/12/27 18:31:27 wrstuden 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.1.20.1  wrstuden __KERNEL_RCSID(1, "$NetBSD: cia_bwx_bus_io.c,v 1.1.20.1 1999/12/27 18:31:27 wrstuden 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/malloc.h>
     37       1.1   thorpej #include <sys/syslog.h>
     38       1.1   thorpej #include <sys/device.h>
     39       1.1   thorpej #include <vm/vm.h>
     40       1.1   thorpej 
     41       1.1   thorpej #include <machine/bus.h>
     42       1.1   thorpej 
     43       1.1   thorpej #include <alpha/pci/ciareg.h>
     44       1.1   thorpej #include <alpha/pci/ciavar.h>
     45       1.1   thorpej 
     46       1.1   thorpej #define	CHIP		cia_bwx
     47       1.1   thorpej 
     48       1.1   thorpej #define	CHIP_EX_MALLOC_SAFE(v)	(((struct cia_config *)(v))->cc_mallocsafe)
     49       1.1   thorpej #define	CHIP_IO_EXTENT(v)	(((struct cia_config *)(v))->cc_io_ex)
     50       1.1   thorpej 
     51       1.1   thorpej #define	CHIP_IO_SYS_START(v)	CIA_EV56_BWIO
     52  1.1.20.1  wrstuden 
     53  1.1.20.1  wrstuden /*
     54  1.1.20.1  wrstuden  * CIA core logic with BWX enabled appears on EV56 and PCA56.  We
     55  1.1.20.1  wrstuden  * require at least EV56 support for the assembler to emit BWX opcodes.
     56  1.1.20.1  wrstuden  */
     57  1.1.20.1  wrstuden __asm(".arch ev56");
     58       1.1   thorpej 
     59       1.1   thorpej #include <alpha/pci/pci_bwx_bus_io_chipdep.c>
     60