Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/io/pciex/pci_cfgacc_asm.s
+++ new/usr/src/uts/sun4v/io/pciex/pci_cfgacc_asm.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
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 */
25 25
26 26
27 27 /*
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
28 28 * Assembly language support for pci config space access on sun4v
29 29 */
30 30
31 31 #include <sys/asm_linkage.h>
32 32 #include <sys/hypervisor_api.h>
33 33 #include <sys/dditypes.h>
34 34 #include <sys/pci_cfgacc.h>
35 35 #include <io/px/px_ioapi.h>
36 36 #include <io/px/px_lib4v.h>
37 37
38 -#if defined(lint) || defined(__lint)
39 -
40 -/*ARGSUSED*/
41 -uint64_t
42 -hvio_config_get(devhandle_t dev_hdl, pci_device_t bdf, pci_config_offset_t off,
43 - pci_config_size_t size, pci_cfg_data_t *data_p)
44 -{ return (0); }
45 -
46 -/*ARGSUSED*/
47 -uint64_t
48 -hvio_config_put(devhandle_t dev_hdl, pci_device_t bdf, pci_config_offset_t off,
49 - pci_config_size_t size, pci_cfg_data_t data)
50 -{ return (0); }
51 -
52 -#else /* lint || __lint */
53 -
54 38 /*
55 39 * arg0 - devhandle
56 40 * arg1 - pci_device
57 41 * arg2 - pci_config_offset
58 42 * arg3 - pci_config_size (1, 2 or 4 byte)
59 43 *
60 44 * ret0 - status
61 45 * ret1 - error_flag
62 46 * ret2 - pci_cfg_data
63 47 */
64 48 ENTRY(hvio_config_get)
65 49 mov HVIO_CONFIG_GET, %o5
66 50 ta FAST_TRAP
67 51 sllx %o1, 32, %o1
68 52 or %o0, %o1, %o0
69 53 movrnz %o1, -1, %o2
70 54 stx %o2, [%o4]
71 55 retl
72 56 nop
73 57 SET_SIZE(hvio_config_get)
74 58
75 59 /*
76 60 * arg0 - devhandle
77 61 * arg1 - pci_device
78 62 * arg2 - pci_config_offset
79 63 * arg3 - pci_config_size (1, 2 or 4 byte)
80 64 * arg4 - pci_cfg_data
81 65 *
82 66 * ret0 - status
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
83 67 * ret1 - error_flag
84 68 */
85 69 ENTRY(hvio_config_put)
86 70 mov HVIO_CONFIG_PUT, %o5
87 71 ta FAST_TRAP
88 72 sllx %o1, 32, %o1
89 73 or %o0, %o1, %o0
90 74 retl
91 75 nop
92 76 SET_SIZE(hvio_config_put)
93 -#endif
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX