Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | M88E1000_CABLE_LENGTH_TABLE_SIZE |
#define | IGP02E1000_CABLE_LENGTH_TABLE_SIZE |
#define IGP02E1000_CABLE_LENGTH_TABLE_SIZE |
Definition at line 56 of file e1000_phy.c.
#define M88E1000_CABLE_LENGTH_TABLE_SIZE |
Definition at line 43 of file e1000_phy.c.
igb_copper_link_setup_82580 - Setup 82580 PHY for copper link : pointer to the HW structure
Sets up Carrier-sense on Transmit and downshift values.
Definition at line 436 of file e1000_phy.c.
igb_get_cable_length_igp_2 - Determine cable length for igp2 PHY : pointer to the HW structure
The automatic gain control (agc) normalizes the amplitude of the received signal, adjusting for the attenuation produced by the cable. By reading the AGC registers, which represent the combination of coarse and fine gain value, the value can be put into a lookup table to obtain the approximate cable length for each channel.
Definition at line 1804 of file e1000_phy.c.
igb_get_cable_length_m88 - Determine cable length for m88 PHY : pointer to the HW structure
Reads the PHY specific status register to retrieve the cable length information. The cable length is determined by averaging the minimum and maximum values to get the "average" cable length. The m88 PHY has four possible cable length values, which are: Register Value Cable Length 0 < 50 meters 1 50 - 80 meters 2 80 - 110 meters 3 110 - 140 meters 4 > 140 meters
Definition at line 1679 of file e1000_phy.c.
Definition at line 1705 of file e1000_phy.c.
igb_get_phy_info_82580 - Retrieve I82580 PHY information : pointer to the HW structure
Read PHY status to determine if link is up. If link is up, then set/determine 10base-T extended distance and polarity correction. Read PHY port status to determine MDI/MDIx and speed. Based on the speed, determine on the cable length, local and remote receiver.
Definition at line 2320 of file e1000_phy.c.
igb_get_phy_info_igp - Retrieve igp PHY information : pointer to the HW structure
Read PHY status to determine if link is up. If link is up, then set/determine 10base-T extended distance and polarity correction. Read PHY port status to determine MDI/MDIx and speed. Based on the speed, determine on the cable length, local and remote receiver.
Definition at line 1952 of file e1000_phy.c.
igb_get_phy_info_m88 - Retrieve PHY information : pointer to the HW structure
Valid for only copper links. Read the PHY status register (sticky read) to verify that link is up. Read the PHY special control register to determine the polarity and 10base-T extended distance. Read the PHY special status register to determine MDI/MDIx and current speed. If speed is 1000, then determine cable length, local and remote receiver.
Definition at line 1876 of file e1000_phy.c.
igb_phy_force_speed_duplex_82580 - Force speed/duplex for I82580 PHY : pointer to the HW structure
Calls the PHY setup function to force speed and duplex. Clears the auto-crossover to force MDI manually. Waits for link and returns successful if link up is successful, else -E1000_ERR_PHY (-2).
Definition at line 2249 of file e1000_phy.c.
igb_phy_force_speed_duplex_igp - Force speed/duplex for igp PHY : pointer to the HW structure
Calls the PHY setup function to force speed and duplex. Clears the auto-crossover to force MDI manually. Waits for link and returns successful if link up is successful, else -E1000_ERR_PHY (-2).
Definition at line 1131 of file e1000_phy.c.
igb_phy_force_speed_duplex_m88 - Force speed/duplex for m88 PHY : pointer to the HW structure
Calls the PHY setup function to force speed and duplex. Clears the auto-crossover to force MDI manually. Resets the PHY to commit the changes. If time expires while waiting for link up, we reset the DSP. After reset, TX_CLK and CRS on TX must be set. Return successful upon successful completion, else return corresponding error code.
Definition at line 1203 of file e1000_phy.c.
igb_phy_has_link - Polls PHY for link : pointer to the HW structure : number of times to poll for link : delay between polling attempts : pointer to whether polling was successful or not
Polls the PHY status register for link, 'iterations' number of times.
Definition at line 1627 of file e1000_phy.c.
igb_phy_hw_reset - PHY hardware reset : pointer to the HW structure
Verify the reset block is not blocking us from resetting. Acquire semaphore (if necessary) and read/set/write the device control reset bit in the PHY. Wait the appropriate delay time for the device to reset and relase the semaphore (if necessary).
Definition at line 2047 of file e1000_phy.c.
igb_read_phy_reg_gs40g - Read GS40G PHY register : pointer to the HW structure : lower half is register offset to read to upper half is page to use. : data to read at register offset
Acquires semaphore, if necessary, then reads the data in the PHY register at the offset. Release any acquired semaphores before exiting.
Definition at line 2447 of file e1000_phy.c.
igb_read_phy_reg_igp - Read igp PHY register : pointer to the HW structure : register offset to be read : pointer to the read data
Acquires semaphore, if necessary, then reads the PHY register at offset and storing the retrieved information in data. Release any acquired semaphores before exiting.
Definition at line 361 of file e1000_phy.c.
igb_set_d3_lplu_state - Sets low power link up state for D3 : pointer to the HW structure : boolean used to enable/disable lplu
Success returns 0, Failure returns 1
The low power link up (lplu) state is set to the power management level D3 and SmartSpeed is disabled when active is true, else clear lplu for D3 and enable Smartspeed. LPLU and Smartspeed are mutually exclusive. LPLU is used during Dx states where the power conservation is most important. During driver activity, SmartSpeed should be enabled so performance is maintained.
Definition at line 1396 of file e1000_phy.c.
igb_setup_copper_link - Configure copper link settings : pointer to the HW structure
Calls the appropriate function to configure the link for auto-neg or forced speed and duplex. Then we check for link, once link is established calls to configure collision distance and flow control are called. If link is not established, we return -E1000_ERR_PHY (-2).
Definition at line 1073 of file e1000_phy.c.
igb_write_phy_reg_gs40g - Write GS40G PHY register : pointer to the HW structure : lower half is register offset to write to upper half is page to use. : data to write at register offset
Acquires semaphore, if necessary, then writes the data to PHY register at the offset. Release any acquired semaphores before exiting.
Definition at line 2417 of file e1000_phy.c.
igb_write_phy_reg_igp - Write igp PHY register : pointer to the HW structure : register offset to write to : data to write at register offset
Acquires semaphore, if necessary, then writes the data to PHY register at the offset. Release any acquired semaphores before exiting.
Definition at line 400 of file e1000_phy.c.