FreeBSD kernel IXGBE device code
ixgbe_x540.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 "ixgbe_x540.h"
37#include "ixgbe_type.h"
38#include "ixgbe_api.h"
39#include "ixgbe_common.h"
40#include "ixgbe_phy.h"
41
42#define IXGBE_X540_MAX_TX_QUEUES 128
43#define IXGBE_X540_MAX_RX_QUEUES 128
44#define IXGBE_X540_RAR_ENTRIES 128
45#define IXGBE_X540_MC_TBL_SIZE 128
46#define IXGBE_X540_VFT_TBL_SIZE 128
47#define IXGBE_X540_RX_PB_SIZE 384
48
51static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw);
52
61{
62 struct ixgbe_mac_info *mac = &hw->mac;
63 struct ixgbe_phy_info *phy = &hw->phy;
64 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
65 s32 ret_val;
66
67 DEBUGFUNC("ixgbe_init_ops_X540");
68
69 ret_val = ixgbe_init_phy_ops_generic(hw);
70 ret_val = ixgbe_init_ops_generic(hw);
71
72
73 /* EEPROM */
82
83 /* PHY */
85 phy->ops.reset = NULL;
87
88 /* MAC */
94 mac->ops.read_analog_reg8 = NULL;
95 mac->ops.write_analog_reg8 = NULL;
107
108 /* RAR, Multicast, VLAN */
113 mac->rar_highwater = 1;
120
121 /* Link */
131
132
140
141 /*
142 * FWSM register
143 * ARC supported; valid only if manageability features are
144 * enabled.
145 */
148
150
151 /* LEDs */
154
155 /* Manageability interface */
157
159
160 return ret_val;
161}
162
172 ixgbe_link_speed *speed,
173 bool *autoneg)
174{
176
177 return IXGBE_SUCCESS;
178}
179
187{
190}
191
199 ixgbe_link_speed speed,
200 bool autoneg_wait_to_complete)
201{
202 DEBUGFUNC("ixgbe_setup_mac_link_X540");
203 return hw->phy.ops.setup_link_speed(hw, speed, autoneg_wait_to_complete);
204}
205
214{
215 s32 status;
216 u32 ctrl, i;
217 u32 swfw_mask = hw->phy.phy_semaphore_mask;
218
219 DEBUGFUNC("ixgbe_reset_hw_X540");
220
221 /* Call adapter stop to disable tx/rx and clear interrupts */
222 status = hw->mac.ops.stop_adapter(hw);
223 if (status != IXGBE_SUCCESS)
224 goto reset_hw_out;
225
226 /* flush pending Tx transactions */
228
229mac_reset_top:
230 status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
231 if (status != IXGBE_SUCCESS) {
233 "semaphore failed with %d", status);
234 return IXGBE_ERR_SWFW_SYNC;
235 }
236 ctrl = IXGBE_CTRL_RST;
237 ctrl |= IXGBE_READ_REG(hw, IXGBE_CTRL);
238 IXGBE_WRITE_REG(hw, IXGBE_CTRL, ctrl);
240 hw->mac.ops.release_swfw_sync(hw, swfw_mask);
241
242 /* Poll for reset bit to self-clear indicating reset is complete */
243 for (i = 0; i < 10; i++) {
244 usec_delay(1);
245 ctrl = IXGBE_READ_REG(hw, IXGBE_CTRL);
246 if (!(ctrl & IXGBE_CTRL_RST_MASK))
247 break;
248 }
249
250 if (ctrl & IXGBE_CTRL_RST_MASK) {
251 status = IXGBE_ERR_RESET_FAILED;
253 "Reset polling failed to complete.\n");
254 }
255 msec_delay(100);
256
257 /*
258 * Double resets are required for recovery from certain error
259 * conditions. Between resets, it is necessary to stall to allow time
260 * for any pending HW events to complete.
261 */
263 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
264 goto mac_reset_top;
265 }
266
267 /* Set the Rx packet buffer size. */
269
270 /* Store the permanent mac address */
271 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
272
273 /*
274 * Store MAC address from RAR0, clear receive address registers, and
275 * clear the multicast table. Also reset num_rar_entries to 128,
276 * since we modify this value when programming the SAN MAC address.
277 */
278 hw->mac.num_rar_entries = 128;
279 hw->mac.ops.init_rx_addrs(hw);
280
281 /* Store the permanent SAN mac address */
282 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr);
283
284 /* Add the SAN MAC address to the RAR only if it's a valid address */
285 if (ixgbe_validate_mac_addr(hw->mac.san_addr) == 0) {
286 /* Save the SAN MAC RAR index */
288
289 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index,
290 hw->mac.san_addr, 0, IXGBE_RAH_AV);
291
292 /* clear VMDq pool/queue selection for this RAR */
295
296 /* Reserve the last RAR for the SAN MAC address */
297 hw->mac.num_rar_entries--;
298 }
299
300 /* Store the alternative WWNN/WWPN prefix */
301 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix,
302 &hw->mac.wwpn_prefix);
303
304reset_hw_out:
305 return status;
306}
307
317{
318 s32 ret_val = IXGBE_SUCCESS;
319
320 DEBUGFUNC("ixgbe_start_hw_X540");
321
322 ret_val = ixgbe_start_hw_generic(hw);
323 if (ret_val != IXGBE_SUCCESS)
324 goto out;
325
327
328out:
329 return ret_val;
330}
331
339{
340 u64 physical_layer = IXGBE_PHYSICAL_LAYER_UNKNOWN;
341 u16 ext_ability = 0;
342
343 DEBUGFUNC("ixgbe_get_supported_physical_layer_X540");
344
346 IXGBE_MDIO_PMA_PMD_DEV_TYPE, &ext_ability);
347 if (ext_ability & IXGBE_MDIO_PHY_10GBASET_ABILITY)
348 physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_T;
349 if (ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY)
350 physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T;
351 if (ext_ability & IXGBE_MDIO_PHY_100BASETX_ABILITY)
352 physical_layer |= IXGBE_PHYSICAL_LAYER_100BASE_TX;
353
354 return physical_layer;
355}
356
365{
366 struct ixgbe_eeprom_info *eeprom = &hw->eeprom;
367 u32 eec;
368 u16 eeprom_size;
369
370 DEBUGFUNC("ixgbe_init_eeprom_params_X540");
371
372 if (eeprom->type == ixgbe_eeprom_uninitialized) {
373 eeprom->semaphore_delay = 10;
374 eeprom->type = ixgbe_flash;
375
376 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw));
377 eeprom_size = (u16)((eec & IXGBE_EEC_SIZE) >>
379 eeprom->word_size = 1 << (eeprom_size +
381
382 DEBUGOUT2("Eeprom params: type = %d, size = %d\n",
383 eeprom->type, eeprom->word_size);
384 }
385
386 return IXGBE_SUCCESS;
387}
388
397s32 ixgbe_read_eerd_X540(struct ixgbe_hw *hw, u16 offset, u16 *data)
398{
399 s32 status = IXGBE_SUCCESS;
400
401 DEBUGFUNC("ixgbe_read_eerd_X540");
404 status = ixgbe_read_eerd_generic(hw, offset, data);
406 } else {
407 status = IXGBE_ERR_SWFW_SYNC;
408 }
409
410 return status;
411}
412
423 u16 offset, u16 words, u16 *data)
424{
425 s32 status = IXGBE_SUCCESS;
426
427 DEBUGFUNC("ixgbe_read_eerd_buffer_X540");
430 status = ixgbe_read_eerd_buffer_generic(hw, offset,
431 words, data);
433 } else {
434 status = IXGBE_ERR_SWFW_SYNC;
435 }
436
437 return status;
438}
439
448s32 ixgbe_write_eewr_X540(struct ixgbe_hw *hw, u16 offset, u16 data)
449{
450 s32 status = IXGBE_SUCCESS;
451
452 DEBUGFUNC("ixgbe_write_eewr_X540");
455 status = ixgbe_write_eewr_generic(hw, offset, data);
457 } else {
458 status = IXGBE_ERR_SWFW_SYNC;
459 }
460
461 return status;
462}
463
474 u16 offset, u16 words, u16 *data)
475{
476 s32 status = IXGBE_SUCCESS;
477
478 DEBUGFUNC("ixgbe_write_eewr_buffer_X540");
481 status = ixgbe_write_eewr_buffer_generic(hw, offset,
482 words, data);
484 } else {
485 status = IXGBE_ERR_SWFW_SYNC;
486 }
487
488 return status;
489}
490
502{
503 u16 i, j;
504 u16 checksum = 0;
505 u16 length = 0;
506 u16 pointer = 0;
507 u16 word = 0;
508 u16 ptr_start = IXGBE_PCIE_ANALOG_PTR;
509
510 /* Do not use hw->eeprom.ops.read because we do not want to take
511 * the synchronization semaphores here. Instead use
512 * ixgbe_read_eerd_generic
513 */
514
515 DEBUGFUNC("ixgbe_calc_eeprom_checksum_X540");
516
517 /* Include 0x0 up to IXGBE_EEPROM_CHECKSUM; do not include the
518 * checksum itself
519 */
520 for (i = 0; i < IXGBE_EEPROM_CHECKSUM; i++) {
521 if (ixgbe_read_eerd_generic(hw, i, &word)) {
522 DEBUGOUT("EEPROM read failed\n");
523 return IXGBE_ERR_EEPROM;
524 }
525 checksum += word;
526 }
527
528 /* Include all data from pointers 0x3, 0x6-0xE. This excludes the
529 * FW, PHY module, and PCIe Expansion/Option ROM pointers.
530 */
531 for (i = ptr_start; i < IXGBE_FW_PTR; i++) {
532 if (i == IXGBE_PHY_PTR || i == IXGBE_OPTION_ROM_PTR)
533 continue;
534
535 if (ixgbe_read_eerd_generic(hw, i, &pointer)) {
536 DEBUGOUT("EEPROM read failed\n");
537 return IXGBE_ERR_EEPROM;
538 }
539
540 /* Skip pointer section if the pointer is invalid. */
541 if (pointer == 0xFFFF || pointer == 0 ||
542 pointer >= hw->eeprom.word_size)
543 continue;
544
545 if (ixgbe_read_eerd_generic(hw, pointer, &length)) {
546 DEBUGOUT("EEPROM read failed\n");
547 return IXGBE_ERR_EEPROM;
548 }
549
550 /* Skip pointer section if length is invalid. */
551 if (length == 0xFFFF || length == 0 ||
552 (pointer + length) >= hw->eeprom.word_size)
553 continue;
554
555 for (j = pointer + 1; j <= pointer + length; j++) {
556 if (ixgbe_read_eerd_generic(hw, j, &word)) {
557 DEBUGOUT("EEPROM read failed\n");
558 return IXGBE_ERR_EEPROM;
559 }
560 checksum += word;
561 }
562 }
563
564 checksum = (u16)IXGBE_EEPROM_SUM - checksum;
565
566 return (s32)checksum;
567}
568
578 u16 *checksum_val)
579{
580 s32 status;
581 u16 checksum;
582 u16 read_checksum = 0;
583
584 DEBUGFUNC("ixgbe_validate_eeprom_checksum_X540");
585
586 /* Read the first word from the EEPROM. If this times out or fails, do
587 * not continue or we could be in for a very long wait while every
588 * EEPROM read fails
589 */
590 status = hw->eeprom.ops.read(hw, 0, &checksum);
591 if (status) {
592 DEBUGOUT("EEPROM read failed\n");
593 return status;
594 }
595
597 return IXGBE_ERR_SWFW_SYNC;
598
599 status = hw->eeprom.ops.calc_checksum(hw);
600 if (status < 0)
601 goto out;
602
603 checksum = (u16)(status & 0xffff);
604
605 /* Do not use hw->eeprom.ops.read because we do not want to take
606 * the synchronization semaphores twice here.
607 */
609 &read_checksum);
610 if (status)
611 goto out;
612
613 /* Verify read checksum from EEPROM is the same as
614 * calculated checksum
615 */
616 if (read_checksum != checksum) {
618 "Invalid EEPROM checksum");
620 }
621
622 /* If the user cares, return the calculated checksum */
623 if (checksum_val)
624 *checksum_val = checksum;
625
626out:
628
629 return status;
630}
631
641{
642 s32 status;
643 u16 checksum;
644
645 DEBUGFUNC("ixgbe_update_eeprom_checksum_X540");
646
647 /* Read the first word from the EEPROM. If this times out or fails, do
648 * not continue or we could be in for a very long wait while every
649 * EEPROM read fails
650 */
651 status = hw->eeprom.ops.read(hw, 0, &checksum);
652 if (status) {
653 DEBUGOUT("EEPROM read failed\n");
654 return status;
655 }
656
658 return IXGBE_ERR_SWFW_SYNC;
659
660 status = hw->eeprom.ops.calc_checksum(hw);
661 if (status < 0)
662 goto out;
663
664 checksum = (u16)(status & 0xffff);
665
666 /* Do not use hw->eeprom.ops.write because we do not want to
667 * take the synchronization semaphores twice here.
668 */
669 status = ixgbe_write_eewr_generic(hw, IXGBE_EEPROM_CHECKSUM, checksum);
670 if (status)
671 goto out;
672
673 status = ixgbe_update_flash_X540(hw);
674
675out:
677
678 return status;
679}
680
689{
690 u32 flup;
691 s32 status;
692
693 DEBUGFUNC("ixgbe_update_flash_X540");
694
696 if (status == IXGBE_ERR_EEPROM) {
697 DEBUGOUT("Flash update time out\n");
698 goto out;
699 }
700
702 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), flup);
703
705 if (status == IXGBE_SUCCESS)
706 DEBUGOUT("Flash update complete\n");
707 else
708 DEBUGOUT("Flash update time out\n");
709
710 if (hw->mac.type == ixgbe_mac_X540 && hw->revision_id == 0) {
711 flup = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw));
712
713 if (flup & IXGBE_EEC_SEC1VAL) {
714 flup |= IXGBE_EEC_FLUP;
715 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), flup);
716 }
717
719 if (status == IXGBE_SUCCESS)
720 DEBUGOUT("Flash update complete\n");
721 else
722 DEBUGOUT("Flash update time out\n");
723 }
724out:
725 return status;
726}
727
736{
737 u32 i;
738 u32 reg;
739 s32 status = IXGBE_ERR_EEPROM;
740
741 DEBUGFUNC("ixgbe_poll_flash_update_done_X540");
742
743 for (i = 0; i < IXGBE_FLUDONE_ATTEMPTS; i++) {
744 reg = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw));
745 if (reg & IXGBE_EEC_FLUDONE) {
746 status = IXGBE_SUCCESS;
747 break;
748 }
749 msec_delay(5);
750 }
751
752 if (i == IXGBE_FLUDONE_ATTEMPTS)
754 "Flash update status polling timed out");
755
756 return status;
757}
758
768{
769 u32 swmask = mask & IXGBE_GSSR_NVM_PHY_MASK;
770 u32 fwmask = swmask << 5;
771 u32 swi2c_mask = mask & IXGBE_GSSR_I2C_MASK;
772 u32 timeout = 200;
773 u32 hwmask = 0;
774 u32 swfw_sync;
775 u32 i;
776
777 DEBUGFUNC("ixgbe_acquire_swfw_sync_X540");
778
779 if (swmask & IXGBE_GSSR_EEP_SM)
780 hwmask |= IXGBE_GSSR_FLASH_SM;
781
782 /* SW only mask doesn't have FW bit pair */
783 if (mask & IXGBE_GSSR_SW_MNG_SM)
784 swmask |= IXGBE_GSSR_SW_MNG_SM;
785
786 swmask |= swi2c_mask;
787 fwmask |= swi2c_mask << 2;
788 if (hw->mac.type >= ixgbe_mac_X550)
789 timeout = 1000;
790
791 for (i = 0; i < timeout; i++) {
792 /* SW NVM semaphore bit is used for access to all
793 * SW_FW_SYNC bits (not just NVM)
794 */
796 DEBUGOUT("Failed to get NVM access and register semaphore, returning IXGBE_ERR_SWFW_SYNC\n");
797 return IXGBE_ERR_SWFW_SYNC;
798 }
799
800 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw));
801 if (!(swfw_sync & (fwmask | swmask | hwmask))) {
802 swfw_sync |= swmask;
804 swfw_sync);
806 return IXGBE_SUCCESS;
807 }
808 /* Firmware currently using resource (fwmask), hardware
809 * currently using resource (hwmask), or other software
810 * thread currently using resource (swmask)
811 */
813 msec_delay(5);
814 }
815
816 /* If the resource is not released by the FW/HW the SW can assume that
817 * the FW/HW malfunctions. In that case the SW should set the SW bit(s)
818 * of the requested resource(s) while ignoring the corresponding FW/HW
819 * bits in the SW_FW_SYNC register.
820 */
822 DEBUGOUT("Failed to get NVM semaphore and register semaphore while forcefully ignoring FW semaphore bit(s) and setting SW semaphore bit(s), returning IXGBE_ERR_SWFW_SYNC\n");
823 return IXGBE_ERR_SWFW_SYNC;
824 }
825 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw));
826 if (swfw_sync & (fwmask | hwmask)) {
827 swfw_sync |= swmask;
828 IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw), swfw_sync);
830 msec_delay(5);
831 return IXGBE_SUCCESS;
832 }
833 /* If the resource is not released by other SW the SW can assume that
834 * the other SW malfunctions. In that case the SW should clear all SW
835 * flags that it does not own and then repeat the whole process once
836 * again.
837 */
838 if (swfw_sync & swmask) {
842
843 if (swi2c_mask)
844 rmask |= IXGBE_GSSR_I2C_MASK;
847 DEBUGOUT("Resource not released by other SW, returning IXGBE_ERR_SWFW_SYNC\n");
848 return IXGBE_ERR_SWFW_SYNC;
849 }
851 DEBUGOUT("Returning error IXGBE_ERR_SWFW_SYNC\n");
852
853 return IXGBE_ERR_SWFW_SYNC;
854}
855
865{
867 u32 swfw_sync;
868
869 DEBUGFUNC("ixgbe_release_swfw_sync_X540");
870
871 if (mask & IXGBE_GSSR_I2C_MASK)
872 swmask |= mask & IXGBE_GSSR_I2C_MASK;
874
875 swfw_sync = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw));
876 swfw_sync &= ~swmask;
877 IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw), swfw_sync);
878
880 msec_delay(2);
881}
882
890{
891 s32 status = IXGBE_ERR_EEPROM;
892 u32 timeout = 2000;
893 u32 i;
894 u32 swsm;
895
896 DEBUGFUNC("ixgbe_get_swfw_sync_semaphore");
897
898 /* Get SMBI software semaphore between device drivers first */
899 for (i = 0; i < timeout; i++) {
900 /*
901 * If the SMBI bit is 0 when we read it, then the bit will be
902 * set and we have the semaphore
903 */
904 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw));
905 if (!(swsm & IXGBE_SWSM_SMBI)) {
906 status = IXGBE_SUCCESS;
907 break;
908 }
909 usec_delay(50);
910 }
911
912 /* Now get the semaphore between SW/FW through the REGSMP bit */
913 if (status == IXGBE_SUCCESS) {
914 for (i = 0; i < timeout; i++) {
916 if (!(swsm & IXGBE_SWFW_REGSMP))
917 break;
918
919 usec_delay(50);
920 }
921
922 /*
923 * Release semaphores and return error if SW NVM semaphore
924 * was not granted because we don't have access to the EEPROM
925 */
926 if (i >= timeout) {
928 "REGSMP Software NVM semaphore not granted.\n");
930 status = IXGBE_ERR_EEPROM;
931 }
932 } else {
934 "Software semaphore SMBI between device drivers "
935 "not granted.\n");
936 }
937
938 return status;
939}
940
948{
949 u32 swsm;
950
951 DEBUGFUNC("ixgbe_release_swfw_sync_semaphore");
952
953 /* Release both semaphores by writing 0 to the bits REGSMP and SMBI */
954
956 swsm &= ~IXGBE_SWFW_REGSMP;
958
959 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw));
960 swsm &= ~IXGBE_SWSM_SMBI;
961 IXGBE_WRITE_REG(hw, IXGBE_SWSM_BY_MAC(hw), swsm);
962
964}
965
974{
975 u32 rmask;
976
977 /* First try to grab the semaphore but we don't need to bother
978 * looking to see whether we got the lock or not since we do
979 * the same thing regardless of whether we got the lock or not.
980 * We got the lock - we release it.
981 * We timeout trying to get the lock - we force its release.
982 */
985
986 /* Acquire and release all software resources. */
990
991 rmask |= IXGBE_GSSR_I2C_MASK;
994}
995
1005{
1006 u32 macc_reg;
1007 u32 ledctl_reg;
1008 ixgbe_link_speed speed;
1009 bool link_up;
1010
1011 DEBUGFUNC("ixgbe_blink_led_start_X540");
1012
1013 if (index > 3)
1014 return IXGBE_ERR_PARAM;
1015
1016 /*
1017 * Link should be up in order for the blink bit in the LED control
1018 * register to work. Force link and speed in the MAC if link is down.
1019 * This will be reversed when we stop the blinking.
1020 */
1021 hw->mac.ops.check_link(hw, &speed, &link_up, false);
1022 if (link_up == false) {
1023 macc_reg = IXGBE_READ_REG(hw, IXGBE_MACC);
1025 IXGBE_WRITE_REG(hw, IXGBE_MACC, macc_reg);
1026 }
1027 /* Set the LED to LINK_UP + BLINK. */
1028 ledctl_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
1029 ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
1030 ledctl_reg |= IXGBE_LED_BLINK(index);
1031 IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, ledctl_reg);
1033
1034 return IXGBE_SUCCESS;
1035}
1036
1046{
1047 u32 macc_reg;
1048 u32 ledctl_reg;
1049
1050 if (index > 3)
1051 return IXGBE_ERR_PARAM;
1052
1053 DEBUGFUNC("ixgbe_blink_led_stop_X540");
1054
1055 /* Restore the LED to its default value. */
1056 ledctl_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
1057 ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
1058 ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
1059 ledctl_reg &= ~IXGBE_LED_BLINK(index);
1060 IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, ledctl_reg);
1061
1062 /* Unforce link and speed in the MAC. */
1063 macc_reg = IXGBE_READ_REG(hw, IXGBE_MACC);
1065 IXGBE_WRITE_REG(hw, IXGBE_MACC, macc_reg);
1067
1068 return IXGBE_SUCCESS;
1069}
s32 ixgbe_set_vmdq_generic(struct ixgbe_hw *hw, u32 rar, u32 vmdq)
s32 ixgbe_clear_vmdq_generic(struct ixgbe_hw *hw, u32 rar, u32 vmdq)
s32 ixgbe_set_vmdq_san_mac_generic(struct ixgbe_hw *hw, u32 vmdq)
void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf)
bool ixgbe_bypass_valid_rd_generic(u32 in_reg, u32 out_reg)
void ixgbe_set_mac_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf)
s32 ixgbe_clear_vfta_generic(struct ixgbe_hw *hw)
s32 ixgbe_get_fcoe_boot_status_generic(struct ixgbe_hw *hw, u16 *bs)
s32 ixgbe_init_uta_tables_generic(struct ixgbe_hw *hw)
s32 ixgbe_bypass_rw_generic(struct ixgbe_hw *hw, u32 cmd, u32 *status)
s32 ixgbe_enable_sec_rx_path_generic(struct ixgbe_hw *hw)
s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw)
Definition: ixgbe_common.c:396
void ixgbe_set_rxpba_generic(struct ixgbe_hw *hw, int num_pb, u32 headroom, int strategy)
s32 ixgbe_bypass_set_generic(struct ixgbe_hw *hw, u32 ctrl, u32 event, u32 action)
s32 ixgbe_bypass_rd_eep_generic(struct ixgbe_hw *hw, u32 addr, u8 *value)
s32 ixgbe_get_san_mac_addr_generic(struct ixgbe_hw *hw, u8 *san_mac_addr)
void ixgbe_enable_relaxed_ordering_gen2(struct ixgbe_hw *hw)
s32 ixgbe_get_device_caps_generic(struct ixgbe_hw *hw, u16 *device_caps)
s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw)
Definition: ixgbe_common.c:70
s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, bool vlvf_bypass)
s32 ixgbe_read_eerd_buffer_generic(struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
void ixgbe_start_hw_gen2(struct ixgbe_hw *hw)
Definition: ixgbe_common.c:460
s32 ixgbe_set_vlvf_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on, u32 *vfta_delta, u32 vfta, bool vlvf_bypass)
s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *link_up, bool link_up_wait_to_complete)
s32 ixgbe_write_eewr_generic(struct ixgbe_hw *hw, u16 offset, u16 data)
s32 ixgbe_read_eerd_generic(struct ixgbe_hw *hw, u16 offset, u16 *data)
s32 ixgbe_get_wwn_prefix_generic(struct ixgbe_hw *hw, u16 *wwnn_prefix, u16 *wwpn_prefix)
s32 ixgbe_set_fw_drv_ver_generic(struct ixgbe_hw *hw, u8 maj, u8 min, u8 build, u8 sub, u16 len, const char *driver_ver)
s32 ixgbe_set_san_mac_addr_generic(struct ixgbe_hw *hw, u8 *san_mac_addr)
s32 ixgbe_disable_sec_rx_path_generic(struct ixgbe_hw *hw)
s32 ixgbe_write_eewr_buffer_generic(struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
s32 ixgbe_insert_mac_addr_generic(struct ixgbe_hw *hw, u8 *addr, u32 vmdq)
s32 ixgbe_validate_mac_addr(u8 *mac_addr)
u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw)
void ixgbe_clear_tx_pending(struct ixgbe_hw *hw)
void ixgbe_dcb_get_rtrup2tc_generic(struct ixgbe_hw *hw, u8 *map)
void ixgbe_init_mbx_params_pf(struct ixgbe_hw *hw)
Definition: ixgbe_mbx.c:743
#define msec_delay(x)
Definition: ixgbe_osdep.h:72
#define IXGBE_READ_REG(a, reg)
Definition: ixgbe_osdep.h:224
#define DEBUGOUT(S)
Definition: ixgbe_osdep.h:104
uint64_t u64
Definition: ixgbe_osdep.h:149
#define usec_delay(x)
Definition: ixgbe_osdep.h:71
#define DEBUGOUT2(S, A, B)
Definition: ixgbe_osdep.h:106
#define ERROR_REPORT1(S, A)
Definition: ixgbe_osdep.h:113
#define DEBUGFUNC(F)
Definition: ixgbe_osdep.h:76
#define UNREFERENCED_1PARAMETER(_p)
Definition: ixgbe_osdep.h:126
#define IXGBE_WRITE_FLUSH(a)
Definition: ixgbe_osdep.h:221
#define IXGBE_WRITE_REG(a, reg, val)
Definition: ixgbe_osdep.h:227
uint16_t u16
Definition: ixgbe_osdep.h:145
#define ERROR_REPORT2(S, A, B)
Definition: ixgbe_osdep.h:114
@ IXGBE_ERROR_CAUTION
Definition: ixgbe_osdep.h:67
@ IXGBE_ERROR_POLLING
Definition: ixgbe_osdep.h:63
@ IXGBE_ERROR_INVALID_STATE
Definition: ixgbe_osdep.h:64
int32_t s32
Definition: ixgbe_osdep.h:148
uint32_t u32
Definition: ixgbe_osdep.h:147
s32 ixgbe_get_copper_link_capabilities_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *autoneg)
Definition: ixgbe_phy.c:970
s32 ixgbe_set_copper_phy_power(struct ixgbe_hw *hw, bool on)
Definition: ixgbe_phy.c:2669
s32 ixgbe_init_phy_ops_generic(struct ixgbe_hw *hw)
Definition: ixgbe_phy.c:248
#define IXGBE_GSSR_MAC_CSR_SM
Definition: ixgbe_type.h:2306
#define IXGBE_FLUDONE_ATTEMPTS
Definition: ixgbe_type.h:2456
@ ixgbe_mac_X550
Definition: ixgbe_type.h:3679
@ ixgbe_mac_X540
Definition: ixgbe_type.h:3677
#define IXGBE_LED_BLINK(_i)
Definition: ixgbe_type.h:2165
#define IXGBE_MDIO_PHY_1000BASET_ABILITY
Definition: ixgbe_type.h:1612
#define IXGBE_ERR_SWFW_SYNC
Definition: ixgbe_type.h:4250
#define IXGBE_MDIO_PHY_EXT_ABILITY
Definition: ixgbe_type.h:1610
#define IXGBE_LEDCTL
Definition: ixgbe_type.h:182
#define IXGBE_SWSM_BY_MAC(_hw)
Definition: ixgbe_type.h:1182
#define IXGBE_RXPBSIZE_SHIFT
Definition: ixgbe_type.h:439
#define IXGBE_PHYSICAL_LAYER_10GBASE_T
Definition: ixgbe_type.h:3460
#define IXGBE_PHYSICAL_LAYER_100BASE_TX
Definition: ixgbe_type.h:3462
#define IXGBE_RAH_AV
Definition: ixgbe_type.h:2557
#define IXGBE_MACC
Definition: ixgbe_type.h:1395
#define IXGBE_GSSR_I2C_MASK
Definition: ixgbe_type.h:2312
#define IXGBE_OPTION_ROM_PTR
Definition: ixgbe_type.h:2360
#define IXGBE_GSSR_FLASH_SM
Definition: ixgbe_type.h:2307
#define IXGBE_FWSM_MODE_MASK
Definition: ixgbe_type.h:1105
#define IXGBE_MACC_FSV_10G
Definition: ixgbe_type.h:2234
#define IXGBE_PHYSICAL_LAYER_UNKNOWN
Definition: ixgbe_type.h:3459
#define IXGBE_EEC_SEC1VAL
Definition: ixgbe_type.h:2332
#define IXGBE_PCIE_ANALOG_PTR
Definition: ixgbe_type.h:2356
#define IXGBE_GSSR_PHY1_SM
Definition: ixgbe_type.h:2305
u32 ixgbe_link_speed
Definition: ixgbe_type.h:3443
#define IXGBE_LED_MODE_SHIFT(_i)
Definition: ixgbe_type.h:2163
#define IXGBE_ERR_EEPROM
Definition: ixgbe_type.h:4235
#define IXGBE_LED_LINK_ACTIVE
Definition: ixgbe_type.h:2176
#define IXGBE_FLAGS_DOUBLE_RESET_REQUIRED
Definition: ixgbe_type.h:4112
#define IXGBE_SUCCESS
Definition: ixgbe_type.h:4234
#define IXGBE_RXPBSIZE(_i)
Definition: ixgbe_type.h:436
#define IXGBE_MACC_FLU
Definition: ixgbe_type.h:2233
#define IXGBE_MDIO_PHY_10GBASET_ABILITY
Definition: ixgbe_type.h:1611
#define IXGBE_EEC_FLUP
Definition: ixgbe_type.h:2331
@ ixgbe_eeprom_uninitialized
Definition: ixgbe_type.h:3666
@ ixgbe_flash
Definition: ixgbe_type.h:3668
#define IXGBE_GSSR_EEP_SM
Definition: ixgbe_type.h:2303
#define IXGBE_SWSM_SMBI
Definition: ixgbe_type.h:2297
ixgbe_media_type
Definition: ixgbe_type.h:3753
@ ixgbe_media_type_copper
Definition: ixgbe_type.h:3758
#define IXGBE_GSSR_PHY0_SM
Definition: ixgbe_type.h:2304
#define IXGBE_EEPROM_WORD_SIZE_SHIFT
Definition: ixgbe_type.h:2340
#define IXGBE_GSSR_SW_MNG_SM
Definition: ixgbe_type.h:2309
#define IXGBE_MDIO_PMA_PMD_DEV_TYPE
Definition: ixgbe_type.h:1574
#define IXGBE_PHY_PTR
Definition: ixgbe_type.h:2358
#define IXGBE_EEPROM_SUM
Definition: ixgbe_type.h:2352
#define IXGBE_SWFW_REGSMP
Definition: ixgbe_type.h:2300
#define IXGBE_ERR_PARAM
Definition: ixgbe_type.h:4239
#define IXGBE_EEC_FLUDONE
Definition: ixgbe_type.h:2333
#define IXGBE_MDIO_PHY_100BASETX_ABILITY
Definition: ixgbe_type.h:1613
#define IXGBE_EEC_BY_MAC(_hw)
Definition: ixgbe_type.h:194
#define IXGBE_EEPROM_CHECKSUM
Definition: ixgbe_type.h:2351
#define IXGBE_FWSM_BY_MAC(_hw)
Definition: ixgbe_type.h:1189
#define IXGBE_EEC_SIZE
Definition: ixgbe_type.h:2336
#define IXGBE_CTRL
Definition: ixgbe_type.h:165
#define IXGBE_SWFW_SYNC_BY_MAC(_hw)
Definition: ixgbe_type.h:1196
#define IXGBE_FW_PTR
Definition: ixgbe_type.h:2375
#define IXGBE_MACC_FS
Definition: ixgbe_type.h:2235
#define IXGBE_CTRL_RST_MASK
Definition: ixgbe_type.h:1488
#define IXGBE_GSSR_NVM_PHY_MASK
Definition: ixgbe_type.h:2313
#define IXGBE_CTRL_RST
Definition: ixgbe_type.h:1487
#define IXGBE_PHYSICAL_LAYER_1000BASE_T
Definition: ixgbe_type.h:3461
#define IXGBE_EEC_SIZE_SHIFT
Definition: ixgbe_type.h:2339
#define IXGBE_CLEAR_VMDQ_ALL
Definition: ixgbe_type.h:2558
#define IXGBE_ERR_RESET_FAILED
Definition: ixgbe_type.h:4249
#define IXGBE_ERR_EEPROM_CHECKSUM
Definition: ixgbe_type.h:4236
enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:186
s32 ixgbe_read_eerd_X540(struct ixgbe_hw *hw, u16 offset, u16 *data)
Definition: ixgbe_x540.c:397
#define IXGBE_X540_RAR_ENTRIES
Definition: ixgbe_x540.c:44
s32 ixgbe_write_eewr_X540(struct ixgbe_hw *hw, u16 offset, u16 data)
Definition: ixgbe_x540.c:448
s32 ixgbe_acquire_swfw_sync_X540(struct ixgbe_hw *hw, u32 mask)
Definition: ixgbe_x540.c:767
#define IXGBE_X540_MC_TBL_SIZE
Definition: ixgbe_x540.c:45
s32 ixgbe_start_hw_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:316
s32 ixgbe_validate_eeprom_checksum_X540(struct ixgbe_hw *hw, u16 *checksum_val)
Definition: ixgbe_x540.c:577
s32 ixgbe_update_flash_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:688
s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:213
static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:735
s32 ixgbe_write_eewr_buffer_X540(struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
Definition: ixgbe_x540.c:473
s32 ixgbe_update_eeprom_checksum_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:640
s32 ixgbe_blink_led_start_X540(struct ixgbe_hw *hw, u32 index)
Definition: ixgbe_x540.c:1004
static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:889
static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:947
void ixgbe_init_swfw_sync_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:973
s32 ixgbe_init_ops_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:60
u64 ixgbe_get_supported_physical_layer_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:338
s32 ixgbe_get_link_capabilities_X540(struct ixgbe_hw *hw, ixgbe_link_speed *speed, bool *autoneg)
Definition: ixgbe_x540.c:171
#define IXGBE_X540_RX_PB_SIZE
Definition: ixgbe_x540.c:47
#define IXGBE_X540_VFT_TBL_SIZE
Definition: ixgbe_x540.c:46
#define IXGBE_X540_MAX_TX_QUEUES
Definition: ixgbe_x540.c:42
s32 ixgbe_calc_eeprom_checksum_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:501
s32 ixgbe_setup_mac_link_X540(struct ixgbe_hw *hw, ixgbe_link_speed speed, bool autoneg_wait_to_complete)
Definition: ixgbe_x540.c:198
s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index)
Definition: ixgbe_x540.c:1045
void ixgbe_release_swfw_sync_X540(struct ixgbe_hw *hw, u32 mask)
Definition: ixgbe_x540.c:864
s32 ixgbe_read_eerd_buffer_X540(struct ixgbe_hw *hw, u16 offset, u16 words, u16 *data)
Definition: ixgbe_x540.c:422
s32 ixgbe_init_eeprom_params_X540(struct ixgbe_hw *hw)
Definition: ixgbe_x540.c:364
#define IXGBE_X540_MAX_RX_QUEUES
Definition: ixgbe_x540.c:43
enum ixgbe_eeprom_type type
Definition: ixgbe_type.h:4104
struct ixgbe_eeprom_operations ops
Definition: ixgbe_type.h:4103
s32(* read_buffer)(struct ixgbe_hw *, u16, u16, u16 *)
Definition: ixgbe_type.h:3940
s32(* write_buffer)(struct ixgbe_hw *, u16, u16, u16 *)
Definition: ixgbe_type.h:3942
s32(* update_checksum)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3944
s32(* init_params)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3938
s32(* write)(struct ixgbe_hw *, u16, u16)
Definition: ixgbe_type.h:3941
s32(* read)(struct ixgbe_hw *, u16, u16 *)
Definition: ixgbe_type.h:3939
s32(* calc_checksum)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3945
s32(* validate_checksum)(struct ixgbe_hw *, u16 *)
Definition: ixgbe_type.h:3943
struct ixgbe_mac_info mac
Definition: ixgbe_type.h:4207
u8 revision_id
Definition: ixgbe_type.h:4220
struct ixgbe_mbx_info mbx
Definition: ixgbe_type.h:4214
struct ixgbe_eeprom_info eeprom
Definition: ixgbe_type.h:4212
struct ixgbe_phy_info phy
Definition: ixgbe_type.h:4210
u8 perm_addr[IXGBE_ETH_LENGTH_OF_ADDRESS]
Definition: ixgbe_type.h:4117
enum ixgbe_mac_type type
Definition: ixgbe_type.h:4115
u8 san_addr[IXGBE_ETH_LENGTH_OF_ADDRESS]
Definition: ixgbe_type.h:4118
struct ixgbe_mac_operations ops
Definition: ixgbe_type.h:4114
bool arc_subsystem_valid
Definition: ixgbe_type.h:4138
s32(* get_wwn_prefix)(struct ixgbe_hw *, u16 *, u16 *)
Definition: ixgbe_type.h:3960
s32(* set_vlvf)(struct ixgbe_hw *, u32, u32, bool, u32 *, u32, bool)
Definition: ixgbe_type.h:4017
s32(* reset_hw)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3950
void(* set_mac_anti_spoofing)(struct ixgbe_hw *, bool, int)
Definition: ixgbe_type.h:4020
s32(* acquire_swfw_sync)(struct ixgbe_hw *, u32)
Definition: ixgbe_type.h:3971
s32(* set_fw_drv_ver)(struct ixgbe_hw *, u8, u8, u8, u8, u16, const char *)
Definition: ixgbe_type.h:4031
s32(* get_mac_addr)(struct ixgbe_hw *, u8 *)
Definition: ixgbe_type.h:3956
s32(* init_rx_addrs)(struct ixgbe_hw *)
Definition: ixgbe_type.h:4007
s32(* setup_link)(struct ixgbe_hw *, ixgbe_link_speed, bool)
Definition: ixgbe_type.h:3982
s32(* set_rar)(struct ixgbe_hw *, u32, u8 *, u32, u32)
Definition: ixgbe_type.h:4000
void(* release_swfw_sync)(struct ixgbe_hw *, u32)
Definition: ixgbe_type.h:3972
s32(* read_analog_reg8)(struct ixgbe_hw *, u32, u8 *)
Definition: ixgbe_type.h:3965
s32(* clear_vmdq)(struct ixgbe_hw *, u32, u32)
Definition: ixgbe_type.h:4006
s32(* clear_vfta)(struct ixgbe_hw *)
Definition: ixgbe_type.h:4015
void(* set_vlan_anti_spoofing)(struct ixgbe_hw *, bool, int)
Definition: ixgbe_type.h:4021
void(* setup_rxpba)(struct ixgbe_hw *, int, u32, int)
Definition: ixgbe_type.h:3990
s32(* set_vmdq)(struct ixgbe_hw *, u32, u32)
Definition: ixgbe_type.h:4004
s32(* check_link)(struct ixgbe_hw *, ixgbe_link_speed *, bool *, bool)
Definition: ixgbe_type.h:3984
void(* get_rtrup2tc)(struct ixgbe_hw *hw, u8 *map)
Definition: ixgbe_type.h:4039
s32(* set_vfta)(struct ixgbe_hw *, u32, u32, bool, bool)
Definition: ixgbe_type.h:4016
s32(* disable_sec_rx_path)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3969
s32(* enable_sec_rx_path)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3970
void(* init_swfw_sync)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3973
s32(* bypass_set)(struct ixgbe_hw *hw, u32 cmd, u32 event, u32 action)
Definition: ixgbe_type.h:4037
s32(* get_san_mac_addr)(struct ixgbe_hw *, u8 *)
Definition: ixgbe_type.h:3957
s32(* write_analog_reg8)(struct ixgbe_hw *, u32, u8)
Definition: ixgbe_type.h:3966
s32(* init_uta_tables)(struct ixgbe_hw *)
Definition: ixgbe_type.h:4019
s32(* get_device_caps)(struct ixgbe_hw *, u16 *)
Definition: ixgbe_type.h:3959
void(* enable_relaxed_ordering)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3953
s32(* get_link_capabilities)(struct ixgbe_hw *, ixgbe_link_speed *, bool *)
Definition: ixgbe_type.h:3985
s32(* insert_mac_addr)(struct ixgbe_hw *, u8 *, u32)
Definition: ixgbe_type.h:4003
s32(* blink_led_stop)(struct ixgbe_hw *, u32)
Definition: ixgbe_type.h:3996
enum ixgbe_media_type(* get_media_type)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3954
s32(* set_san_mac_addr)(struct ixgbe_hw *, u8 *)
Definition: ixgbe_type.h:3958
s32(* get_fcoe_boot_status)(struct ixgbe_hw *, u16 *)
Definition: ixgbe_type.h:3961
s32(* blink_led_start)(struct ixgbe_hw *, u32)
Definition: ixgbe_type.h:3995
s32(* start_hw)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3951
s32(* set_vmdq_san_mac)(struct ixgbe_hw *, u32)
Definition: ixgbe_type.h:4005
bool(* bypass_valid_rd)(u32 in_reg, u32 out_reg)
Definition: ixgbe_type.h:4036
s32(* stop_adapter)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3962
s32(* bypass_rd_eep)(struct ixgbe_hw *hw, u32 addr, u8 *value)
Definition: ixgbe_type.h:4038
u64(* get_supported_physical_layer)(struct ixgbe_hw *)
Definition: ixgbe_type.h:3955
s32(* bypass_rw)(struct ixgbe_hw *hw, u32 cmd, u32 *status)
Definition: ixgbe_type.h:4035
struct ixgbe_mbx_operations ops
Definition: ixgbe_type.h:4196
void(* init_params)(struct ixgbe_hw *hw)
Definition: ixgbe_type.h:4176
struct ixgbe_phy_operations ops
Definition: ixgbe_type.h:4151
u32 phy_semaphore_mask
Definition: ixgbe_type.h:4159
s32(* setup_link_speed)(struct ixgbe_hw *, ixgbe_link_speed, bool)
Definition: ixgbe_type.h:4069
s32(* init)(struct ixgbe_hw *)
Definition: ixgbe_type.h:4061
s32(* reset)(struct ixgbe_hw *)
Definition: ixgbe_type.h:4062
s32(* set_phy_power)(struct ixgbe_hw *, bool on)
Definition: ixgbe_type.h:4079
s32(* read_reg)(struct ixgbe_hw *, u32, u32, u16 *)
Definition: ixgbe_type.h:4063