Operating System - Tru64 Unix
1753408 Members
6788 Online
108793 Solutions
New Discussion юеВ

Intel (82558/82559) PCI 10/100 Ethernet mystery

 
Andrew Li
Occasional Contributor

Intel (82558/82559) PCI 10/100 Ethernet mystery

Hi All,

We've written a C program that reads the network card details of the Tulip Ethernet card from the kernel (Tru64 4.0F). The details we read off are pulled off the kernel using nlist(), with the structures being "tu_softc" for the tu tulip cards. This structure is defined in the file if_tu_data.h, a sample run of the program looks like this:

$ a.out
NIC tu0 tu1
fast_speed: 0 0
full_duplex: 0 0
ce_resolve: 0 0
auto_tr: 0 0
sf_mode: 0 1
rx_or_tx: 0 0
timer_on: 0 0
auto_enabled: 0 0
auto_capable: 0 0
overflow_bug: 0 1
dc21040: 0 0
dc21041: 0 1
dc2104x: 0 0
dc21140: 0 0
dc21142: 0 0
dc21143: 0 0
fx_mode: 0 0

We've always been wanting to port this program to our newer machines, however all our new machines are using the ee card instead of the tu cards. And I've looked everywhere for a header file that contains the ee card structure so that I can pull it off using nlist(), but I am not able to find it anywhere.

Does anyone have any ideas on where to get the structure?

Many thanks,
Andrew

2 REPLIES 2
Han Pilmeyer
Esteemed Contributor

Re: Intel (82558/82559) PCI 10/100 Ethernet mystery

Well... there is an ee_softc struct, just as there is a tu_softc struct. However, on V5 systems, I can't even find the if_tu_data.h file. Looks like this type of information requires a source license.

In V5 much of your nice program (if not everything) can be displayed using the "hwmgr -get att" command.
Andrew Li
Occasional Contributor

Re: Intel (82558/82559) PCI 10/100 Ethernet mystery

Thanks Han, the information we want can in fact be obtained from hwmgr -get att.