mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
50d9c84ee5
These two headers define the commonly used macros, data structures, register bits and register offsets used by the ixgbevf driver on the 82599 virtual function device Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
86 lines
3.5 KiB
C
86 lines
3.5 KiB
C
/*******************************************************************************
|
|
|
|
Intel 82599 Virtual Function driver
|
|
Copyright(c) 1999 - 2009 Intel Corporation.
|
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
under the terms and conditions of the GNU General Public License,
|
|
version 2, as published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
The full GNU General Public License is included in this distribution in
|
|
the file called "COPYING".
|
|
|
|
Contact Information:
|
|
e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
|
|
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
|
|
|
|
*******************************************************************************/
|
|
|
|
#ifndef _IXGBEVF_REGS_H_
|
|
#define _IXGBEVF_REGS_H_
|
|
|
|
#define IXGBE_VFCTRL 0x00000
|
|
#define IXGBE_VFSTATUS 0x00008
|
|
#define IXGBE_VFLINKS 0x00010
|
|
#define IXGBE_VFRTIMER 0x00048
|
|
#define IXGBE_VFRXMEMWRAP 0x03190
|
|
#define IXGBE_VTEICR 0x00100
|
|
#define IXGBE_VTEICS 0x00104
|
|
#define IXGBE_VTEIMS 0x00108
|
|
#define IXGBE_VTEIMC 0x0010C
|
|
#define IXGBE_VTEIAC 0x00110
|
|
#define IXGBE_VTEIAM 0x00114
|
|
#define IXGBE_VTEITR(x) (0x00820 + (4 * x))
|
|
#define IXGBE_VTIVAR(x) (0x00120 + (4 * x))
|
|
#define IXGBE_VTIVAR_MISC 0x00140
|
|
#define IXGBE_VTRSCINT(x) (0x00180 + (4 * x))
|
|
#define IXGBE_VFRDBAL(x) (0x01000 + (0x40 * x))
|
|
#define IXGBE_VFRDBAH(x) (0x01004 + (0x40 * x))
|
|
#define IXGBE_VFRDLEN(x) (0x01008 + (0x40 * x))
|
|
#define IXGBE_VFRDH(x) (0x01010 + (0x40 * x))
|
|
#define IXGBE_VFRDT(x) (0x01018 + (0x40 * x))
|
|
#define IXGBE_VFRXDCTL(x) (0x01028 + (0x40 * x))
|
|
#define IXGBE_VFSRRCTL(x) (0x01014 + (0x40 * x))
|
|
#define IXGBE_VFRSCCTL(x) (0x0102C + (0x40 * x))
|
|
#define IXGBE_VFPSRTYPE 0x00300
|
|
#define IXGBE_VFTDBAL(x) (0x02000 + (0x40 * x))
|
|
#define IXGBE_VFTDBAH(x) (0x02004 + (0x40 * x))
|
|
#define IXGBE_VFTDLEN(x) (0x02008 + (0x40 * x))
|
|
#define IXGBE_VFTDH(x) (0x02010 + (0x40 * x))
|
|
#define IXGBE_VFTDT(x) (0x02018 + (0x40 * x))
|
|
#define IXGBE_VFTXDCTL(x) (0x02028 + (0x40 * x))
|
|
#define IXGBE_VFTDWBAL(x) (0x02038 + (0x40 * x))
|
|
#define IXGBE_VFTDWBAH(x) (0x0203C + (0x40 * x))
|
|
#define IXGBE_VFDCA_RXCTRL(x) (0x0100C + (0x40 * x))
|
|
#define IXGBE_VFDCA_TXCTRL(x) (0x0200c + (0x40 * x))
|
|
#define IXGBE_VFGPRC 0x0101C
|
|
#define IXGBE_VFGPTC 0x0201C
|
|
#define IXGBE_VFGORC_LSB 0x01020
|
|
#define IXGBE_VFGORC_MSB 0x01024
|
|
#define IXGBE_VFGOTC_LSB 0x02020
|
|
#define IXGBE_VFGOTC_MSB 0x02024
|
|
#define IXGBE_VFMPRC 0x01034
|
|
|
|
#define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
|
|
|
|
#define IXGBE_READ_REG(a, reg) readl((a)->hw_addr + (reg))
|
|
|
|
#define IXGBE_WRITE_REG_ARRAY(a, reg, offset, value) ( \
|
|
writel((value), ((a)->hw_addr + (reg) + ((offset) << 2))))
|
|
|
|
#define IXGBE_READ_REG_ARRAY(a, reg, offset) ( \
|
|
readl((a)->hw_addr + (reg) + ((offset) << 2)))
|
|
|
|
#define IXGBE_WRITE_FLUSH(a) (IXGBE_READ_REG(a, IXGBE_VFSTATUS))
|
|
|
|
#endif /* _IXGBEVF_REGS_H_ */
|