diff options
author | Carolyn Wyborny <carolyn.wyborny@intel.com> | 2012-04-06 19:25:19 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-05-12 16:17:13 -0400 |
commit | f96a8a0b78548c0ec06b0b4b438db6ee895d67e9 (patch) | |
tree | b1e6cc64dd55fc46cfb8877aa94db6a7940c1327 /drivers/net/ethernet/intel/igb/e1000_i210.h | |
parent | da02cde1c1ffb798df6159a2252653a9becea51a (diff) |
igb: Add Support for new i210/i211 devices.
This patch adds new initialization functions and device support
for i210 and i211 devices.
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/e1000_i210.h')
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_i210.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_i210.h b/drivers/net/ethernet/intel/igb/e1000_i210.h new file mode 100644 index 000000000000..5dc2bd3f50bc --- /dev/null +++ b/drivers/net/ethernet/intel/igb/e1000_i210.h | |||
@@ -0,0 +1,76 @@ | |||
1 | /******************************************************************************* | ||
2 | |||
3 | Intel(R) Gigabit Ethernet Linux driver | ||
4 | Copyright(c) 2007-2012 Intel Corporation. | ||
5 | |||
6 | This program is free software; you can redistribute it and/or modify it | ||
7 | under the terms and conditions of the GNU General Public License, | ||
8 | version 2, as published by the Free Software Foundation. | ||
9 | |||
10 | This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License along with | ||
16 | this program; if not, write to the Free Software Foundation, Inc., | ||
17 | 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | |||
19 | The full GNU General Public License is included in this distribution in | ||
20 | the file called "COPYING". | ||
21 | |||
22 | Contact Information: | ||
23 | e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> | ||
24 | Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
25 | |||
26 | *******************************************************************************/ | ||
27 | |||
28 | #ifndef _E1000_I210_H_ | ||
29 | #define _E1000_I210_H_ | ||
30 | |||
31 | extern s32 igb_update_flash_i210(struct e1000_hw *hw); | ||
32 | extern s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); | ||
33 | extern s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); | ||
34 | extern s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, | ||
35 | u16 words, u16 *data); | ||
36 | extern s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, | ||
37 | u16 words, u16 *data); | ||
38 | extern s32 igb_read_invm_i211(struct e1000_hw *hw, u16 address, u16 *data); | ||
39 | extern s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | ||
40 | extern void igb_release_swfw_sync_i210(struct e1000_hw *hw, u16 mask); | ||
41 | extern s32 igb_acquire_nvm_i210(struct e1000_hw *hw); | ||
42 | extern void igb_release_nvm_i210(struct e1000_hw *hw); | ||
43 | extern s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); | ||
44 | extern s32 igb_read_nvm_i211(struct e1000_hw *hw, u16 offset, u16 words, | ||
45 | u16 *data); | ||
46 | |||
47 | #define E1000_STM_OPCODE 0xDB00 | ||
48 | #define E1000_EEPROM_FLASH_SIZE_WORD 0x11 | ||
49 | |||
50 | #define INVM_DWORD_TO_RECORD_TYPE(invm_dword) \ | ||
51 | (u8)((invm_dword) & 0x7) | ||
52 | #define INVM_DWORD_TO_WORD_ADDRESS(invm_dword) \ | ||
53 | (u8)(((invm_dword) & 0x0000FE00) >> 9) | ||
54 | #define INVM_DWORD_TO_WORD_DATA(invm_dword) \ | ||
55 | (u16)(((invm_dword) & 0xFFFF0000) >> 16) | ||
56 | |||
57 | enum E1000_INVM_STRUCTURE_TYPE { | ||
58 | E1000_INVM_UNINITIALIZED_STRUCTURE = 0x00, | ||
59 | E1000_INVM_WORD_AUTOLOAD_STRUCTURE = 0x01, | ||
60 | E1000_INVM_CSR_AUTOLOAD_STRUCTURE = 0x02, | ||
61 | E1000_INVM_PHY_REGISTER_AUTOLOAD_STRUCTURE = 0x03, | ||
62 | E1000_INVM_RSA_KEY_SHA256_STRUCTURE = 0x04, | ||
63 | E1000_INVM_INVALIDATED_STRUCTURE = 0x0F, | ||
64 | }; | ||
65 | |||
66 | #define E1000_INVM_RSA_KEY_SHA256_DATA_SIZE_IN_DWORDS 8 | ||
67 | #define E1000_INVM_CSR_AUTOLOAD_DATA_SIZE_IN_DWORDS 1 | ||
68 | |||
69 | #define ID_LED_DEFAULT_I210 ((ID_LED_OFF1_ON2 << 8) | \ | ||
70 | (ID_LED_OFF1_OFF2 << 4) | \ | ||
71 | (ID_LED_DEF1_DEF2)) | ||
72 | #define ID_LED_DEFAULT_I210_SERDES ((ID_LED_DEF1_DEF2 << 8) | \ | ||
73 | (ID_LED_DEF1_DEF2 << 4) | \ | ||
74 | (ID_LED_DEF1_DEF2)) | ||
75 | |||
76 | #endif | ||