]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/Ipf/machine/md_var.h
SourceLevelDebugPkg: Removing ipf from edk2.
[mirror_edk2.git] / StdLib / Include / Ipf / machine / md_var.h
CommitLineData
2aa62f2b 1/* $NetBSD: md_var.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
2\r
3/*-\r
4 * Copyright (c) 1998 Doug Rabson\r
5 * All rights reserved.\r
6 *\r
7 * Redistribution and use in source and binary forms, with or without\r
8 * modification, are permitted provided that the following conditions\r
9 * are met:\r
10 * 1. Redistributions of source code must retain the above copyright\r
11 * notice, this list of conditions and the following disclaimer.\r
12 * 2. Redistributions in binary form must reproduce the above copyright\r
13 * notice, this list of conditions and the following disclaimer in the\r
14 * documentation and/or other materials provided with the distribution.\r
15 *\r
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
26 * SUCH DAMAGE.\r
27 *\r
28 * $FreeBSD$\r
29 */\r
30\r
31#ifndef _IA64_MD_VAR_H_\r
32#define _IA64_MD_VAR_H_\r
33\r
34/*\r
35 * Miscellaneous machine-dependent declarations.\r
36 */\r
37\r
38struct ia64_fdesc {\r
39 uint64_t func;\r
40 uint64_t gp;\r
41};\r
42\r
43#define FDESC_FUNC(fn) (((struct ia64_fdesc *) fn)->func)\r
44#define FDESC_GP(fn) (((struct ia64_fdesc *) fn)->gp)\r
45\r
46/* Convenience macros to decompose CFM & ar.pfs. */\r
47#define IA64_CFM_SOF(x) ((x) & 0x7f)\r
48#define IA64_CFM_SOL(x) (((x) >> 7) & 0x7f)\r
49#define IA64_CFM_SOR(x) (((x) >> 14) & 0x0f)\r
50#define IA64_CFM_RRB_GR(x) (((x) >> 18) & 0x7f)\r
51#define IA64_CFM_RRB_FR(x) (((x) >> 25) & 0x7f)\r
52#define IA64_CFM_RRB_PR(x) (((x) >> 32) & 0x3f)\r
53\r
54#define IA64_RNATINDEX(x) (((x) & 0x1f8) >> 3)\r
55\r
56#ifdef _KERNEL\r
57\r
58extern char sigcode[];\r
59extern char esigcode[];\r
60extern int szsigcode;\r
61extern long Maxmem;\r
62extern vaddr_t kernstart, kernend;\r
63\r
64\r
65struct _special;\r
66struct fpreg;\r
67struct reg;\r
68struct thread;\r
69struct trapframe;\r
70\r
71void busdma_swi(void);\r
72int copyout_regstack(struct thread *, uint64_t *, uint64_t *);\r
73void cpu_mp_add(u_int, u_int, u_int);\r
74int do_ast(struct trapframe *);\r
75void ia32_trap(int, struct trapframe *);\r
76int ia64_count_cpus(void);\r
77void ia64_flush_dirty(struct thread *, struct _special *);\r
78uint64_t ia64_get_hcdp(void);\r
79int ia64_highfp_drop(struct thread *);\r
80int ia64_highfp_save(struct thread *);\r
81void ia64_init(void);\r
82void ia64_probe_sapics(void);\r
83int interrupt(uint64_t, struct trapframe *);\r
84void map_gateway_page(void);\r
85void map_pal_code(void);\r
86void os_boot_rendez(void);\r
87void os_mca(void);\r
88int syscall(struct trapframe *);\r
89void trap(int, struct trapframe *);\r
90void trap_panic(int, struct trapframe *);\r
91int unaligned_fixup(struct trapframe *, struct thread *);\r
92\r
93#endif /* _KERNEL */\r
94\r
95#endif /* !_IA64_MD_VAR_H_ */\r