Lines Matching +full:shared +full:- +full:pin
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2008 Intel Corporation. */
23 * hw - Struct containing variables accessed by shared code
24 * eecd_reg - EECD's current value
42 * hw - Struct containing variables accessed by shared code
43 * eecd_reg - EECD's current value
61 * hw - Struct containing variables accessed by shared code
62 * data - data to send to the EEPROM
63 * count - number of bits to shift out
77 mask = 0x01 << (count - 1); in ixgb_shift_out_bits()
111 * hw - Struct containing variables accessed by shared code
151 * hw - Struct containing variables accessed by shared code
153 * Lowers EEPROM clock. Clears input pin. Sets the chip select pin. This
175 * hw - Struct containing variables accessed by shared code
210 * Raises then lowers the EEPROM's clock pin
212 * hw - Struct containing variables accessed by shared code
235 * Terminates a command by lowering the EEPROM's chip select pin
237 * hw - Struct containing variables accessed by shared code
256 * hw - Struct containing variables accessed by shared code
258 * The command is done when the EEPROM's data out pin goes high.
261 * true: EEPROM data pin is high before timeout.
294 * hw - Struct containing variables accessed by shared code
322 * hw - Struct containing variables accessed by shared code
336 checksum = (u16) EEPROM_SUM - checksum; in ixgb_update_eeprom_checksum()
344 * hw - Struct containing variables accessed by shared code
345 * reg - offset within the EEPROM to be written to
346 * data - 16 bit word to be written to the EEPROM
355 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_write_eeprom()
360 /* Send the 9-bit EWEN (write enable) command to the EEPROM (5-bit opcode in ixgb_write_eeprom()
361 * plus 4-bit dummy). This puts the EEPROM into write/erase mode. in ixgb_write_eeprom()
369 /* Send the Write command (3-bit opcode + 6-bit addr) */ in ixgb_write_eeprom()
381 /* Send the 9-bit EWDS (write disable) command to the EEPROM (5-bit in ixgb_write_eeprom()
382 * opcode plus 4-bit dummy). This takes the EEPROM out of write/erase in ixgb_write_eeprom()
392 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); in ixgb_write_eeprom()
398 * hw - Struct containing variables accessed by shared code
399 * offset - offset of 16 bit word in the EEPROM to read
402 * The 16-bit value read from the eeprom
430 * Reads eeprom and stores data in shared structure.
433 * hw - Struct containing variables accessed by shared code
448 ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_eeprom_data()
455 hw->eeprom[i] = cpu_to_le16(ee_data); in ixgb_get_eeprom_data()
462 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); in ixgb_get_eeprom_data()
466 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) in ixgb_get_eeprom_data()
479 * hw - Struct containing variables accessed by shared code
488 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_check_and_get_eeprom_data()
490 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) in ixgb_check_and_get_eeprom_data()
501 * hw - Struct containing variables accessed by shared code
502 * index - Offset of eeprom word
512 return hw->eeprom[index]; in ixgb_get_eeprom_word()
520 * hw - Struct containing variables accessed by shared code
521 * mac_addr - Ethernet Address if EEPROM contents are valid, 0 otherwise
530 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_ee_mac_addr()
536 mac_addr[i] = ee_map->mac_addr[i]; in ixgb_get_ee_mac_addr()
546 * hw - Struct containing variables accessed by shared code
555 return le16_to_cpu(hw->eeprom[EEPROM_PBA_1_2_REG]) in ixgb_get_ee_pba_number()
556 | (le16_to_cpu(hw->eeprom[EEPROM_PBA_3_4_REG])<<16); in ixgb_get_ee_pba_number()
565 * hw - Struct containing variables accessed by shared code
573 struct ixgb_ee_map_type *ee_map = (struct ixgb_ee_map_type *)hw->eeprom; in ixgb_get_ee_device_id()
576 return le16_to_cpu(ee_map->device_id); in ixgb_get_ee_device_id()