author | Florian Pose <fp@igh-essen.com> |
Tue, 18 Oct 2016 10:20:47 +0200 | |
branch | stable-1.5 |
changeset 2662 | a1079c6242a5 |
parent 2588 | 792892ab4806 |
permissions | -rw-r--r-- |
2588
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
1 |
/* Intel PRO/1000 Linux driver |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
2 |
* Copyright(c) 1999 - 2014 Intel Corporation. |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
3 |
* |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
4 |
* This program is free software; you can redistribute it and/or modify it |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
5 |
* under the terms and conditions of the GNU General Public License, |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
6 |
* version 2, as published by the Free Software Foundation. |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
7 |
* |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
8 |
* This program is distributed in the hope it will be useful, but WITHOUT |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
9 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
10 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
11 |
* more details. |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
12 |
* |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
13 |
* The full GNU General Public License is included in this distribution in |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
14 |
* the file called "COPYING". |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
15 |
* |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
16 |
* Contact Information: |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
17 |
* Linux NICS <linux.nics@intel.com> |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
18 |
* e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
19 |
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
20 |
*/ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
21 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
22 |
#ifndef _E1000E_82571_H_ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
23 |
#define _E1000E_82571_H_ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
24 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
25 |
#define ID_LED_RESERVED_F746 0xF746 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
26 |
#define ID_LED_DEFAULT_82573 ((ID_LED_DEF1_DEF2 << 12) | \ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
27 |
(ID_LED_OFF1_ON2 << 8) | \ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
28 |
(ID_LED_DEF1_DEF2 << 4) | \ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
29 |
(ID_LED_DEF1_DEF2)) |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
30 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
31 |
#define E1000_GCR_L1_ACT_WITHOUT_L0S_RX 0x08000000 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
32 |
#define AN_RETRY_COUNT 5 /* Autoneg Retry Count value */ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
33 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
34 |
/* Intr Throttling - RW */ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
35 |
#define E1000_EITR_82574(_n) (0x000E8 + (0x4 * (_n))) |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
36 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
37 |
#define E1000_EIAC_82574 0x000DC /* Ext. Interrupt Auto Clear - RW */ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
38 |
#define E1000_EIAC_MASK_82574 0x01F00000 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
39 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
40 |
#define E1000_IVAR_INT_ALLOC_VALID 0x8 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
41 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
42 |
/* Manageability Operation Mode mask */ |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
43 |
#define E1000_NVM_INIT_CTRL2_MNGM 0x6000 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
44 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
45 |
#define E1000_BASE1000T_STATUS 10 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
46 |
#define E1000_IDLE_ERROR_COUNT_MASK 0xFF |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
47 |
#define E1000_RECEIVE_ERROR_COUNTER 21 |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
48 |
#define E1000_RECEIVE_ERROR_MAX 0xFFFF |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
49 |
bool e1000_check_phy_82574(struct e1000_hw *hw); |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
50 |
bool e1000e_get_laa_state_82571(struct e1000_hw *hw); |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
51 |
void e1000e_set_laa_state_82571(struct e1000_hw *hw, bool state); |
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
52 |
|
792892ab4806
Added all drivers for kernel 3.16.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
53 |
#endif |