Deleted Added
full compact
ixgb_ee.c (129794) ixgb_ee.c (218909)
1/*******************************************************************************
2
3 Copyright (c) 2001-2004, 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

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

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
1/*******************************************************************************
2
3 Copyright (c) 2001-2004, 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

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

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
34/*$FreeBSD: head/sys/dev/ixgb/ixgb_ee.c 129794 2004-05-28 00:23:00Z tackerman $*/
34/*$FreeBSD: head/sys/dev/ixgb/ixgb_ee.c 218909 2011-02-21 09:01:34Z brucec $*/
35
36#include <dev/ixgb/ixgb_hw.h>
37#include <dev/ixgb/ixgb_ee.h>
38
39/* Local prototypes */
40static uint16_t ixgb_shift_in_bits(struct ixgb_hw *hw);
41
42static void ixgb_shift_out_bits(struct ixgb_hw *hw,

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

320
321
322/******************************************************************************
323 * Verifies that the EEPROM has a valid checksum
324 *
325 * hw - Struct containing variables accessed by shared code
326 *
327 * Reads the first 64 16 bit words of the EEPROM and sums the values read.
35
36#include <dev/ixgb/ixgb_hw.h>
37#include <dev/ixgb/ixgb_ee.h>
38
39/* Local prototypes */
40static uint16_t ixgb_shift_in_bits(struct ixgb_hw *hw);
41
42static void ixgb_shift_out_bits(struct ixgb_hw *hw,

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

320
321
322/******************************************************************************
323 * Verifies that the EEPROM has a valid checksum
324 *
325 * hw - Struct containing variables accessed by shared code
326 *
327 * Reads the first 64 16 bit words of the EEPROM and sums the values read.
328 * If the the sum of the 64 16 bit words is 0xBABA, the EEPROM's checksum is
328 * If the sum of the 64 16 bit words is 0xBABA, the EEPROM's checksum is
329 * valid.
330 *
331 * Returns:
332 * TRUE: Checksum is valid
333 * FALSE: Checksum is not valid.
334 *****************************************************************************/
335boolean_t
336ixgb_validate_eeprom_checksum(struct ixgb_hw *hw)

--- 445 unchanged lines hidden ---
329 * valid.
330 *
331 * Returns:
332 * TRUE: Checksum is valid
333 * FALSE: Checksum is not valid.
334 *****************************************************************************/
335boolean_t
336ixgb_validate_eeprom_checksum(struct ixgb_hw *hw)

--- 445 unchanged lines hidden ---