Home | History | Annotate | Line # | Download | only in include
alpha.h revision 1.9
      1 /* $NetBSD: alpha.h,v 1.9 2000/06/01 17:12:42 thorpej Exp $ */
      2 
      3 /*
      4  * Copyright (c) 1988 University of Utah.
      5  * Copyright (c) 1982, 1990, 1993
      6  *	The Regents of the University of California.  All rights reserved.
      7  *
      8  * This code is derived from software contributed to Berkeley by
      9  * the Systems Programming Group of the University of Utah Computer
     10  * Science Department.
     11  *
     12  * Redistribution and use in source and binary forms, with or without
     13  * modification, are permitted provided that the following conditions
     14  * are met:
     15  * 1. Redistributions of source code must retain the above copyright
     16  *    notice, this list of conditions and the following disclaimer.
     17  * 2. Redistributions in binary form must reproduce the above copyright
     18  *    notice, this list of conditions and the following disclaimer in the
     19  *    documentation and/or other materials provided with the distribution.
     20  * 3. All advertising materials mentioning features or use of this software
     21  *    must display the following acknowledgement:
     22  *	This product includes software developed by the University of
     23  *	California, Berkeley and its contributors.
     24  * 4. Neither the name of the University nor the names of its contributors
     25  *    may be used to endorse or promote products derived from this software
     26  *    without specific prior written permission.
     27  *
     28  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     29  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     30  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     31  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     32  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     33  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     34  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     35  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     36  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     37  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     38  * SUCH DAMAGE.
     39  *
     40  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
     41  *
     42  *	@(#)cpu.h	8.4 (Berkeley) 1/5/94
     43  */
     44 
     45 #ifndef _ALPHA_H_
     46 #define _ALPHA_H_
     47 #ifdef _KERNEL
     48 
     49 #include <machine/bus.h>
     50 
     51 struct pcb;
     52 struct proc;
     53 struct reg;
     54 struct rpb;
     55 struct trapframe;
     56 
     57 extern int bootdev_debug;
     58 
     59 void	XentArith __P((u_int64_t, u_int64_t, u_int64_t));	/* MAGIC */
     60 void	XentIF __P((u_int64_t, u_int64_t, u_int64_t));		/* MAGIC */
     61 void	XentInt __P((u_int64_t, u_int64_t, u_int64_t));		/* MAGIC */
     62 void	XentMM __P((u_int64_t, u_int64_t, u_int64_t));		/* MAGIC */
     63 void	XentRestart __P((void));				/* MAGIC */
     64 void	XentSys __P((u_int64_t, u_int64_t, u_int64_t));		/* MAGIC */
     65 void	XentUna __P((u_int64_t, u_int64_t, u_int64_t));		/* MAGIC */
     66 void	alpha_init __P((u_long, u_long, u_long, u_long, u_long));
     67 int	alpha_pa_access __P((u_long));
     68 void	ast __P((struct trapframe *));
     69 int	badaddr	__P((void *, size_t));
     70 int	badaddr_read __P((void *, size_t, void *));
     71 void	child_return __P((void *));
     72 u_int64_t console_restart __P((struct trapframe *));
     73 void	do_sir __P((void));
     74 void	dumpconf __P((void));
     75 void	exception_return __P((void));				/* MAGIC */
     76 void	frametoreg __P((struct trapframe *, struct reg *));
     77 long	fswintrberr __P((void));				/* MAGIC */
     78 void	init_bootstrap_console __P((void));
     79 void	init_prom_interface __P((struct rpb *));
     80 void	interrupt
     81 	__P((unsigned long, unsigned long, unsigned long, struct trapframe *));
     82 void	machine_check
     83 	__P((unsigned long, struct trapframe *, unsigned long, unsigned long));
     84 u_int64_t hwrpb_checksum __P((void));
     85 void	hwrpb_restart_setup __P((void));
     86 void	regdump __P((struct trapframe *));
     87 void	regtoframe __P((struct reg *, struct trapframe *));
     88 void	savectx __P((struct pcb *));
     89 void    switch_exit __P((struct proc *));			/* MAGIC */
     90 void	switch_trampoline __P((void));				/* MAGIC */
     91 void	syscall __P((u_int64_t, struct trapframe *));
     92 void	trap __P((unsigned long, unsigned long, unsigned long, unsigned long,
     93 	    struct trapframe *));
     94 void	trap_init __P((void));
     95 void	enable_nsio_ide __P((bus_space_tag_t));
     96 char *	dot_conv __P((unsigned long));
     97 
     98 /* Multiprocessor glue; cpu.c */
     99 struct cpu_info;
    100 int	cpu_iccb_send __P((long, const char *));
    101 void	cpu_iccb_receive __P((void));
    102 void	cpu_hatch __P((struct cpu_info *));
    103 void	cpu_halt_secondary __P((unsigned long));
    104 void	cpu_spinup_trampoline __P((void));			/* MAGIC */
    105 void	cpu_pause __P((unsigned long));
    106 void	cpu_resume __P((unsigned long));
    107 
    108 #endif /* _KERNEL */
    109 #endif /* _ALPHA_H_ */
    110