]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/contrib/ia64/libuwx/src/uwx_uinfo.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / contrib / ia64 / libuwx / src / uwx_uinfo.h
1 /*
2 Copyright (c) 2003-2006 Hewlett-Packard Development Company, L.P.
3 Permission is hereby granted, free of charge, to any person
4 obtaining a copy of this software and associated documentation
5 files (the "Software"), to deal in the Software without
6 restriction, including without limitation the rights to use,
7 copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following
10 conditions:
11
12 The above copyright notice and this permission notice shall be
13 included in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25 struct uwx_utable_entry;
26
27 extern int uwx_decode_uinfo(
28     struct uwx_env *env,
29     struct uwx_utable_entry *uentry,
30     uint64_t **rstatep);
31
32 extern int uwx_default_rstate(
33     struct uwx_env *env,
34     uint64_t **rstatep);
35
36 /* Region header record */
37
38 struct uwx_rhdr {
39     int is_prologue;            /* true if prologue region */
40     unsigned int rlen;          /* length of region (# instruction slots) */
41     int mask;                   /* register save mask */
42     int grsave;                 /* first gr used for saving */
43     unsigned int ecount;        /* epilogue count (0 = no epilogue) */
44     unsigned int epilogue_t;    /* epilogue "t" value */
45 };
46
47 struct uwx_bstream;
48
49 extern int uwx_decode_rhdr(
50     struct uwx_env *env,
51     struct uwx_bstream *bstream,
52     struct uwx_rhdr *rhdr);
53
54 extern int uwx_decode_prologue(
55     struct uwx_env *env,
56     struct uwx_bstream *bstream,
57     struct uwx_scoreboard *scoreboard,
58     struct uwx_rhdr *rhdr,
59     int ip_slot);
60
61 extern int uwx_decode_body(
62     struct uwx_env *env,
63     struct uwx_bstream *bstream,
64     struct uwx_scoreboard *scoreboard,
65     struct uwx_rhdr *rhdr,
66     int ip_slot);