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