Home | History | Annotate | Line # | Download | only in ixgbe
ixgbe_vf.h revision 1.2
      1  1.1   dyoung /******************************************************************************
      2  1.1   dyoung 
      3  1.1   dyoung   Copyright (c) 2001-2010, Intel Corporation
      4  1.1   dyoung   All rights reserved.
      5  1.1   dyoung 
      6  1.1   dyoung   Redistribution and use in source and binary forms, with or without
      7  1.1   dyoung   modification, are permitted provided that the following conditions are met:
      8  1.1   dyoung 
      9  1.1   dyoung    1. Redistributions of source code must retain the above copyright notice,
     10  1.1   dyoung       this list of conditions and the following disclaimer.
     11  1.1   dyoung 
     12  1.1   dyoung    2. Redistributions in binary form must reproduce the above copyright
     13  1.1   dyoung       notice, this list of conditions and the following disclaimer in the
     14  1.1   dyoung       documentation and/or other materials provided with the distribution.
     15  1.1   dyoung 
     16  1.1   dyoung    3. Neither the name of the Intel Corporation nor the names of its
     17  1.1   dyoung       contributors may be used to endorse or promote products derived from
     18  1.1   dyoung       this software without specific prior written permission.
     19  1.1   dyoung 
     20  1.1   dyoung   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     21  1.1   dyoung   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     22  1.1   dyoung   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     23  1.1   dyoung   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
     24  1.1   dyoung   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     25  1.1   dyoung   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     26  1.1   dyoung   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27  1.1   dyoung   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     28  1.1   dyoung   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     29  1.1   dyoung   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     30  1.1   dyoung   POSSIBILITY OF SUCH DAMAGE.
     31  1.1   dyoung 
     32  1.1   dyoung ******************************************************************************/
     33  1.1   dyoung /*$FreeBSD: src/sys/dev/ixgbe/ixgbe_vf.h,v 1.1 2010/11/26 22:46:32 jfv Exp $*/
     34  1.2  msaitoh /*$NetBSD: ixgbe_vf.h,v 1.2 2015/03/10 09:26:49 msaitoh Exp $*/
     35  1.1   dyoung 
     36  1.1   dyoung #ifndef __IXGBE_VF_H__
     37  1.1   dyoung #define __IXGBE_VF_H__
     38  1.1   dyoung 
     39  1.1   dyoung #define IXGBE_VF_IRQ_CLEAR_MASK     7
     40  1.1   dyoung #define IXGBE_VF_MAX_TX_QUEUES      8
     41  1.1   dyoung #define IXGBE_VF_MAX_RX_QUEUES      8
     42  1.1   dyoung 
     43  1.1   dyoung #define IXGBE_VFCTRL           0x00000
     44  1.1   dyoung #define IXGBE_VFSTATUS         0x00008
     45  1.1   dyoung #define IXGBE_VFLINKS          0x00010
     46  1.1   dyoung #define IXGBE_VFFRTIMER        0x00048
     47  1.1   dyoung #define IXGBE_VFRXMEMWRAP      0x03190
     48  1.1   dyoung #define IXGBE_VTEICR           0x00100
     49  1.1   dyoung #define IXGBE_VTEICS           0x00104
     50  1.1   dyoung #define IXGBE_VTEIMS           0x00108
     51  1.1   dyoung #define IXGBE_VTEIMC           0x0010C
     52  1.1   dyoung #define IXGBE_VTEIAC           0x00110
     53  1.1   dyoung #define IXGBE_VTEIAM           0x00114
     54  1.1   dyoung #define IXGBE_VTEITR(x)        (0x00820 + (4 * x))
     55  1.1   dyoung #define IXGBE_VTIVAR(x)        (0x00120 + (4 * x))
     56  1.1   dyoung #define IXGBE_VTIVAR_MISC      0x00140
     57  1.1   dyoung #define IXGBE_VTRSCINT(x)      (0x00180 + (4 * x))
     58  1.1   dyoung /* define IXGBE_VFPBACL  still says TBD in EAS */
     59  1.1   dyoung #define IXGBE_VFRDBAL(x)       (0x01000 + (0x40 * x))
     60  1.1   dyoung #define IXGBE_VFRDBAH(x)       (0x01004 + (0x40 * x))
     61  1.1   dyoung #define IXGBE_VFRDLEN(x)       (0x01008 + (0x40 * x))
     62  1.1   dyoung #define IXGBE_VFRDH(x)         (0x01010 + (0x40 * x))
     63  1.1   dyoung #define IXGBE_VFRDT(x)         (0x01018 + (0x40 * x))
     64  1.1   dyoung #define IXGBE_VFRXDCTL(x)      (0x01028 + (0x40 * x))
     65  1.1   dyoung #define IXGBE_VFSRRCTL(x)      (0x01014 + (0x40 * x))
     66  1.1   dyoung #define IXGBE_VFRSCCTL(x)      (0x0102C + (0x40 * x))
     67  1.1   dyoung #define IXGBE_VFPSRTYPE        0x00300
     68  1.1   dyoung #define IXGBE_VFTDBAL(x)       (0x02000 + (0x40 * x))
     69  1.1   dyoung #define IXGBE_VFTDBAH(x)       (0x02004 + (0x40 * x))
     70  1.1   dyoung #define IXGBE_VFTDLEN(x)       (0x02008 + (0x40 * x))
     71  1.1   dyoung #define IXGBE_VFTDH(x)         (0x02010 + (0x40 * x))
     72  1.1   dyoung #define IXGBE_VFTDT(x)         (0x02018 + (0x40 * x))
     73  1.1   dyoung #define IXGBE_VFTXDCTL(x)      (0x02028 + (0x40 * x))
     74  1.1   dyoung #define IXGBE_VFTDWBAL(x)      (0x02038 + (0x40 * x))
     75  1.1   dyoung #define IXGBE_VFTDWBAH(x)      (0x0203C + (0x40 * x))
     76  1.1   dyoung #define IXGBE_VFDCA_RXCTRL(x)  (0x0100C + (0x40 * x))
     77  1.1   dyoung #define IXGBE_VFDCA_TXCTRL(x)  (0x0200c + (0x40 * x))
     78  1.1   dyoung #define IXGBE_VFGPRC           0x0101C
     79  1.1   dyoung #define IXGBE_VFGPTC           0x0201C
     80  1.1   dyoung #define IXGBE_VFGORC_LSB       0x01020
     81  1.1   dyoung #define IXGBE_VFGORC_MSB       0x01024
     82  1.1   dyoung #define IXGBE_VFGOTC_LSB       0x02020
     83  1.1   dyoung #define IXGBE_VFGOTC_MSB       0x02024
     84  1.1   dyoung #define IXGBE_VFMPRC           0x01034
     85  1.1   dyoung 
     86  1.1   dyoung 
     87  1.1   dyoung struct ixgbevf_hw_stats {
     88  1.1   dyoung 	u64 base_vfgprc;
     89  1.1   dyoung 	u64 base_vfgptc;
     90  1.1   dyoung 	u64 base_vfgorc;
     91  1.1   dyoung 	u64 base_vfgotc;
     92  1.1   dyoung 	u64 base_vfmprc;
     93  1.1   dyoung 
     94  1.1   dyoung 	u64 last_vfgprc;
     95  1.1   dyoung 	u64 last_vfgptc;
     96  1.1   dyoung 	u64 last_vfgorc;
     97  1.1   dyoung 	u64 last_vfgotc;
     98  1.1   dyoung 	u64 last_vfmprc;
     99  1.1   dyoung 
    100  1.1   dyoung 	u64 vfgprc;
    101  1.1   dyoung 	u64 vfgptc;
    102  1.1   dyoung 	u64 vfgorc;
    103  1.1   dyoung 	u64 vfgotc;
    104  1.1   dyoung 	u64 vfmprc;
    105  1.1   dyoung 
    106  1.1   dyoung 	u64 saved_reset_vfgprc;
    107  1.1   dyoung 	u64 saved_reset_vfgptc;
    108  1.1   dyoung 	u64 saved_reset_vfgorc;
    109  1.1   dyoung 	u64 saved_reset_vfgotc;
    110  1.1   dyoung 	u64 saved_reset_vfmprc;
    111  1.2  msaitoh 
    112  1.2  msaitoh 	struct evcnt ipcs;
    113  1.2  msaitoh 	struct evcnt ipcs_bad;
    114  1.2  msaitoh 	struct evcnt l4cs;
    115  1.2  msaitoh 	struct evcnt l4cs_bad;
    116  1.1   dyoung };
    117  1.1   dyoung 
    118  1.1   dyoung #endif /* __IXGBE_VF_H__ */
    119  1.1   dyoung 
    120