Re: ethernet interface initialization

From: Rask Ingemann Lambertsen (
Date: Sat Jun 17 2000 - 08:02:19 EST

Den 14-Jun-00 18:15:42 skrev Sujit Vaidya fĝlgende om "ethernet interface initialization":
> I wanted to look at the source code of the ethernet
>interface initialization. I am interested in looking
>at how dev_addr field (i.e the MAC address is filled
>up) for my school project.

>I have a 3COm 3C59x ethernet card.

   It happens in the driver specific part, with something like

        /* Retrieve and print the ethernet address. */
        for (i = 0; i < 6; i++)
                printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + NE3200_SADDR_MBOX + i));

   Look in drivers/net/3c59x.c for places where dev->dev_addr is written
to. Just about all Ethernet cards have a ROM of some sort where the MAC
address is stored. How the driver reads the ROM varies from card to card.


| Rask Ingemann Lambertsen | E-mail: |
| Please do NOT Cc: to me or the | WWW: |
| mailing list. I am on the list.| "ThrustMe" on XPilot, ARCnet and IRC |
| LOAD "emacs",8,1 |

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:14 EST