Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/io/n2rng/n2rng_hcall.s
+++ new/usr/src/uts/sun4v/io/n2rng/n2rng_hcall.s
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 -#pragma ident "%Z%%M% %I% %E% SMI"
27 -
28 26 /*
29 27 * Hypervisor calls called by ncp driver.
30 28 */
31 29
32 30 #include <sys/asm_linkage.h>
33 31 #include <sys/hypervisor_api.h>
34 32 #include <sys/n2rng.h>
35 33
36 -#if defined(lint) || defined(__lint)
37 -
38 -/*ARGSUSED*/
39 -uint64_t
40 -hv_rng_get_diag_control()
41 -{ return (0); }
42 -
43 -/*ARGSUSED*/
44 -uint64_t
45 -hv_rng_ctl_read(uint64_t ctlregsptr_ra, uint64_t *rstate, uint64_t *tdelta)
46 -{ return (0); }
47 -
48 -/*ARGSUSED*/
49 -uint64_t
50 -hv_rng_ctl_read_v2(uint64_t ctlregsptr_ra, uint64_t rngid, uint64_t *rstate,
51 - uint64_t *tdelta, uint64_t *wdelta, uint64_t *wstate)
52 -{ return (0); }
53 -
54 -/*ARGSUSED*/
55 -uint64_t
56 -hv_rng_ctl_write(uint64_t ctlregsptr_ra, uint64_t nstate, uint64_t wtimeout,
57 - uint64_t *tdelta)
58 -{ return (0); }
59 -
60 -/*ARGSUSED*/
61 -uint64_t
62 -hv_rng_ctl_write_v2(uint64_t ctlregsptr_ra, uint64_t nstate, uint64_t wtimeout,
63 - uint64_t rngid)
64 -{ return (0); }
65 -
66 -/*ARGSUSED*/
67 -uint64_t
68 -hv_rng_data_read_diag(uint64_t buffer_ra, uint64_t sz, uint64_t *tdelta)
69 -{ return (0); }
70 -
71 -/*ARGSUSED*/
72 -uint64_t
73 -hv_rng_data_read_diag_v2(uint64_t buffer_ra, uint64_t sz, uint64_t rngid,
74 - uint64_t *tdelta)
75 -{ return (0); }
76 -
77 -/*ARGSUSED*/
78 -uint64_t
79 -hv_rng_data_read(uint64_t buffer_ra, uint64_t *tdelta)
80 -{ return (0); }
81 -
82 -#else /* lint || __lint */
83 -
84 34 /*
85 35 * hv_rng_get_diag_control()
86 36 */
87 37 ENTRY(hv_rng_get_diag_control)
88 38 mov HV_RNG_GET_DIAG_CONTROL, %o5
89 39 ta FAST_TRAP
90 40 retl
91 41 nop
92 42 SET_SIZE(hv_rng_get_diag_control)
93 43
94 44 /*
95 45 * hv_rng_ctl_read(uint64_t ctlregsptr_ra, uint64_t *rstate,
96 46 * uint64_t *tdelta)
97 47 */
98 48 ENTRY(hv_rng_ctl_read)
99 49 mov %o1, %o3
100 50 mov %o2, %o4
101 51 mov HV_RNG_CTL_READ, %o5
102 52 ta FAST_TRAP
103 53 stx %o1, [%o3]
104 54 retl
105 55 stx %o2, [%o4]
106 56 SET_SIZE(hv_rng_ctl_read)
107 57
108 58 /*
109 59 * hv_rng_ctl_read_v2(uint64_t ctlregsptr_ra, uint64_t rngid,
110 60 * uint64_t *rstate, uint64_t *tdelta, uint64_t *wdelta,
111 61 * uint64_t *wstatus)
112 62 */
113 63 ENTRY(hv_rng_ctl_read_v2)
114 64 save %sp, -SA(MINFRAME64), %sp
115 65 mov %i0, %o0
116 66 mov %i1, %o1
117 67 mov HV_RNG_CTL_READ, %o5
118 68 ta FAST_TRAP
119 69 mov %o0, %i0 ! trap status
120 70 stx %o1, [%i2] ! save status
121 71 stx %o2, [%i3] ! save delta
122 72 stx %o3, [%i4] ! save watchdog
123 73 stx %o4, [%i5] ! save write status
124 74 ret
125 75 restore
126 76 SET_SIZE(hv_rng_ctl_read_v2)
127 77
128 78 /*
129 79 * hv_rng_ctl_write(uint64_t ctlregsptr_ra, uint64_t nstate,
130 80 * uint64_t wtimeout, uint64_t *tdelta)
131 81 */
132 82 ENTRY(hv_rng_ctl_write)
133 83 mov %o3, %o4
134 84 mov HV_RNG_CTL_WRITE, %o5
135 85 ta FAST_TRAP
136 86 retl
137 87 stx %o1, [%o4]
138 88 SET_SIZE(hv_rng_ctl_write)
139 89
140 90 /*
141 91 * hv_rng_ctl_write_v2(uint64_t ctlregsptr_ra, uint64_t nstate,
142 92 * uint64_t wtimeout, uint64_t rngid)
143 93 */
144 94 ENTRY(hv_rng_ctl_write_v2)
145 95 mov HV_RNG_CTL_WRITE, %o5
146 96 ta FAST_TRAP
147 97 retl
148 98 nop
149 99 SET_SIZE(hv_rng_ctl_write_v2)
150 100
151 101 /*
152 102 * hv_rng_data_read_diag(uint64_t buffer_ra, uint64_t sz,
153 103 * uint64_t *tdelta)
154 104 */
155 105 ENTRY(hv_rng_data_read_diag)
156 106 mov %o2, %o4
157 107 mov HV_RNG_DATA_READ_DIAG, %o5
158 108 ta FAST_TRAP
159 109 retl
160 110 stx %o1, [%o4]
161 111 SET_SIZE(hv_rng_data_read_diag)
162 112
163 113 /*
164 114 * hv_rng_data_read_diag_v2(uint64_t buffer_ra, uint64_t sz,
165 115 * uint64_t rngid, uint64_t *tdelta)
166 116 */
167 117 ENTRY(hv_rng_data_read_diag_v2)
168 118 mov %o3, %o4
169 119 mov HV_RNG_DATA_READ_DIAG, %o5
170 120 ta FAST_TRAP
171 121 retl
172 122 stx %o1, [%o4]
173 123 SET_SIZE(hv_rng_data_read_diag_v2)
174 124
175 125 /*
↓ open down ↓ |
82 lines elided |
↑ open up ↑ |
176 126 * hv_rng_data_read(uint64_t buffer_ra, uint64_t *tdelta)
177 127 */
178 128 ENTRY(hv_rng_data_read)
179 129 mov %o1, %o4
180 130 mov HV_RNG_DATA_READ, %o5
181 131 ta FAST_TRAP
182 132 retl
183 133 stx %o1, [%o4]
184 134 SET_SIZE(hv_rng_data_read)
185 135
186 -#endif /* lint || __lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX