Subversion Repositories HelenOS

Rev

Rev 2071 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
435 jermar 1
/*
2071 jermar 2
 * Copyright (c) 2005 Jakub Jermar
435 jermar 3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
7
 * are met:
8
 *
9
 * - Redistributions of source code must retain the above copyright
10
 *   notice, this list of conditions and the following disclaimer.
11
 * - Redistributions in binary form must reproduce the above copyright
12
 *   notice, this list of conditions and the following disclaimer in the
13
 *   documentation and/or other materials provided with the distribution.
14
 * - The name of the author may not be used to endorse or promote products
15
 *   derived from this software without specific prior written permission.
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
28
 
1888 jermar 29
/** @addtogroup ia64   
1702 cejka 30
 * @{
31
 */
32
/** @file
33
 */
34
 
1888 jermar 35
#ifndef KERN_ia64_PAL_H_
36
#define KERN_ia64_PAL_H_
435 jermar 37
 
38
#define PAL_OK       0  /**< Call completed without error. */
39
#define PAL_UNIMPL  -1  /**< Unimplemented procedure. */
40
#define PAL_INVARG  -2  /**< Invalid argument. */
41
#define PAL_ERR     -3  /**< Can not compete call without error. */
42
 
43
/** These are the indices for PAL_PROC. */
44
#define PAL_CACHE_FLUSH     1
45
#define PAL_CACHE_INFO      2
46
#define PAL_CACHE_INIT      3
47
#define PAL_CACHE_PROT_INFO 38
48
#define PAL_CACHE_SHARED_INFO   43
49
#define PAL_CACHE_SUMMARY   4
50
 
51
#define PAL_MEM_ATTRIB      5
52
#define PAL_PREFETCH_VISIBILITY 41
53
#define PAL_PTCE_INFO       6
54
#define PAL_VM_INFO     7
55
#define PAL_VM_PAGE_SIZE    34
56
#define PAL_VM_SUMMARY      8
57
#define PAL_VM_TR_READ      261
58
 
59
#define PAL_BUS_GET_FEATURES    9
60
#define PAL_BUS_SET_FEATURES    10
61
#define PAL_DEBUG_INFO      11
62
#define PAL_FIXED_ADDR      12
63
#define PAL_FREQ_BASE       13
64
#define PAL_FREQ_RATIOS     14
65
#define PAL_LOGICAL_TO_PHYSICAL 42
66
#define PAL_PERF_MON_INFO   15
67
#define PAL_PLATFORM_ADDR   16
68
#define PAL_PROC_GET_FEATURES   17
69
#define PAL_PROC_SET_FEATURES   18
70
#define PAL_REGISTER_INFO   39
71
#define PAL_RSE_INFO        19
72
#define PAL_VERSION     20
73
 
74
#define PAL_MC_CLEAR_LOG    21
75
#define PAL_MC_DRAIN        22
76
#define PAL_MC_DYNAMIC_STATE    24
77
#define PAL_MC_ERROR_INFO   25
78
#define PAL_MC_EXPECTED     23
79
#define PAL_MC_REGISTER_MEM 27
80
#define PAL_MC_RESUME       26
81
 
82
#define PAL_HALT        28
83
#define PAL_HALT_INFO       257
84
#define PAL_HALT_LIGHT      29
85
 
86
#define PAL_CACHE_LINE_INIT 31
87
#define PAL_CACHE_READ      259
88
#define PAL_CACHE_WRITE     260
89
#define PAL_TEST_INFO       37
90
#define PAL_TEST_PROC       258
91
 
92
#define PAL_COPY_INFO       30
93
#define PAL_COPY_PAL        256
94
#define PAL_ENTER_IA_32_ENV 33
95
#define PAL_PMI_ENTRYPOINT  32
96
 
928 vana 97
/*
1888 jermar 98
 *  Ski PTCE data
99
 */
928 vana 100
#define PAL_PTCE_INFO_BASE() (0x100000000LL)
101
#define PAL_PTCE_INFO_COUNT1() (2)
102
#define PAL_PTCE_INFO_COUNT2() (3)
103
#define PAL_PTCE_INFO_STRIDE1() (0x10000000)
104
#define PAL_PTCE_INFO_STRIDE2() (0x2000)
105
 
435 jermar 106
#endif
1702 cejka 107
 
1888 jermar 108
/** @}
1702 cejka 109
 */