16f45ec7bSml29623 /* 26f45ec7bSml29623 * CDDL HEADER START 36f45ec7bSml29623 * 46f45ec7bSml29623 * The contents of this file are subject to the terms of the 56f45ec7bSml29623 * Common Development and Distribution License (the "License"). 66f45ec7bSml29623 * You may not use this file except in compliance with the License. 76f45ec7bSml29623 * 86f45ec7bSml29623 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96f45ec7bSml29623 * or http://www.opensolaris.org/os/licensing. 106f45ec7bSml29623 * See the License for the specific language governing permissions 116f45ec7bSml29623 * and limitations under the License. 126f45ec7bSml29623 * 136f45ec7bSml29623 * When distributing Covered Code, include this CDDL HEADER in each 146f45ec7bSml29623 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156f45ec7bSml29623 * If applicable, add the following below this CDDL HEADER, with the 166f45ec7bSml29623 * fields enclosed by brackets "[]" replaced with your own identifying 176f45ec7bSml29623 * information: Portions Copyright [yyyy] [name of copyright owner] 186f45ec7bSml29623 * 196f45ec7bSml29623 * CDDL HEADER END 206f45ec7bSml29623 */ 216f45ec7bSml29623 /* 22*6f157acbSml29623 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 236f45ec7bSml29623 * Use is subject to license terms. 246f45ec7bSml29623 */ 256f45ec7bSml29623 266f45ec7bSml29623 #ifndef _SYS_NXGE_NXGE_VIRTUAL_H 276f45ec7bSml29623 #define _SYS_NXGE_NXGE_VIRTUAL_H 286f45ec7bSml29623 296f45ec7bSml29623 #pragma ident "%Z%%M% %I% %E% SMI" 306f45ec7bSml29623 316f45ec7bSml29623 #ifdef __cplusplus 326f45ec7bSml29623 extern "C" { 336f45ec7bSml29623 #endif 346f45ec7bSml29623 356f45ec7bSml29623 /* 366f45ec7bSml29623 * Neptune Virtualization Control Operations 376f45ec7bSml29623 */ 386f45ec7bSml29623 typedef enum { 396f45ec7bSml29623 NXGE_CTLOPS_NIUTYPE, 406f45ec7bSml29623 NXGE_CTLOPS_GET_ATTRIBUTES, 416f45ec7bSml29623 NXGE_CTLOPS_GET_HWPROPERTIES, 426f45ec7bSml29623 NXGE_CTLOPS_SET_HWPROPERTIES, 436f45ec7bSml29623 NXGE_CTLOPS_GET_SHARED_REG, 446f45ec7bSml29623 NXGE_CTLOPS_SET_SHARED_REG, 456f45ec7bSml29623 NXGE_CTLOPS_UPDATE_SHARED_REG, 466f45ec7bSml29623 NXGE_CTLOPS_GET_LOCK_BLOCK, 476f45ec7bSml29623 NXGE_CTLOPS_GET_LOCK_TRY, 486f45ec7bSml29623 NXGE_CTLOPS_FREE_LOCK, 496f45ec7bSml29623 NXGE_CTLOPS_SET_SHARED_REG_LOCK, 506f45ec7bSml29623 NXGE_CTLOPS_CLEAR_BIT_SHARED_REG, 516f45ec7bSml29623 NXGE_CTLOPS_CLEAR_BIT_SHARED_REG_UL, 526f45ec7bSml29623 NXGE_CTLOPS_END 536f45ec7bSml29623 } nxge_ctl_enum_t; 546f45ec7bSml29623 556f45ec7bSml29623 /* 12 bits are available */ 566f45ec7bSml29623 #define COMMON_CFG_VALID 0x01 576f45ec7bSml29623 #define COMMON_CFG_BUSY 0x02 586f45ec7bSml29623 #define COMMON_INIT_START 0x04 596f45ec7bSml29623 #define COMMON_INIT_DONE 0x08 606f45ec7bSml29623 #define COMMON_TCAM_BUSY 0x10 616f45ec7bSml29623 #define COMMON_VLAN_BUSY 0x20 62*6f157acbSml29623 #define COMMON_RESET_NIU_PCI 0x40 63*6f157acbSml29623 646f45ec7bSml29623 656f45ec7bSml29623 #define NXGE_SR_FUNC_BUSY_SHIFT 0x8 666f45ec7bSml29623 #define NXGE_SR_FUNC_BUSY_MASK 0xf00 676f45ec7bSml29623 686f45ec7bSml29623 696f45ec7bSml29623 #define COMMON_TXDMA_CFG 1 706f45ec7bSml29623 #define COMMON_RXDMA_CFG 2 716f45ec7bSml29623 #define COMMON_RXDMA_GRP_CFG 4 726f45ec7bSml29623 #define COMMON_CLASS_CFG 8 736f45ec7bSml29623 #define COMMON_QUICK_CFG 0x10 746f45ec7bSml29623 756f45ec7bSml29623 nxge_status_t nxge_intr_mask_mgmt(p_nxge_t nxgep); 766f45ec7bSml29623 void nxge_virint_regs_dump(p_nxge_t nxgep); 776f45ec7bSml29623 786f45ec7bSml29623 #ifdef __cplusplus 796f45ec7bSml29623 } 806f45ec7bSml29623 #endif 816f45ec7bSml29623 826f45ec7bSml29623 #endif /* _SYS_NXGE_NXGE_VIRTUAL_H */ 83