1194794Sdelphij/*- 2129677Spjd * Copyright(c) 2002-2011 Exar Corp. 3331722Seadler * All rights reserved. 4129677Spjd * 5256130Sjmg * Redistribution and use in source and binary forms, with or without 6129677Spjd * modification are permitted provided the following conditions are met: 7129677Spjd * 8129677Spjd * 1. Redistributions of source code must retain the above copyright notice, 9129677Spjd * this list of conditions and the following disclaimer. 10129677Spjd * 11129677Spjd * 2. Redistributions in binary form must reproduce the above copyright 12129677Spjd * notice, this list of conditions and the following disclaimer in the 13129677Spjd * documentation and/or other materials provided with the distribution. 14129677Spjd * 15129677Spjd * 3. Neither the name of the Exar Corporation nor the names of its 16129677Spjd * contributors may be used to endorse or promote products derived from 17129677Spjd * this software without specific prior written permission. 18129677Spjd * 19129677Spjd * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20129677Spjd * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21129677Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22129677Spjd * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 23129677Spjd * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24129677Spjd * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25129677Spjd * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26129677Spjd * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27129677Spjd * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28129677Spjd * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29129677Spjd * POSSIBILITY OF SUCH DAMAGE. 30129677Spjd */ 31129677Spjd/*$FreeBSD: releng/10.3/sys/dev/vxge/vxgehal/vxgehal-pcicfgmgmt-reg.h 221167 2011-04-28 14:33:15Z gnn $*/ 32129677Spjd 33129677Spjd#ifndef VXGE_HAL_PCICFGMGMT_REGS_H 34129677Spjd#define VXGE_HAL_PCICFGMGMT_REGS_H 35129677Spjd 36129677Spjd__EXTERN_BEGIN_DECLS 37129677Spjd 38129677Spjdtypedef struct vxge_hal_pcicfgmgmt_reg_t { 39176954Santoine 40129677Spjd/* 0x00000 */ u64 resource_no; 41129677Spjd#define VXGE_HAL_RESOURCE_NO_PFN_OR_VF BIT(3) 42129677Spjd/* 0x00008 */ u64 bargrp_pf_or_vf_bar0_mask; 43129677Spjd#define VXGE_HAL_BARGRP_PF_OR_VF_BAR0_MASK_BARGRP_PF_OR_VF_BAR0_MASK(val)\ 44129677Spjd vBIT(val, 2, 6) 45129677Spjd/* 0x00010 */ u64 bargrp_pf_or_vf_bar1_mask; 46317386Sbrooks#define VXGE_HAL_BARGRP_PF_OR_VF_BAR1_MASK_BARGRP_PF_OR_VF_BAR1_MASK(val)\ 47220582Sdelphij vBIT(val, 2, 6) 48129677Spjd/* 0x00018 */ u64 bargrp_pf_or_vf_bar2_mask; 49219939Sdelphij#define VXGE_HAL_BARGRP_PF_OR_VF_BAR2_MASK_BARGRP_PF_OR_VF_BAR2_MASK(val)\ 50129677Spjd vBIT(val, 2, 6) 51129677Spjd/* 0x00020 */ u64 msixgrp_no; 52135792Spjd#define VXGE_HAL_MSIXGRP_NO_TABLE_SIZE(val) vBIT(val, 5, 11) 53220582Sdelphij 54256130Sjmg} vxge_hal_pcicfgmgmt_reg_t; 55135792Spjd 56135792Spjd__EXTERN_END_DECLS 57129677Spjd 58256130Sjmg#endif /* VXGE_HAL_PCICFGMGMT_REGS_H */ 59256130Sjmg