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]
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,
51 ENTRY
(vdds_hv_niu_vr_getinfo
)
54 mov N2NIU_VR_GETINFO
, %o5
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
)
66 mov N2NIU_VR_GET_RX_MAP
, %o5
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
)
77 mov N2NIU_VR_GET_TX_MAP
, %o5
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
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
101 SET_SIZE
(vdds_hv_niu_vrtx_set_ino
)