Deleted Added
full compact
ixgbe_mbx.h (230775) ixgbe_mbx.h (247822)
1/******************************************************************************
2
1/******************************************************************************
2
3 Copyright (c) 2001-2012, Intel Corporation
3 Copyright (c) 2001-2013, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 13 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 13 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_mbx.h 230775 2012-01-30 16:42:02Z jfv $*/
33/*$FreeBSD: head/sys/dev/ixgbe/ixgbe_mbx.h 247822 2013-03-04 23:07:40Z jfv $*/
34
35#ifndef _IXGBE_MBX_H_
36#define _IXGBE_MBX_H_
37
38#include "ixgbe_type.h"
39
40#define IXGBE_VFMAILBOX_SIZE 16 /* 16 32 bit words - 64 bytes */
41#define IXGBE_ERR_MBX -100

--- 37 unchanged lines hidden (view full) ---

79#define IXGBE_VT_MSGINFO_SHIFT 16
80/* bits 23:16 are used for extra info for certain messages */
81#define IXGBE_VT_MSGINFO_MASK (0xFF << IXGBE_VT_MSGINFO_SHIFT)
82
83#define IXGBE_VF_RESET 0x01 /* VF requests reset */
84#define IXGBE_VF_SET_MAC_ADDR 0x02 /* VF requests PF to set MAC addr */
85#define IXGBE_VF_SET_MULTICAST 0x03 /* VF requests PF to set MC addr */
86#define IXGBE_VF_SET_VLAN 0x04 /* VF requests PF to set VLAN */
34
35#ifndef _IXGBE_MBX_H_
36#define _IXGBE_MBX_H_
37
38#include "ixgbe_type.h"
39
40#define IXGBE_VFMAILBOX_SIZE 16 /* 16 32 bit words - 64 bytes */
41#define IXGBE_ERR_MBX -100

--- 37 unchanged lines hidden (view full) ---

79#define IXGBE_VT_MSGINFO_SHIFT 16
80/* bits 23:16 are used for extra info for certain messages */
81#define IXGBE_VT_MSGINFO_MASK (0xFF << IXGBE_VT_MSGINFO_SHIFT)
82
83#define IXGBE_VF_RESET 0x01 /* VF requests reset */
84#define IXGBE_VF_SET_MAC_ADDR 0x02 /* VF requests PF to set MAC addr */
85#define IXGBE_VF_SET_MULTICAST 0x03 /* VF requests PF to set MC addr */
86#define IXGBE_VF_SET_VLAN 0x04 /* VF requests PF to set VLAN */
87
88/* mailbox API, version 1.0 VF requests */
87#define IXGBE_VF_SET_LPE 0x05 /* VF requests PF to set VMOLR.LPE */
88#define IXGBE_VF_SET_MACVLAN 0x06 /* VF requests PF for unicast filter */
89#define IXGBE_VF_SET_LPE 0x05 /* VF requests PF to set VMOLR.LPE */
90#define IXGBE_VF_SET_MACVLAN 0x06 /* VF requests PF for unicast filter */
91#define IXGBE_VF_API_NEGOTIATE 0x08 /* negotiate API version */
89
92
93/* mailbox API, version 1.1 VF requests */
94#define IXGBE_VF_GET_QUEUES 0x09 /* get queue configuration */
95
96/* GET_QUEUES return data indices within the mailbox */
97#define IXGBE_VF_TX_QUEUES 1 /* number of Tx queues supported */
98#define IXGBE_VF_RX_QUEUES 2 /* number of Rx queues supported */
99#define IXGBE_VF_TRANS_VLAN 3 /* Indication of port vlan */
100#define IXGBE_VF_DEF_QUEUE 4 /* Default queue offset */
101
90/* length of permanent address message returned from PF */
91#define IXGBE_VF_PERMADDR_MSG_LEN 4
92/* word in permanent address message with the current multicast type */
93#define IXGBE_VF_MC_TYPE_WORD 3
94
95#define IXGBE_PF_CONTROL_MSG 0x0100 /* PF control message */
96
97

--- 15 unchanged lines hidden ---
102/* length of permanent address message returned from PF */
103#define IXGBE_VF_PERMADDR_MSG_LEN 4
104/* word in permanent address message with the current multicast type */
105#define IXGBE_VF_MC_TYPE_WORD 3
106
107#define IXGBE_PF_CONTROL_MSG 0x0100 /* PF control message */
108
109

--- 15 unchanged lines hidden ---