Directory structure, Phy definition, Directory structure -2 – Altera Triple Speed Ethernet MegaCore Function User Manual

Page 181: Phy definition -2

Advertising
background image

Directory Structure

Structure of the altera_triple_speed_ethernet directory.

Figure 11-2: Directory Structure

HAL

altera_triple_speed_ethernet

inc

triple_speed_ethernet.h
altera_avalon_tse.h
altera_avalon_tse_system_info.h

inc

triple_speed_ethernet_regs.h

src

altera_avalon_tse.c
altera_avalon_tse_system_info.c

iniche

ins_tse_mac.h
triple_speed_ethernet_iniche.h

iniche

UCOSII

inc

src

ins_tse_mac.c

PHY Definition

By default, the software driver only supports the following PHYs:

• National DP83848C (10/100 Mbps)
• National DP83865 (10/100/1000 Mbps)
• Marvell 88E1111 (10/100/1000 Mbps)
• Marvell 88E1145 (Quad PHY, 10/100/1000 Mbps).

You can extend the software driver to support other PHYs by defining the PHY profile using the structure

alt_tse_phy_profile

and adding it to the system using the function

alt_tse_phy_add_profile()

. For

each PHY instance, use the structure

alt_tse_system_phy_struct

to define it and the function

alt_tse_system_add_sys()

to add the instance to the system.

The software driver automatically detects the PHY’s operating mode and speed if the PHY conforms to the
following specifications:

• One bit to specify duplex and two consecutive bits (the higher bit being the most significant bit) to specify

the speed in the same extended PHY specific register.

• The speed bits are set according to the convention shown in

Table 11-1

.

Table 11-1: PHY Speed Bit Values

PHY Speed Bits

Speed (Mbps)

LSB

MSB

0

1

1000

1

0

100

Software Programming Interface

Altera Corporation

Send Feedback

UG-01008

Directory Structure

11-2

2014.06.30

Advertising