13859Sml29623 /* 23859Sml29623 * CDDL HEADER START 33859Sml29623 * 43859Sml29623 * The contents of this file are subject to the terms of the 53859Sml29623 * Common Development and Distribution License (the "License"). 63859Sml29623 * You may not use this file except in compliance with the License. 73859Sml29623 * 83859Sml29623 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93859Sml29623 * or http://www.opensolaris.org/os/licensing. 103859Sml29623 * See the License for the specific language governing permissions 113859Sml29623 * and limitations under the License. 123859Sml29623 * 133859Sml29623 * When distributing Covered Code, include this CDDL HEADER in each 143859Sml29623 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153859Sml29623 * If applicable, add the following below this CDDL HEADER, with the 163859Sml29623 * fields enclosed by brackets "[]" replaced with your own identifying 173859Sml29623 * information: Portions Copyright [yyyy] [name of copyright owner] 183859Sml29623 * 193859Sml29623 * CDDL HEADER END 203859Sml29623 */ 213859Sml29623 /* 22*6705Sml29623 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 233859Sml29623 * Use is subject to license terms. 243859Sml29623 */ 253859Sml29623 263859Sml29623 #ifndef _SYS_NXGE_NXGE_VIRTUAL_H 273859Sml29623 #define _SYS_NXGE_NXGE_VIRTUAL_H 283859Sml29623 293859Sml29623 #pragma ident "%Z%%M% %I% %E% SMI" 303859Sml29623 313859Sml29623 #ifdef __cplusplus 323859Sml29623 extern "C" { 333859Sml29623 #endif 343859Sml29623 353859Sml29623 /* 363859Sml29623 * Neptune Virtualization Control Operations 373859Sml29623 */ 383859Sml29623 typedef enum { 393859Sml29623 NXGE_CTLOPS_NIUTYPE, 403859Sml29623 NXGE_CTLOPS_GET_ATTRIBUTES, 413859Sml29623 NXGE_CTLOPS_GET_HWPROPERTIES, 423859Sml29623 NXGE_CTLOPS_SET_HWPROPERTIES, 433859Sml29623 NXGE_CTLOPS_GET_SHARED_REG, 443859Sml29623 NXGE_CTLOPS_SET_SHARED_REG, 453859Sml29623 NXGE_CTLOPS_UPDATE_SHARED_REG, 463859Sml29623 NXGE_CTLOPS_GET_LOCK_BLOCK, 473859Sml29623 NXGE_CTLOPS_GET_LOCK_TRY, 483859Sml29623 NXGE_CTLOPS_FREE_LOCK, 493859Sml29623 NXGE_CTLOPS_SET_SHARED_REG_LOCK, 503859Sml29623 NXGE_CTLOPS_CLEAR_BIT_SHARED_REG, 513859Sml29623 NXGE_CTLOPS_CLEAR_BIT_SHARED_REG_UL, 523859Sml29623 NXGE_CTLOPS_END 533859Sml29623 } nxge_ctl_enum_t; 543859Sml29623 553859Sml29623 /* 12 bits are available */ 563859Sml29623 #define COMMON_CFG_VALID 0x01 573859Sml29623 #define COMMON_CFG_BUSY 0x02 583859Sml29623 #define COMMON_INIT_START 0x04 593859Sml29623 #define COMMON_INIT_DONE 0x08 603859Sml29623 #define COMMON_TCAM_BUSY 0x10 613859Sml29623 #define COMMON_VLAN_BUSY 0x20 62*6705Sml29623 #define COMMON_RESET_NIU_PCI 0x40 63*6705Sml29623 643859Sml29623 653859Sml29623 #define NXGE_SR_FUNC_BUSY_SHIFT 0x8 663859Sml29623 #define NXGE_SR_FUNC_BUSY_MASK 0xf00 673859Sml29623 683859Sml29623 693859Sml29623 #define COMMON_TXDMA_CFG 1 703859Sml29623 #define COMMON_RXDMA_CFG 2 713859Sml29623 #define COMMON_RXDMA_GRP_CFG 4 723859Sml29623 #define COMMON_CLASS_CFG 8 733859Sml29623 #define COMMON_QUICK_CFG 0x10 743859Sml29623 753859Sml29623 nxge_status_t nxge_intr_mask_mgmt(p_nxge_t nxgep); 763859Sml29623 void nxge_virint_regs_dump(p_nxge_t nxgep); 773859Sml29623 783859Sml29623 #ifdef __cplusplus 793859Sml29623 } 803859Sml29623 #endif 813859Sml29623 823859Sml29623 #endif /* _SYS_NXGE_NXGE_VIRTUAL_H */ 83