kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4v / io / vnet_dds_hcall.s
blobc9ef762a769bcc465643edbf1d7d6843ab089d1d
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
30 * Hypervisor calls called by niu leaf driver.
33 #include <sys/asm_linkage.h>
34 #include <sys/hypervisor_api.h>
37 * NIU HV API v1.1 definitions
39 #define N2NIU_VR_GETINFO 0x148
40 #define N2NIU_VR_GET_RX_MAP 0x14d
41 #define N2NIU_VR_GET_TX_MAP 0x14e
42 #define N2NIU_VRRX_SET_INO 0x150
43 #define N2NIU_VRTX_SET_INO 0x151
48 * vdds_hv_niu_vr_getinfo(uint32_t cookie, uint64_t &real_start,
49 * uint64_t &size)
51 ENTRY(vdds_hv_niu_vr_getinfo)
52 mov %o1, %g1
53 mov %o2, %g2
54 mov N2NIU_VR_GETINFO, %o5
55 ta FAST_TRAP
56 stx %o1, [%g1]
57 retl
58 stx %o2, [%g2]
59 SET_SIZE(vdds_hv_niu_vr_getinfo)
62 * vdds_hv_niu_vr_get_rxmap(uint32_t cookie, uint64_t *dma_map)
64 ENTRY(vdds_hv_niu_vr_get_rxmap)
65 mov %o1, %g1
66 mov N2NIU_VR_GET_RX_MAP, %o5
67 ta FAST_TRAP
68 retl
69 stx %o1, [%g1]
70 SET_SIZE(vdds_hv_niu_vr_get_rxmap)
73 * vdds_hv_niu_vr_get_txmap(uint32_t cookie, uint64_t *dma_map)
75 ENTRY(vdds_hv_niu_vr_get_txmap)
76 mov %o1, %g1
77 mov N2NIU_VR_GET_TX_MAP, %o5
78 ta FAST_TRAP
79 retl
80 stx %o1, [%g1]
81 SET_SIZE(vdds_hv_niu_vr_get_txmap)
84 * vdds_hv_niu_vrrx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
86 ENTRY(vdds_hv_niu_vrrx_set_ino)
87 mov N2NIU_VRRX_SET_INO, %o5
88 ta FAST_TRAP
89 retl
90 nop
91 SET_SIZE(vdds_hv_niu_vrrx_set_ino)
94 * vdds_hv_niu_vrtx_set_ino(uint32_t cookie, uint64_t vch_idx, uint32_t ino)
96 ENTRY(vdds_hv_niu_vrtx_set_ino)
97 mov N2NIU_VRTX_SET_INO, %o5
98 ta FAST_TRAP
99 retl
101 SET_SIZE(vdds_hv_niu_vrtx_set_ino)