+++ /dev/null
-/* $NetBSD: md_var.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 1998 Doug Rabson\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _IA64_MD_VAR_H_\r
-#define _IA64_MD_VAR_H_\r
-\r
-/*\r
- * Miscellaneous machine-dependent declarations.\r
- */\r
-\r
-struct ia64_fdesc {\r
- uint64_t func;\r
- uint64_t gp;\r
-};\r
-\r
-#define FDESC_FUNC(fn) (((struct ia64_fdesc *) fn)->func)\r
-#define FDESC_GP(fn) (((struct ia64_fdesc *) fn)->gp)\r
-\r
-/* Convenience macros to decompose CFM & ar.pfs. */\r
-#define IA64_CFM_SOF(x) ((x) & 0x7f)\r
-#define IA64_CFM_SOL(x) (((x) >> 7) & 0x7f)\r
-#define IA64_CFM_SOR(x) (((x) >> 14) & 0x0f)\r
-#define IA64_CFM_RRB_GR(x) (((x) >> 18) & 0x7f)\r
-#define IA64_CFM_RRB_FR(x) (((x) >> 25) & 0x7f)\r
-#define IA64_CFM_RRB_PR(x) (((x) >> 32) & 0x3f)\r
-\r
-#define IA64_RNATINDEX(x) (((x) & 0x1f8) >> 3)\r
-\r
-#ifdef _KERNEL\r
-\r
-extern char sigcode[];\r
-extern char esigcode[];\r
-extern int szsigcode;\r
-extern long Maxmem;\r
-extern vaddr_t kernstart, kernend;\r
-\r
-\r
-struct _special;\r
-struct fpreg;\r
-struct reg;\r
-struct thread;\r
-struct trapframe;\r
-\r
-void busdma_swi(void);\r
-int copyout_regstack(struct thread *, uint64_t *, uint64_t *);\r
-void cpu_mp_add(u_int, u_int, u_int);\r
-int do_ast(struct trapframe *);\r
-void ia32_trap(int, struct trapframe *);\r
-int ia64_count_cpus(void);\r
-void ia64_flush_dirty(struct thread *, struct _special *);\r
-uint64_t ia64_get_hcdp(void);\r
-int ia64_highfp_drop(struct thread *);\r
-int ia64_highfp_save(struct thread *);\r
-void ia64_init(void);\r
-void ia64_probe_sapics(void);\r
-int interrupt(uint64_t, struct trapframe *);\r
-void map_gateway_page(void);\r
-void map_pal_code(void);\r
-void os_boot_rendez(void);\r
-void os_mca(void);\r
-int syscall(struct trapframe *);\r
-void trap(int, struct trapframe *);\r
-void trap_panic(int, struct trapframe *);\r
-int unaligned_fixup(struct trapframe *, struct thread *);\r
-\r
-#endif /* _KERNEL */\r
-\r
-#endif /* !_IA64_MD_VAR_H_ */\r