FreeBSD kernel E1000 device code
e1000_api.c
Go to the documentation of this file.
1/******************************************************************************
2 SPDX-License-Identifier: BSD-3-Clause
3
4 Copyright (c) 2001-2020, Intel Corporation
5 All rights reserved.
6
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9
10 1. Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer.
12
13 2. Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
16
17 3. Neither the name of the Intel Corporation nor the names of its
18 contributors may be used to endorse or promote products derived from
19 this software without specific prior written permission.
20
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 POSSIBILITY OF SUCH DAMAGE.
32
33******************************************************************************/
34/*$FreeBSD$*/
35
36#include "e1000_api.h"
37
46{
47 s32 ret_val = E1000_SUCCESS;
48
49 if (hw->mac.ops.init_params) {
50 ret_val = hw->mac.ops.init_params(hw);
51 if (ret_val) {
52 DEBUGOUT("MAC Initialization Error\n");
53 goto out;
54 }
55 } else {
56 DEBUGOUT("mac.init_mac_params was NULL\n");
57 ret_val = -E1000_ERR_CONFIG;
58 }
59
60out:
61 return ret_val;
62}
63
72{
73 s32 ret_val = E1000_SUCCESS;
74
75 if (hw->nvm.ops.init_params) {
76 ret_val = hw->nvm.ops.init_params(hw);
77 if (ret_val) {
78 DEBUGOUT("NVM Initialization Error\n");
79 goto out;
80 }
81 } else {
82 DEBUGOUT("nvm.init_nvm_params was NULL\n");
83 ret_val = -E1000_ERR_CONFIG;
84 }
85
86out:
87 return ret_val;
88}
89
98{
99 s32 ret_val = E1000_SUCCESS;
100
101 if (hw->phy.ops.init_params) {
102 ret_val = hw->phy.ops.init_params(hw);
103 if (ret_val) {
104 DEBUGOUT("PHY Initialization Error\n");
105 goto out;
106 }
107 } else {
108 DEBUGOUT("phy.init_phy_params was NULL\n");
109 ret_val = -E1000_ERR_CONFIG;
110 }
111
112out:
113 return ret_val;
114}
115
124{
125 s32 ret_val = E1000_SUCCESS;
126
127 if (hw->mbx.ops.init_params) {
128 ret_val = hw->mbx.ops.init_params(hw);
129 if (ret_val) {
130 DEBUGOUT("Mailbox Initialization Error\n");
131 goto out;
132 }
133 } else {
134 DEBUGOUT("mbx.init_mbx_params was NULL\n");
135 ret_val = -E1000_ERR_CONFIG;
136 }
137
138out:
139 return ret_val;
140}
141
152{
153 struct e1000_mac_info *mac = &hw->mac;
154 s32 ret_val = E1000_SUCCESS;
155
156 DEBUGFUNC("e1000_set_mac_type");
157
158 switch (hw->device_id) {
160 mac->type = e1000_82542;
161 break;
164 mac->type = e1000_82543;
165 break;
170 mac->type = e1000_82544;
171 break;
177 mac->type = e1000_82540;
178 break;
181 mac->type = e1000_82545;
182 break;
186 mac->type = e1000_82545_rev_3;
187 break;
191 mac->type = e1000_82546;
192 break;
199 mac->type = e1000_82546_rev_3;
200 break;
204 mac->type = e1000_82541;
205 break;
210 mac->type = e1000_82541_rev_2;
211 break;
214 mac->type = e1000_82547;
215 break;
217 mac->type = e1000_82547_rev_2;
218 break;
228 mac->type = e1000_82571;
229 break;
234 mac->type = e1000_82572;
235 break;
239 mac->type = e1000_82573;
240 break;
243 mac->type = e1000_82574;
244 break;
246 mac->type = e1000_82583;
247 break;
252 mac->type = e1000_80003es2lan;
253 break;
262 mac->type = e1000_ich8lan;
263 break;
276 mac->type = e1000_ich9lan;
277 break;
281 mac->type = e1000_ich10lan;
282 break;
287 mac->type = e1000_pchlan;
288 break;
291 mac->type = e1000_pch2lan;
292 break;
301 mac->type = e1000_pch_lpt;
302 break;
314 mac->type = e1000_pch_spt;
315 break;
328 mac->type = e1000_pch_cnp;
329 break;
336 mac->type = e1000_pch_tgp;
337 break;
342 mac->type = e1000_pch_adp;
343 break;
348 mac->type = e1000_pch_mtp;
349 break;
353 mac->type = e1000_82575;
354 break;
363 mac->type = e1000_82576;
364 break;
375 mac->type = e1000_82580;
376 break;
382 mac->type = e1000_i350;
383 break;
393 mac->type = e1000_i210;
394 break;
396 mac->type = e1000_i211;
397 break;
400 mac->type = e1000_vfadapt;
401 break;
405 break;
406
410 mac->type = e1000_i354;
411 break;
412 default:
413 /* Should never have loaded on this device */
414 ret_val = -E1000_ERR_MAC_INIT;
415 break;
416 }
417
418 return ret_val;
419}
420
433s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
434{
435 s32 ret_val;
436
437 /* Can't do much good without knowing the MAC type. */
438 ret_val = e1000_set_mac_type(hw);
439 if (ret_val) {
440 DEBUGOUT("ERROR: MAC type could not be set properly.\n");
441 goto out;
442 }
443
444 if (!hw->hw_addr) {
445 DEBUGOUT("ERROR: Registers not mapped\n");
446 ret_val = -E1000_ERR_CONFIG;
447 goto out;
448 }
449
450 /*
451 * Init function pointers to generic implementations. We do this first
452 * allowing a driver module to override it afterward.
453 */
458
459 /*
460 * Set up the init function pointers. These are functions within the
461 * adapter family file that sets up function pointers for the rest of
462 * the functions in that family.
463 */
464 switch (hw->mac.type) {
465 case e1000_82542:
467 break;
468 case e1000_82543:
469 case e1000_82544:
471 break;
472 case e1000_82540:
473 case e1000_82545:
475 case e1000_82546:
478 break;
479 case e1000_82541:
481 case e1000_82547:
484 break;
485 case e1000_82571:
486 case e1000_82572:
487 case e1000_82573:
488 case e1000_82574:
489 case e1000_82583:
491 break;
494 break;
495 case e1000_ich8lan:
496 case e1000_ich9lan:
497 case e1000_ich10lan:
498 case e1000_pchlan:
499 case e1000_pch2lan:
500 case e1000_pch_lpt:
501 case e1000_pch_spt:
502 case e1000_pch_cnp:
503 case e1000_pch_tgp:
504 case e1000_pch_adp:
505 case e1000_pch_mtp:
507 break;
508 case e1000_82575:
509 case e1000_82576:
510 case e1000_82580:
511 case e1000_i350:
512 case e1000_i354:
514 break;
515 case e1000_i210:
516 case e1000_i211:
518 break;
519 case e1000_vfadapt:
521 break;
524 break;
525 default:
526 DEBUGOUT("Hardware not supported\n");
527 ret_val = -E1000_ERR_CONFIG;
528 break;
529 }
530
531 /*
532 * Initialize the rest of the function pointers. These require some
533 * register reads/writes in some cases.
534 */
535 if (!(ret_val) && init_device) {
536 ret_val = e1000_init_mac_params(hw);
537 if (ret_val)
538 goto out;
539
540 ret_val = e1000_init_nvm_params(hw);
541 if (ret_val)
542 goto out;
543
544 ret_val = e1000_init_phy_params(hw);
545 if (ret_val)
546 goto out;
547
548 ret_val = e1000_init_mbx_params(hw);
549 if (ret_val)
550 goto out;
551 }
552
553out:
554 return ret_val;
555}
556
566{
567 if (hw->mac.ops.get_bus_info)
568 return hw->mac.ops.get_bus_info(hw);
569
570 return E1000_SUCCESS;
571}
572
581{
582 if (hw->mac.ops.clear_vfta)
583 hw->mac.ops.clear_vfta(hw);
584}
585
595void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
596{
597 if (hw->mac.ops.write_vfta)
598 hw->mac.ops.write_vfta(hw, offset, value);
599}
600
610void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list,
611 u32 mc_addr_count)
612{
614 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
615 mc_addr_count);
616}
617
627{
629}
630
640{
641 if (hw->mac.ops.check_for_link)
642 return hw->mac.ops.check_for_link(hw);
643
644 return -E1000_ERR_CONFIG;
645}
646
655{
656 if (hw->mac.ops.check_mng_mode)
657 return hw->mac.ops.check_mng_mode(hw);
658
659 return false;
660}
661
670s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
671{
672 return e1000_mng_write_dhcp_info_generic(hw, buffer, length);
673}
674
683{
684 if (hw->mac.ops.reset_hw)
685 return hw->mac.ops.reset_hw(hw);
686
687 return -E1000_ERR_CONFIG;
688}
689
698{
699 if (hw->mac.ops.init_hw)
700 return hw->mac.ops.init_hw(hw);
701
702 return -E1000_ERR_CONFIG;
703}
704
714{
715 if (hw->mac.ops.setup_link)
716 return hw->mac.ops.setup_link(hw);
717
718 return -E1000_ERR_CONFIG;
719}
720
731s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex)
732{
733 if (hw->mac.ops.get_link_up_info)
734 return hw->mac.ops.get_link_up_info(hw, speed, duplex);
735
736 return -E1000_ERR_CONFIG;
737}
738
748{
749 if (hw->mac.ops.setup_led)
750 return hw->mac.ops.setup_led(hw);
751
752 return E1000_SUCCESS;
753}
754
763{
764 if (hw->mac.ops.cleanup_led)
765 return hw->mac.ops.cleanup_led(hw);
766
767 return E1000_SUCCESS;
768}
769
779{
780 if (hw->mac.ops.blink_led)
781 return hw->mac.ops.blink_led(hw);
782
783 return E1000_SUCCESS;
784}
785
794{
795 if (hw->mac.ops.id_led_init)
796 return hw->mac.ops.id_led_init(hw);
797
798 return E1000_SUCCESS;
799}
800
809{
810 if (hw->mac.ops.led_on)
811 return hw->mac.ops.led_on(hw);
812
813 return E1000_SUCCESS;
814}
815
824{
825 if (hw->mac.ops.led_off)
826 return hw->mac.ops.led_off(hw);
827
828 return E1000_SUCCESS;
829}
830
839{
841}
842
851{
853}
854
864{
866}
867
876{
879}
880
889int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
890{
891 if (hw->mac.ops.rar_set)
892 return hw->mac.ops.rar_set(hw, addr, index);
893
894 return E1000_SUCCESS;
895}
896
904{
906 return hw->mac.ops.validate_mdi_setting(hw);
907
908 return E1000_SUCCESS;
909}
910
920u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr)
921{
922 return e1000_hash_mc_addr_generic(hw, mc_addr);
923}
924
935{
937}
938
951s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length,
952 u16 offset, u8 *sum)
953{
954 return e1000_mng_host_if_write_generic(hw, buffer, length, offset, sum);
955}
956
966{
968}
969
981{
983}
984
993{
994 if (hw->mac.ops.set_obff_timer)
995 return hw->mac.ops.set_obff_timer(hw, itr);
996
997 return E1000_SUCCESS;
998}
999
1008{
1009 if (hw->phy.ops.check_reset_block)
1010 return hw->phy.ops.check_reset_block(hw);
1011
1012 return E1000_SUCCESS;
1013}
1014
1024s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1025{
1026 if (hw->phy.ops.read_reg)
1027 return hw->phy.ops.read_reg(hw, offset, data);
1028
1029 return E1000_SUCCESS;
1030}
1031
1041s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
1042{
1043 if (hw->phy.ops.write_reg)
1044 return hw->phy.ops.write_reg(hw, offset, data);
1045
1046 return E1000_SUCCESS;
1047}
1048
1057{
1058 if (hw->phy.ops.release)
1059 hw->phy.ops.release(hw);
1060}
1061
1070{
1071 if (hw->phy.ops.acquire)
1072 return hw->phy.ops.acquire(hw);
1073
1074 return E1000_SUCCESS;
1075}
1076
1082{
1083 if (hw->phy.ops.cfg_on_link_up)
1084 return hw->phy.ops.cfg_on_link_up(hw);
1085
1086 return E1000_SUCCESS;
1087}
1088
1099s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1100{
1101 return e1000_read_kmrn_reg_generic(hw, offset, data);
1102}
1103
1114s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data)
1115{
1116 return e1000_write_kmrn_reg_generic(hw, offset, data);
1117}
1118
1128{
1129 if (hw->phy.ops.get_cable_length)
1130 return hw->phy.ops.get_cable_length(hw);
1131
1132 return E1000_SUCCESS;
1133}
1134
1144{
1145 if (hw->phy.ops.get_info)
1146 return hw->phy.ops.get_info(hw);
1147
1148 return E1000_SUCCESS;
1149}
1150
1159{
1160 if (hw->phy.ops.reset)
1161 return hw->phy.ops.reset(hw);
1162
1163 return E1000_SUCCESS;
1164}
1165
1174{
1175 if (hw->phy.ops.commit)
1176 return hw->phy.ops.commit(hw);
1177
1178 return E1000_SUCCESS;
1179}
1180
1195s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active)
1196{
1197 if (hw->phy.ops.set_d0_lplu_state)
1198 return hw->phy.ops.set_d0_lplu_state(hw, active);
1199
1200 return E1000_SUCCESS;
1201}
1202
1217s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active)
1218{
1219 if (hw->phy.ops.set_d3_lplu_state)
1220 return hw->phy.ops.set_d3_lplu_state(hw, active);
1221
1222 return E1000_SUCCESS;
1223}
1224
1234{
1235 if (hw->mac.ops.read_mac_addr)
1236 return hw->mac.ops.read_mac_addr(hw);
1237
1238 return e1000_read_mac_addr_generic(hw);
1239}
1240
1252s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
1253{
1254 return e1000_read_pba_string_generic(hw, pba_num, pba_num_size);
1255}
1256
1267s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size)
1268{
1269 return e1000_read_pba_length_generic(hw, pba_num_size);
1270}
1271
1282s32 e1000_read_pba_num(struct e1000_hw *hw, u32 *pba_num)
1283{
1284 return e1000_read_pba_num_generic(hw, pba_num);
1285}
1286
1295{
1296 if (hw->nvm.ops.validate)
1297 return hw->nvm.ops.validate(hw);
1298
1299 return -E1000_ERR_CONFIG;
1300}
1301
1310{
1311 if (hw->nvm.ops.update)
1312 return hw->nvm.ops.update(hw);
1313
1314 return -E1000_ERR_CONFIG;
1315}
1316
1325{
1326 if (hw->nvm.ops.reload)
1327 hw->nvm.ops.reload(hw);
1328}
1329
1340s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1341{
1342 if (hw->nvm.ops.read)
1343 return hw->nvm.ops.read(hw, offset, words, data);
1344
1345 return -E1000_ERR_CONFIG;
1346}
1347
1358s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1359{
1360 if (hw->nvm.ops.write)
1361 return hw->nvm.ops.write(hw, offset, words, data);
1362
1363 return E1000_SUCCESS;
1364}
1365
1377 u8 data)
1378{
1379 return e1000_write_8bit_ctrl_reg_generic(hw, reg, offset, data);
1380}
1381
1390{
1391 if (hw->phy.ops.power_up)
1392 hw->phy.ops.power_up(hw);
1393
1394 e1000_setup_link(hw);
1395}
1396
1405{
1406 if (hw->phy.ops.power_down)
1407 hw->phy.ops.power_down(hw);
1408}
1409
1417{
1418 if (hw->mac.ops.power_up_serdes)
1419 hw->mac.ops.power_up_serdes(hw);
1420}
1421
1429{
1430 if (hw->mac.ops.shutdown_serdes)
1431 hw->mac.ops.shutdown_serdes(hw);
1432}
1433
void e1000_init_function_pointers_80003es2lan(struct e1000_hw *hw)
void e1000_init_function_pointers_82540(struct e1000_hw *hw)
Definition: e1000_82540.c:256
void e1000_init_function_pointers_82541(struct e1000_hw *hw)
Definition: e1000_82541.c:282
void e1000_init_function_pointers_82542(struct e1000_hw *hw)
Definition: e1000_82542.c:160
void e1000_init_function_pointers_82543(struct e1000_hw *hw)
Definition: e1000_82543.c:270
void e1000_init_function_pointers_82571(struct e1000_hw *hw)
Definition: e1000_82571.c:445
void e1000_init_function_pointers_82575(struct e1000_hw *hw)
Definition: e1000_82575.c:526
s32 e1000_set_mac_type(struct e1000_hw *hw)
Definition: e1000_api.c:151
s32 e1000_setup_link(struct e1000_hw *hw)
Definition: e1000_api.c:713
s32 e1000_force_mac_fc(struct e1000_hw *hw)
Definition: e1000_api.c:626
s32 e1000_led_on(struct e1000_hw *hw)
Definition: e1000_api.c:808
s32 e1000_init_phy_params(struct e1000_hw *hw)
Definition: e1000_api.c:97
void e1000_update_adaptive(struct e1000_hw *hw)
Definition: e1000_api.c:850
s32 e1000_check_for_link(struct e1000_hw *hw)
Definition: e1000_api.c:639
s32 e1000_phy_hw_reset(struct e1000_hw *hw)
Definition: e1000_api.c:1158
s32 e1000_get_bus_info(struct e1000_hw *hw)
Definition: e1000_api.c:565
s32 e1000_init_nvm_params(struct e1000_hw *hw)
Definition: e1000_api.c:71
void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw)
Definition: e1000_api.c:1416
s32 e1000_write_8bit_ctrl_reg(struct e1000_hw *hw, u32 reg, u32 offset, u8 data)
Definition: e1000_api.c:1376
s32 e1000_disable_pcie_master(struct e1000_hw *hw)
Definition: e1000_api.c:863
s32 e1000_reset_hw(struct e1000_hw *hw)
Definition: e1000_api.c:682
s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex)
Definition: e1000_api.c:731
s32 e1000_id_led_init(struct e1000_hw *hw)
Definition: e1000_api.c:793
void e1000_clear_vfta(struct e1000_hw *hw)
Definition: e1000_api.c:580
s32 e1000_check_reset_block(struct e1000_hw *hw)
Definition: e1000_api.c:1007
void e1000_config_collision_dist(struct e1000_hw *hw)
Definition: e1000_api.c:875
s32 e1000_get_cable_length(struct e1000_hw *hw)
Definition: e1000_api.c:1127
s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
Definition: e1000_api.c:1252
s32 e1000_init_mac_params(struct e1000_hw *hw)
Definition: e1000_api.c:45
s32 e1000_read_pba_num(struct e1000_hw *hw, u32 *pba_num)
Definition: e1000_api.c:1282
s32 e1000_phy_commit(struct e1000_hw *hw)
Definition: e1000_api.c:1173
s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr)
Definition: e1000_api.c:992
void e1000_power_down_phy(struct e1000_hw *hw)
Definition: e1000_api.c:1404
s32 e1000_blink_led(struct e1000_hw *hw)
Definition: e1000_api.c:778
int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
Definition: e1000_api.c:889
s32 e1000_init_hw(struct e1000_hw *hw)
Definition: e1000_api.c:697
void e1000_reload_nvm(struct e1000_hw *hw)
Definition: e1000_api.c:1324
void e1000_reset_adaptive(struct e1000_hw *hw)
Definition: e1000_api.c:838
void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
Definition: e1000_api.c:595
void e1000_release_phy(struct e1000_hw *hw)
Definition: e1000_api.c:1056
s32 e1000_cleanup_led(struct e1000_hw *hw)
Definition: e1000_api.c:762
s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
Definition: e1000_api.c:1358
s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active)
Definition: e1000_api.c:1195
s32 e1000_get_phy_info(struct e1000_hw *hw)
Definition: e1000_api.c:1143
void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw)
Definition: e1000_api.c:1428
s32 e1000_update_nvm_checksum(struct e1000_hw *hw)
Definition: e1000_api.c:1309
s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data)
Definition: e1000_api.c:1114
s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
Definition: e1000_api.c:980
s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data)
Definition: e1000_api.c:1099
s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length, u16 offset, u8 *sum)
Definition: e1000_api.c:951
u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr)
Definition: e1000_api.c:920
s32 e1000_validate_nvm_checksum(struct e1000_hw *hw)
Definition: e1000_api.c:1294
s32 e1000_led_off(struct e1000_hw *hw)
Definition: e1000_api.c:823
s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size)
Definition: e1000_api.c:1267
s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
Definition: e1000_api.c:670
s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active)
Definition: e1000_api.c:1217
s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
Definition: e1000_api.c:1340
s32 e1000_init_mbx_params(struct e1000_hw *hw)
Definition: e1000_api.c:123
bool e1000_enable_tx_pkt_filtering(struct e1000_hw *hw)
Definition: e1000_api.c:934
s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
Definition: e1000_api.c:433
bool e1000_check_mng_mode(struct e1000_hw *hw)
Definition: e1000_api.c:654
s32 e1000_acquire_phy(struct e1000_hw *hw)
Definition: e1000_api.c:1069
void e1000_power_up_phy(struct e1000_hw *hw)
Definition: e1000_api.c:1389
s32 e1000_read_mac_addr(struct e1000_hw *hw)
Definition: e1000_api.c:1233
s32 e1000_setup_led(struct e1000_hw *hw)
Definition: e1000_api.c:747
s32 e1000_cfg_on_link_up(struct e1000_hw *hw)
Definition: e1000_api.c:1081
s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
Definition: e1000_api.c:1041
void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list, u32 mc_addr_count)
Definition: e1000_api.c:610
s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
Definition: e1000_api.c:1024
s32 e1000_mng_write_cmd_header(struct e1000_hw *hw, struct e1000_host_mng_command_header *hdr)
Definition: e1000_api.c:964
s32 e1000_validate_mdi_setting(struct e1000_hw *hw)
Definition: e1000_api.c:903
void e1000_init_function_pointers_vf(struct e1000_hw *hw)
Definition: e1000_vf.c:145
void e1000_init_function_pointers_i210(struct e1000_hw *hw)
Definition: e1000_i210.c:661
void e1000_init_function_pointers_ich8lan(struct e1000_hw *hw)
#define E1000_ERR_CONFIG
#define E1000_SUCCESS
#define E1000_ERR_MAC_INIT
#define E1000_DEV_ID_82571EB_SERDES_DUAL
Definition: e1000_hw.h:84
#define E1000_DEV_ID_82572EI
Definition: e1000_hw.h:93
#define E1000_DEV_ID_PCH_LBG_I219_LM3
Definition: e1000_hw.h:145
#define E1000_DEV_ID_PCH_LPT_I217_V
Definition: e1000_hw.h:134
#define E1000_DEV_ID_I210_SERDES
Definition: e1000_hw.h:208
#define E1000_DEV_ID_PCH_LPTLP_I218_LM
Definition: e1000_hw.h:135
#define E1000_DEV_ID_I350_SGMII
Definition: e1000_hw.h:202
#define E1000_DEV_ID_PCH_CMP_I219_V12
Definition: e1000_hw.h:163
#define E1000_DEV_ID_PCH_TGP_I219_LM15
Definition: e1000_hw.h:168
#define E1000_DEV_ID_82574LA
Definition: e1000_hw.h:98
#define E1000_DEV_ID_PCH_TGP_I219_V14
Definition: e1000_hw.h:167
#define E1000_DEV_ID_82545GM_SERDES
Definition: e1000_hw.h:61
#define E1000_DEV_ID_I211_COPPER
Definition: e1000_hw.h:213
#define E1000_DEV_ID_I354_BACKPLANE_2_5GBPS
Definition: e1000_hw.h:216
#define E1000_DEV_ID_PCH_SPT_I219_V4
Definition: e1000_hw.h:147
#define E1000_DEV_ID_82540EM_LOM
Definition: e1000_hw.h:53
#define E1000_DEV_ID_82547GI
Definition: e1000_hw.h:80
#define E1000_DEV_ID_PCH_SPT_I219_LM2
Definition: e1000_hw.h:143
#define E1000_DEV_ID_PCH_M_HV_LM
Definition: e1000_hw.h:127
#define E1000_DEV_ID_ICH8_IFE_G
Definition: e1000_hw.h:110
#define E1000_DEV_ID_PCH_CMP_I219_LM12
Definition: e1000_hw.h:162
#define E1000_DEV_ID_82542
Definition: e1000_hw.h:45
#define E1000_DEV_ID_ICH9_IGP_M_V
Definition: e1000_hw.h:114
#define E1000_DEV_ID_ICH10_D_BM_V
Definition: e1000_hw.h:126
#define E1000_DEV_ID_PCH_ADL_I219_V16
Definition: e1000_hw.h:171
#define E1000_DEV_ID_82576_VF
Definition: e1000_hw.h:186
#define E1000_DEV_ID_I210_COPPER_OEM1
Definition: e1000_hw.h:205
#define E1000_DEV_ID_PCH_SPT_I219_LM
Definition: e1000_hw.h:141
#define E1000_DEV_ID_82571PT_QUAD_COPPER
Definition: e1000_hw.h:87
#define E1000_DEV_ID_ICH8_IGP_M_AMT
Definition: e1000_hw.h:105
#define E1000_DEV_ID_82544GC_LOM
Definition: e1000_hw.h:51
#define E1000_DEV_ID_82576_QUAD_COPPER_ET2
Definition: e1000_hw.h:182
#define E1000_DEV_ID_PCH_SPT_I219_V
Definition: e1000_hw.h:142
#define E1000_DEV_ID_80003ES2LAN_COPPER_DPT
Definition: e1000_hw.h:100
#define E1000_DEV_ID_ICH9_IGP_AMT
Definition: e1000_hw.h:115
#define E1000_DEV_ID_PCH_ICP_I219_LM9
Definition: e1000_hw.h:156
#define E1000_DEV_ID_ICH8_82567V_3
Definition: e1000_hw.h:104
#define E1000_DEV_ID_82540EP
Definition: e1000_hw.h:55
#define E1000_DEV_ID_82541ER_LOM
Definition: e1000_hw.h:73
#define E1000_DEV_ID_ICH9_IFE_G
Definition: e1000_hw.h:120
#define E1000_DEV_ID_PCH_SPT_I219_V2
Definition: e1000_hw.h:144
#define E1000_DEV_ID_PCH_ADL_I219_LM17
Definition: e1000_hw.h:172
#define E1000_DEV_ID_82575EB_FIBER_SERDES
Definition: e1000_hw.h:191
#define E1000_DEV_ID_I350_VF_HV
Definition: e1000_hw.h:189
#define E1000_DEV_ID_ICH9_IGP_M
Definition: e1000_hw.h:112
#define E1000_DEV_ID_82546GB_COPPER
Definition: e1000_hw.h:65
#define E1000_DEV_ID_82576_QUAD_COPPER
Definition: e1000_hw.h:181
#define E1000_DEV_ID_I350_SERDES
Definition: e1000_hw.h:201
#define E1000_DEV_ID_ICH10_R_BM_LF
Definition: e1000_hw.h:122
#define E1000_DEV_ID_82541GI_LF
Definition: e1000_hw.h:76
#define E1000_DEV_ID_PCH_I218_LM2
Definition: e1000_hw.h:137
#define E1000_DEV_ID_PCH_TGP_I219_LM13
Definition: e1000_hw.h:164
#define E1000_DEV_ID_82576
Definition: e1000_hw.h:178
#define E1000_DEV_ID_82572EI_FIBER
Definition: e1000_hw.h:91
#define E1000_DEV_ID_PCH_CNP_I219_LM7
Definition: e1000_hw.h:152
#define E1000_DEV_ID_82571EB_QUAD_COPPER
Definition: e1000_hw.h:86
#define E1000_DEV_ID_82575EB_COPPER
Definition: e1000_hw.h:190
#define E1000_DEV_ID_PCH_D_HV_DM
Definition: e1000_hw.h:129
#define E1000_DEV_ID_82545GM_COPPER
Definition: e1000_hw.h:59
#define E1000_DEV_ID_ICH8_IGP_C
Definition: e1000_hw.h:107
#define E1000_DEV_ID_PCH_MTP_I219_V18
Definition: e1000_hw.h:175
#define E1000_DEV_ID_82547EI
Definition: e1000_hw.h:78
#define E1000_DEV_ID_ICH9_BM
Definition: e1000_hw.h:116
#define E1000_DEV_ID_PCH_CMP_I219_LM11
Definition: e1000_hw.h:160
#define E1000_DEV_ID_PCH_MTP_I219_V19
Definition: e1000_hw.h:177
#define E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3
Definition: e1000_hw.h:70
#define E1000_DEV_ID_I354_BACKPLANE_1GBPS
Definition: e1000_hw.h:214
#define E1000_DEV_ID_80003ES2LAN_SERDES_DPT
Definition: e1000_hw.h:101
#define E1000_DEV_ID_82545EM_COPPER
Definition: e1000_hw.h:57
#define E1000_DEV_ID_I350_VF
Definition: e1000_hw.h:188
#define E1000_DEV_ID_82541GI
Definition: e1000_hw.h:75
#define E1000_DEV_ID_82573E_IAMT
Definition: e1000_hw.h:95
#define E1000_DEV_ID_82571EB_COPPER
Definition: e1000_hw.h:81
#define E1000_DEV_ID_82576_FIBER
Definition: e1000_hw.h:179
#define E1000_DEV_ID_ICH8_IGP_AMT
Definition: e1000_hw.h:106
#define E1000_DEV_ID_82571EB_QUAD_FIBER
Definition: e1000_hw.h:88
#define E1000_DEV_ID_82540EM
Definition: e1000_hw.h:52
#define E1000_DEV_ID_PCH_SPT_I219_V5
Definition: e1000_hw.h:149
#define E1000_DEV_ID_82580_COPPER_DUAL
Definition: e1000_hw.h:197
#define E1000_DEV_ID_82576_SERDES
Definition: e1000_hw.h:180
#define E1000_DEV_ID_82580_FIBER
Definition: e1000_hw.h:194
#define E1000_DEV_ID_PCH_CMP_I219_V11
Definition: e1000_hw.h:161
#define E1000_DEV_ID_PCH_ADL_I219_V17
Definition: e1000_hw.h:173
#define E1000_DEV_ID_PCH_ICP_I219_V9
Definition: e1000_hw.h:157
#define E1000_DEV_ID_I210_COPPER
Definition: e1000_hw.h:204
#define E1000_DEV_ID_PCH_TGP_I219_V15
Definition: e1000_hw.h:169
#define E1000_DEV_ID_PCH_I218_V2
Definition: e1000_hw.h:138
#define E1000_DEV_ID_82574L
Definition: e1000_hw.h:97
#define E1000_DEV_ID_82545EM_FIBER
Definition: e1000_hw.h:58
#define E1000_DEV_ID_ICH10_R_BM_V
Definition: e1000_hw.h:123
#define E1000_DEV_ID_82580_COPPER
Definition: e1000_hw.h:193
#define E1000_DEV_ID_PCH2_LV_LM
Definition: e1000_hw.h:131
#define E1000_DEV_ID_I210_SERDES_FLASHLESS
Definition: e1000_hw.h:211
@ e1000_82580
Definition: e1000_hw.h:271
@ e1000_ich8lan
Definition: e1000_hw.h:258
@ e1000_i354
Definition: e1000_hw.h:273
@ e1000_i210
Definition: e1000_hw.h:274
@ e1000_82547_rev_2
Definition: e1000_hw.h:251
@ e1000_82541
Definition: e1000_hw.h:248
@ e1000_i350
Definition: e1000_hw.h:272
@ e1000_pch_mtp
Definition: e1000_hw.h:268
@ e1000_82540
Definition: e1000_hw.h:243
@ e1000_82573
Definition: e1000_hw.h:254
@ e1000_pch2lan
Definition: e1000_hw.h:262
@ e1000_82572
Definition: e1000_hw.h:253
@ e1000_82575
Definition: e1000_hw.h:269
@ e1000_82543
Definition: e1000_hw.h:241
@ e1000_pch_cnp
Definition: e1000_hw.h:265
@ e1000_82576
Definition: e1000_hw.h:270
@ e1000_pch_spt
Definition: e1000_hw.h:264
@ e1000_82541_rev_2
Definition: e1000_hw.h:249
@ e1000_82544
Definition: e1000_hw.h:242
@ e1000_82547
Definition: e1000_hw.h:250
@ e1000_ich9lan
Definition: e1000_hw.h:259
@ e1000_82571
Definition: e1000_hw.h:252
@ e1000_82545_rev_3
Definition: e1000_hw.h:245
@ e1000_ich10lan
Definition: e1000_hw.h:260
@ e1000_82546
Definition: e1000_hw.h:246
@ e1000_80003es2lan
Definition: e1000_hw.h:257
@ e1000_i211
Definition: e1000_hw.h:275
@ e1000_82545
Definition: e1000_hw.h:244
@ e1000_82574
Definition: e1000_hw.h:255
@ e1000_82546_rev_3
Definition: e1000_hw.h:247
@ e1000_pch_lpt
Definition: e1000_hw.h:263
@ e1000_82583
Definition: e1000_hw.h:256
@ e1000_pch_adp
Definition: e1000_hw.h:267
@ e1000_vfadapt_i350
Definition: e1000_hw.h:277
@ e1000_pchlan
Definition: e1000_hw.h:261
@ e1000_pch_tgp
Definition: e1000_hw.h:266
@ e1000_82542
Definition: e1000_hw.h:240
@ e1000_vfadapt
Definition: e1000_hw.h:276
#define E1000_DEV_ID_82573E
Definition: e1000_hw.h:94
#define E1000_DEV_ID_80003ES2LAN_SERDES_SPT
Definition: e1000_hw.h:103
#define E1000_DEV_ID_PCH_CNP_I219_LM6
Definition: e1000_hw.h:150
#define E1000_DEV_ID_82573L
Definition: e1000_hw.h:96
#define E1000_DEV_ID_82546GB_FIBER
Definition: e1000_hw.h:66
#define E1000_DEV_ID_DH89XXCC_SGMII
Definition: e1000_hw.h:217
#define E1000_DEV_ID_82544EI_FIBER
Definition: e1000_hw.h:49
#define E1000_DEV_ID_ICH8_IFE
Definition: e1000_hw.h:108
#define E1000_DEV_ID_ICH10_D_BM_LM
Definition: e1000_hw.h:124
#define E1000_DEV_ID_PCH_MTP_I219_LM18
Definition: e1000_hw.h:174
#define E1000_DEV_ID_82546GB_SERDES
Definition: e1000_hw.h:67
#define E1000_DEV_ID_82546EB_COPPER
Definition: e1000_hw.h:62
#define E1000_DEV_ID_82576_NS_SERDES
Definition: e1000_hw.h:184
#define E1000_DEV_ID_PCH_I218_LM3
Definition: e1000_hw.h:139
#define E1000_DEV_ID_82540EP_LOM
Definition: e1000_hw.h:54
#define E1000_DEV_ID_PCH_CMP_I219_V10
Definition: e1000_hw.h:159
#define E1000_DEV_ID_82543GC_FIBER
Definition: e1000_hw.h:46
#define E1000_DEV_ID_PCH_D_HV_DC
Definition: e1000_hw.h:130
#define E1000_DEV_ID_ICH9_IFE_GT
Definition: e1000_hw.h:119
#define E1000_DEV_ID_ICH9_IGP_M_AMT
Definition: e1000_hw.h:113
#define E1000_DEV_ID_82571EB_SERDES_QUAD
Definition: e1000_hw.h:85
#define E1000_DEV_ID_82544EI_COPPER
Definition: e1000_hw.h:48
#define E1000_DEV_ID_82544GC_COPPER
Definition: e1000_hw.h:50
#define E1000_DEV_ID_80003ES2LAN_COPPER_SPT
Definition: e1000_hw.h:102
#define E1000_DEV_ID_PCH_ICP_I219_V8
Definition: e1000_hw.h:155
#define E1000_DEV_ID_82576_SERDES_QUAD
Definition: e1000_hw.h:185
#define E1000_DEV_ID_PCH_LPTLP_I218_V
Definition: e1000_hw.h:136
#define E1000_DEV_ID_PCH_CNP_I219_V7
Definition: e1000_hw.h:153
#define E1000_DEV_ID_PCH_CNP_I219_V6
Definition: e1000_hw.h:151
#define E1000_DEV_ID_PCH_SPT_I219_LM5
Definition: e1000_hw.h:148
#define E1000_DEV_ID_PCH_ICP_I219_LM8
Definition: e1000_hw.h:154
#define E1000_DEV_ID_82541GI_MOBILE
Definition: e1000_hw.h:77
#define E1000_DEV_ID_I210_FIBER
Definition: e1000_hw.h:207
#define E1000_DEV_ID_82571EB_SERDES
Definition: e1000_hw.h:83
#define E1000_DEV_ID_I354_SGMII
Definition: e1000_hw.h:215
#define E1000_DEV_ID_82580_SGMII
Definition: e1000_hw.h:196
#define E1000_DEV_ID_PCH_LPT_I217_LM
Definition: e1000_hw.h:133
#define E1000_DEV_ID_PCH2_LV_V
Definition: e1000_hw.h:132
#define E1000_DEV_ID_PCH_TGP_I219_V13
Definition: e1000_hw.h:165
#define E1000_DEV_ID_82580_QUAD_FIBER
Definition: e1000_hw.h:198
#define E1000_DEV_ID_I350_COPPER
Definition: e1000_hw.h:199
#define E1000_DEV_ID_DH89XXCC_SERDES
Definition: e1000_hw.h:218
#define E1000_DEV_ID_ICH9_IFE
Definition: e1000_hw.h:118
#define E1000_DEV_ID_ICH10_R_BM_LM
Definition: e1000_hw.h:121
#define E1000_DEV_ID_I350_DA4
Definition: e1000_hw.h:203
#define E1000_DEV_ID_PCH_MTP_I219_LM19
Definition: e1000_hw.h:176
#define E1000_DEV_ID_I350_FIBER
Definition: e1000_hw.h:200
#define E1000_DEV_ID_82546GB_PCIE
Definition: e1000_hw.h:68
#define E1000_DEV_ID_ICH9_IGP_C
Definition: e1000_hw.h:117
#define E1000_DEV_ID_82576_VF_HV
Definition: e1000_hw.h:187
#define E1000_DEV_ID_DH89XXCC_SFP
Definition: e1000_hw.h:220
#define E1000_DEV_ID_DH89XXCC_BACKPLANE
Definition: e1000_hw.h:219
#define E1000_DEV_ID_82541EI
Definition: e1000_hw.h:71
#define E1000_DEV_ID_PCH_CMP_I219_LM10
Definition: e1000_hw.h:158
#define E1000_DEV_ID_82546EB_FIBER
Definition: e1000_hw.h:63
#define E1000_DEV_ID_ICH10_D_BM_LF
Definition: e1000_hw.h:125
#define E1000_DEV_ID_82580_SERDES
Definition: e1000_hw.h:195
#define E1000_DEV_ID_PCH_ADL_I219_LM16
Definition: e1000_hw.h:170
#define E1000_DEV_ID_82546GB_QUAD_COPPER
Definition: e1000_hw.h:69
#define E1000_DEV_ID_PCH_TGP_I219_LM14
Definition: e1000_hw.h:166
#define E1000_DEV_ID_82575GB_QUAD_COPPER
Definition: e1000_hw.h:192
#define E1000_DEV_ID_I210_COPPER_FLASHLESS
Definition: e1000_hw.h:210
#define E1000_DEV_ID_I210_SGMII
Definition: e1000_hw.h:209
#define E1000_DEV_ID_82571EB_FIBER
Definition: e1000_hw.h:82
#define E1000_DEV_ID_82540EP_LP
Definition: e1000_hw.h:56
#define E1000_DEV_ID_82541EI_MOBILE
Definition: e1000_hw.h:72
#define E1000_DEV_ID_82571EB_QUAD_COPPER_LP
Definition: e1000_hw.h:89
#define E1000_DEV_ID_ICH8_IGP_M
Definition: e1000_hw.h:111
#define E1000_DEV_ID_I210_SGMII_FLASHLESS
Definition: e1000_hw.h:212
#define E1000_DEV_ID_PCH_SPT_I219_LM4
Definition: e1000_hw.h:146
#define E1000_DEV_ID_82547EI_MOBILE
Definition: e1000_hw.h:79
#define E1000_DEV_ID_82546EB_QUAD_COPPER
Definition: e1000_hw.h:64
#define E1000_DEV_ID_82545GM_FIBER
Definition: e1000_hw.h:60
#define E1000_DEV_ID_82576_NS
Definition: e1000_hw.h:183
#define E1000_DEV_ID_ICH8_IFE_GT
Definition: e1000_hw.h:109
#define E1000_DEV_ID_82543GC_COPPER
Definition: e1000_hw.h:47
#define E1000_DEV_ID_82572EI_SERDES
Definition: e1000_hw.h:92
#define E1000_DEV_ID_I210_COPPER_IT
Definition: e1000_hw.h:206
#define E1000_DEV_ID_PCH_I218_V3
Definition: e1000_hw.h:140
#define E1000_DEV_ID_82572EI_COPPER
Definition: e1000_hw.h:90
#define E1000_DEV_ID_PCH_M_HV_LC
Definition: e1000_hw.h:128
#define E1000_DEV_ID_82583V
Definition: e1000_hw.h:99
#define E1000_DEV_ID_82541ER
Definition: e1000_hw.h:74
u32 e1000_hash_mc_addr_generic(struct e1000_hw *hw, u8 *mc_addr)
Definition: e1000_mac.c:524
void e1000_reset_adaptive_generic(struct e1000_hw *hw)
Definition: e1000_mac.c:2060
void e1000_init_mac_ops_generic(struct e1000_hw *hw)
Definition: e1000_mac.c:48
void e1000_update_adaptive_generic(struct e1000_hw *hw)
Definition: e1000_mac.c:2088
s32 e1000_force_mac_fc_generic(struct e1000_hw *hw)
Definition: e1000_mac.c:1297
s32 e1000_disable_pcie_master_generic(struct e1000_hw *hw)
Definition: e1000_mac.c:2023
s32 e1000_write_8bit_ctrl_reg_generic(struct e1000_hw *hw, u32 reg, u32 offset, u8 data)
Definition: e1000_mac.c:2167
bool e1000_enable_tx_pkt_filtering_generic(struct e1000_hw *hw)
Definition: e1000_manage.c:132
s32 e1000_mng_write_dhcp_info_generic(struct e1000_hw *hw, u8 *buffer, u16 length)
Definition: e1000_manage.c:298
s32 e1000_mng_enable_host_if_generic(struct e1000_hw *hw)
Definition: e1000_manage.c:73
s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer, u16 length, u16 offset, u8 *sum)
Definition: e1000_manage.c:226
s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw, struct e1000_host_mng_command_header *hdr)
Definition: e1000_manage.c:192
void e1000_init_mbx_ops_generic(struct e1000_hw *hw)
Definition: e1000_mbx.c:307
s32 e1000_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num)
Definition: e1000_nvm.c:950
s32 e1000_read_mac_addr_generic(struct e1000_hw *hw)
Definition: e1000_nvm.c:1174
s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
Definition: e1000_nvm.c:775
s32 e1000_read_pba_length_generic(struct e1000_hw *hw, u32 *pba_num_size)
Definition: e1000_nvm.c:891
void e1000_init_nvm_ops_generic(struct e1000_hw *hw)
Definition: e1000_nvm.c:46
uint8_t u8
Definition: e1000_osdep.h:124
#define DEBUGFUNC(F)
Definition: e1000_osdep.h:115
uint16_t u16
Definition: e1000_osdep.h:123
#define DEBUGOUT(...)
Definition: e1000_osdep.h:109
int32_t s32
Definition: e1000_osdep.h:126
uint32_t u32
Definition: e1000_osdep.h:122
s32 e1000_read_kmrn_reg_generic(struct e1000_hw *hw, u32 offset, u16 *data)
Definition: e1000_phy.c:919
void e1000_init_phy_ops_generic(struct e1000_hw *hw)
Definition: e1000_phy.c:71
s32 e1000_write_kmrn_reg_generic(struct e1000_hw *hw, u32 offset, u16 data)
Definition: e1000_phy.c:990
struct e1000_mac_info mac
Definition: e1000_hw.h:1028
struct e1000_nvm_info nvm
Definition: e1000_hw.h:1031
u8 * hw_addr
Definition: e1000_hw.h:1024
struct e1000_mbx_info mbx
Definition: e1000_hw.h:1033
u16 device_id
Definition: e1000_hw.h:1047
struct e1000_phy_info phy
Definition: e1000_hw.h:1030
enum e1000_mac_type type
Definition: e1000_hw.h:815
u8 addr[ETHER_ADDR_LEN]
Definition: e1000_hw.h:812
struct e1000_mac_operations ops
Definition: e1000_hw.h:811
s32(* setup_led)(struct e1000_hw *)
Definition: e1000_hw.h:744
s32(* id_led_init)(struct e1000_hw *)
Definition: e1000_hw.h:725
s32(* get_link_up_info)(struct e1000_hw *, u16 *, u16 *)
Definition: e1000_hw.h:734
s32(* validate_mdi_setting)(struct e1000_hw *)
Definition: e1000_hw.h:749
s32(* check_for_link)(struct e1000_hw *)
Definition: e1000_hw.h:728
void(* config_collision_dist)(struct e1000_hw *)
Definition: e1000_hw.h:746
void(* clear_vfta)(struct e1000_hw *)
Definition: e1000_hw.h:731
s32(* blink_led)(struct e1000_hw *)
Definition: e1000_hw.h:726
s32(* reset_hw)(struct e1000_hw *)
Definition: e1000_hw.h:738
s32(* set_obff_timer)(struct e1000_hw *, u32)
Definition: e1000_hw.h:750
s32(* led_on)(struct e1000_hw *)
Definition: e1000_hw.h:735
s32(* read_mac_addr)(struct e1000_hw *)
Definition: e1000_hw.h:748
void(* write_vfta)(struct e1000_hw *, u32, u32)
Definition: e1000_hw.h:745
int(* rar_set)(struct e1000_hw *, u8 *, u32)
Definition: e1000_hw.h:747
s32(* init_hw)(struct e1000_hw *)
Definition: e1000_hw.h:739
s32(* setup_link)(struct e1000_hw *)
Definition: e1000_hw.h:742
void(* power_up_serdes)(struct e1000_hw *)
Definition: e1000_hw.h:741
s32(* cleanup_led)(struct e1000_hw *)
Definition: e1000_hw.h:729
void(* update_mc_addr_list)(struct e1000_hw *, u8 *, u32)
Definition: e1000_hw.h:737
s32(* led_off)(struct e1000_hw *)
Definition: e1000_hw.h:736
bool(* check_mng_mode)(struct e1000_hw *)
Definition: e1000_hw.h:727
s32(* get_bus_info)(struct e1000_hw *)
Definition: e1000_hw.h:732
s32(* init_params)(struct e1000_hw *)
Definition: e1000_hw.h:724
void(* shutdown_serdes)(struct e1000_hw *)
Definition: e1000_hw.h:740
struct e1000_mbx_operations ops
Definition: e1000_hw.h:944
s32(* init_params)(struct e1000_hw *hw)
Definition: e1000_hw.h:924
struct e1000_nvm_operations ops
Definition: e1000_hw.h:889
s32(* init_params)(struct e1000_hw *)
Definition: e1000_hw.h:799
s32(* write)(struct e1000_hw *, u16, u16, u16 *)
Definition: e1000_hw.h:807
void(* reload)(struct e1000_hw *)
Definition: e1000_hw.h:803
s32(* validate)(struct e1000_hw *)
Definition: e1000_hw.h:806
s32(* update)(struct e1000_hw *)
Definition: e1000_hw.h:804
s32(* read)(struct e1000_hw *, u16, u16, u16 *)
Definition: e1000_hw.h:801
struct e1000_phy_operations ops
Definition: e1000_hw.h:856
void(* power_up)(struct e1000_hw *)
Definition: e1000_hw.h:791
s32(* reset)(struct e1000_hw *)
Definition: e1000_hw.h:785
s32(* init_params)(struct e1000_hw *)
Definition: e1000_hw.h:770
s32(* read_reg)(struct e1000_hw *, u32, u16 *)
Definition: e1000_hw.h:781
s32(* get_info)(struct e1000_hw *)
Definition: e1000_hw.h:779
void(* release)(struct e1000_hw *)
Definition: e1000_hw.h:784
s32(* set_d3_lplu_state)(struct e1000_hw *, bool)
Definition: e1000_hw.h:787
s32(* get_cable_length)(struct e1000_hw *)
Definition: e1000_hw.h:778
s32(* check_reset_block)(struct e1000_hw *)
Definition: e1000_hw.h:774
s32(* acquire)(struct e1000_hw *)
Definition: e1000_hw.h:771
s32(* cfg_on_link_up)(struct e1000_hw *)
Definition: e1000_hw.h:772
s32(* set_d0_lplu_state)(struct e1000_hw *, bool)
Definition: e1000_hw.h:786
s32(* write_reg)(struct e1000_hw *, u32, u16)
Definition: e1000_hw.h:788
s32(* commit)(struct e1000_hw *)
Definition: e1000_hw.h:775
void(* power_down)(struct e1000_hw *)
Definition: e1000_hw.h:792