Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/io/vnet_dds_hcall.s
+++ new/usr/src/uts/sun4v/io/vnet_dds_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
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 -#pragma ident "%Z%%M% %I% %E% SMI"
28 -
29 27 /*
30 28 * Hypervisor calls called by niu leaf driver.
31 29 */
32 30
33 31 #include <sys/asm_linkage.h>
34 32 #include <sys/hypervisor_api.h>
35 33
36 34 /*
37 35 * NIU HV API v1.1 definitions
38 36 */
39 37 #define N2NIU_VR_GETINFO 0x148
40 38 #define N2NIU_VR_GET_RX_MAP 0x14d
41 39 #define N2NIU_VR_GET_TX_MAP 0x14e
42 40 #define N2NIU_VRRX_SET_INO 0x150
43 41 #define N2NIU_VRTX_SET_INO 0x151
44 42
45 43
46 -#if defined(lint) || defined(__lint)
47 -
48 -/*ARGSUSED*/
49 -uint64_t
50 -vdds_hv_niu_vr_getinfo(uint32_t cookie, uint64_t *real_start, uint64_t *size)
51 -{ return (0); }
52 -
53 -/*ARGSUSED*/
54 -uint64_t
55 -vdds_hv_niu_vr_get_rxmap(uint32_t cookie, uint64_t *dma_map)
56 -{ return (0); }
57 -
58 -/*ARGSUSED*/
59 -uint64_t
60 -vdds_hv_niu_vr_get_txmap(uint32_t cookie, uint64_t *dma_map)
61 -{ return (0); }
62 -
63 -/*ARGSUSED*/
64 -uint64_t
65 -vdds_hv_niu_vrtx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
66 -{ return (0); }
67 -
68 -/*ARGSUSED*/
69 -uint64_t
70 -vdds_hv_niu_vrrx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
71 -{ return (0); }
72 -
73 -#else /* lint || __lint */
74 -
75 44 /*
76 45 * vdds_hv_niu_vr_getinfo(uint32_t cookie, uint64_t &real_start,
77 46 * uint64_t &size)
78 47 */
79 48 ENTRY(vdds_hv_niu_vr_getinfo)
80 49 mov %o1, %g1
81 50 mov %o2, %g2
82 51 mov N2NIU_VR_GETINFO, %o5
83 52 ta FAST_TRAP
84 53 stx %o1, [%g1]
85 54 retl
86 55 stx %o2, [%g2]
87 56 SET_SIZE(vdds_hv_niu_vr_getinfo)
88 57
89 58 /*
90 59 * vdds_hv_niu_vr_get_rxmap(uint32_t cookie, uint64_t *dma_map)
91 60 */
92 61 ENTRY(vdds_hv_niu_vr_get_rxmap)
93 62 mov %o1, %g1
94 63 mov N2NIU_VR_GET_RX_MAP, %o5
95 64 ta FAST_TRAP
96 65 retl
97 66 stx %o1, [%g1]
98 67 SET_SIZE(vdds_hv_niu_vr_get_rxmap)
99 68
100 69 /*
101 70 * vdds_hv_niu_vr_get_txmap(uint32_t cookie, uint64_t *dma_map)
102 71 */
103 72 ENTRY(vdds_hv_niu_vr_get_txmap)
104 73 mov %o1, %g1
105 74 mov N2NIU_VR_GET_TX_MAP, %o5
106 75 ta FAST_TRAP
107 76 retl
108 77 stx %o1, [%g1]
109 78 SET_SIZE(vdds_hv_niu_vr_get_txmap)
110 79
111 80 /*
112 81 * vdds_hv_niu_vrrx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
113 82 */
114 83 ENTRY(vdds_hv_niu_vrrx_set_ino)
115 84 mov N2NIU_VRRX_SET_INO, %o5
116 85 ta FAST_TRAP
117 86 retl
118 87 nop
119 88 SET_SIZE(vdds_hv_niu_vrrx_set_ino)
120 89
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
121 90 /*
122 91 * vdds_hv_niu_vrtx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
123 92 */
124 93 ENTRY(vdds_hv_niu_vrtx_set_ino)
125 94 mov N2NIU_VRTX_SET_INO, %o5
126 95 ta FAST_TRAP
127 96 retl
128 97 nop
129 98 SET_SIZE(vdds_hv_niu_vrtx_set_ino)
130 99
131 -#endif /* lint || __lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX