Deleted Added
full compact
e1000_regs.h (256200) e1000_regs.h (258780)
1/******************************************************************************
2
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

--- 16 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******************************************************************************/
1/******************************************************************************
2
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

--- 16 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/e1000/e1000_regs.h 256200 2013-10-09 17:32:52Z jfv $*/
33/*$FreeBSD: head/sys/dev/e1000/e1000_regs.h 258780 2013-11-30 22:17:27Z eadler $*/
34
35#ifndef _E1000_REGS_H_
36#define _E1000_REGS_H_
37
38#define E1000_CTRL 0x00000 /* Device Control - RW */
39#define E1000_CTRL_DUP 0x00004 /* Device Control Duplicate (Shadow) - RW */
40#define E1000_STATUS 0x00008 /* Device Status - RO */
41#define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */

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

202/* Queues priority masks where _n and _p can be 0-3. */
203#define E1000_TQAVARBCTRL_QUEUE_PRI(_n, _p) ((_p) << (2 * _n))
204/* QAV Tx mode control registers where _n can be 0 or 1. */
205#define E1000_I210_TQAVCC(_n) (0x3004 + 0x40 * (_n))
206
207/* QAV Tx mode control register bitfields masks */
208#define E1000_TQAVCC_IDLE_SLOPE 0xFFFF /* Idle slope */
209#define E1000_TQAVCC_KEEP_CREDITS (1 << 30) /* Keep credits opt enable */
34
35#ifndef _E1000_REGS_H_
36#define _E1000_REGS_H_
37
38#define E1000_CTRL 0x00000 /* Device Control - RW */
39#define E1000_CTRL_DUP 0x00004 /* Device Control Duplicate (Shadow) - RW */
40#define E1000_STATUS 0x00008 /* Device Status - RO */
41#define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */

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

202/* Queues priority masks where _n and _p can be 0-3. */
203#define E1000_TQAVARBCTRL_QUEUE_PRI(_n, _p) ((_p) << (2 * _n))
204/* QAV Tx mode control registers where _n can be 0 or 1. */
205#define E1000_I210_TQAVCC(_n) (0x3004 + 0x40 * (_n))
206
207/* QAV Tx mode control register bitfields masks */
208#define E1000_TQAVCC_IDLE_SLOPE 0xFFFF /* Idle slope */
209#define E1000_TQAVCC_KEEP_CREDITS (1 << 30) /* Keep credits opt enable */
210#define E1000_TQAVCC_QUEUE_MODE (1 << 31) /* SP vs. SR Tx mode */
210#define E1000_TQAVCC_QUEUE_MODE (1U << 31) /* SP vs. SR Tx mode */
211
212/* Good transmitted packets counter registers */
213#define E1000_PQGPTC(_n) (0x010014 + (0x100 * (_n)))
214
215/* Queues packet buffer size masks where _n can be 0-3 and _s 0-63 [kB] */
216#define E1000_I210_TXPBS_SIZE(_n, _s) ((_s) << (6 * _n))
217
218#define E1000_MMDAC 13 /* MMD Access Control */

--- 466 unchanged lines hidden ---
211
212/* Good transmitted packets counter registers */
213#define E1000_PQGPTC(_n) (0x010014 + (0x100 * (_n)))
214
215/* Queues packet buffer size masks where _n can be 0-3 and _s 0-63 [kB] */
216#define E1000_I210_TXPBS_SIZE(_n, _s) ((_s) << (6 * _n))
217
218#define E1000_MMDAC 13 /* MMD Access Control */

--- 466 unchanged lines hidden ---