/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Hypervisor calls called by niu leaf driver.
*/
#include <sys/asm_linkage.h>
#include <sys/hypervisor_api.h>
#if defined(sun4v)
/*
* NIU HV API v1.0 definitions
*/
/*
* NIU HV API v1.1 definitions
*/
/*
* The new set of HV APIs to provide the ability
* of a domain to manage multiple NIU resources at once to
* support the KT familty chip having up to 4 NIUs
* per system. The trap # will be the same as those defined
* before 2.0
*/
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*
* KT: Interfaces functions which require the configuration handle
*/
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
/*ARGSUSED*/
{ return (0); }
#else /* lint || __lint */
/*
* hv_niu_rx_logical_page_conf(uint64_t chidx, uint64_t pgidx,
* uint64_t raddr, uint64_t size)
*/
/*
* hv_niu_rx_logical_page_info(uint64_t chidx, uint64_t pgidx,
* uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_tx_logical_page_conf(uint64_t chidx, uint64_t pgidx,
* uint64_t raddr, uint64_t size)
*/
/*
* hv_niu_tx_logical_page_info(uint64_t chidx, uint64_t pgidx,
* uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_vr_assign(uint64_t vridx, uint64_t ldc_id,
* uint32_t *cookie)
*/
/*
* hv_niu_vr_unassign(uint32_t cookie)
*/
/*
* hv_niu_vr_getinfo(uint32_t cookie, uint64_t &real_start,
* uint64_t &size)
*/
/*
* hv_niu_vr_get_rxmap(uint32_t cookie, uint64_t *dma_map)
*/
/*
* hv_niu_vr_get_txmap(uint32_t cookie, uint64_t *dma_map)
*/
/*
* hv_niu_rx_dma_assign(uint32_t cookie, uint64_t chidx,
* uint64_t *vchidx)
*/
/*
* hv_niu_rx_dma_unassign(uint32_t cookie, uint64_t vchidx)
*/
/*
* hv_niu_tx_dma_assign(uint32_t cookie, uint64_t chidx,
* uint64_t *vchidx)
*/
/*
* hv_niu_tx_dma_unassign(uint32_t cookie, uint64_t vchidx)
*/
/*
* hv_niu_vrrx_logical_page_conf(uint32_t cookie, uint64_t chidx,
* uint64_t pgidx, uint64_t raddr, uint64_t size)
*/
/*
* hv_niu_vrrx_logical_page_info(uint32_t cookie, uint64_t chidx,
* uint64_t pgidx, uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_vrtx_logical_page_conf(uint32_t cookie, uint64_t chidx,
* uint64_t pgidx, uint64_t raddr, uint64_t size)
*/
/*
* hv_niu_vrtx_logical_page_info(uint32_t cookie, uint64_t chidx,
* uint64_t pgidx, uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_vrrx_getinfo(uint32_t cookie, uint64_t vridx,
* uint64_t *group, uint64_t *logdev)
*/
/*
* hv_niu_vrtx_getinfo(uint32_t cookie, uint64_t vridx,
* uint64_t *group, uint64_t *logdev)
*/
/*
* hv_niu_vrrx_set_ino(uint32_t cookie, uint64_t vridx, uint32_t ino)
*/
/*
* hv_niu_vrtx_set_ino(uint32_t cookie, uint64_t vridx, uint32_t ino)
*/
/*
* hv_niu_vrrx_param_get(uint32_t cookie, uint64_t vridx,
* uint64_t param, uint64_t *value)
*
*/
/*
* hv_niu_vrrx_param_set(uint32_t cookie, uint64_t vridx,
* uint64_t param, uint64_t value)
*
*/
/*
* hv_niu_vrtx_param_get(uint32_t cookie, uint64_t vridx,
* uint64_t param, uint64_t *value)
*
*/
/*
* hv_niu_vrtx_param_set(uint32_t cookie, uint64_t vridx,
* uint64_t param, uint64_t value)
*
*/
/*
* Interfaces functions which require the configuration handle.
*/
/*
* hv_niu__cfgh_rx_logical_page_conf(uint64_t cfgh, uint64_t chidx,
* uint64_t pgidx, uint64_t raddr, uint64_t size)
*/
/*
* hv_niu__cfgh_rx_logical_page_info(uint64_t cfgh, uint64_t chidx,
* uint64_t pgidx, uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_cfgh_tx_logical_page_conf(uint64_t cfgh, uint64_t chidx,
* uint64_t pgidx, uint64_t raddr, uint64_t size)
*/
/*
* hv_niu_cfgh_tx_logical_page_info(uint64_t cfgh, uint64_t chidx,
* uint64_t pgidx, uint64_t *raddr, uint64_t *size)
*/
/*
* hv_niu_cfgh_vr_assign(uint64_t cfgh, uint64_t vridx, uint64_t ldc_id,
* uint32_t *cookie)
*/
#endif /* lint || __lint */
#endif /*defined(sun4v)*/