Subversion Repositories HelenOS-historic

Rev

Rev 928 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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