Changeset 7


Ignore:
Timestamp:
Jan 26, 2011, 10:00:13 PM (14 years ago)
Author:
David Azarewicz
Message:

Added NETADDRESS support to E1000E

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/e1000e/e1000e.inc

    r4 r7  
    22#commas are not allowed in these definitions
    33PROJECT=Intel PRO/1000 PCIe MAC Driver
    4 FIXPACK=SVN4
    5 VERSION=0.1.4
     4FIXPACK=SVN7
     5VERSION=0.1.5
    66
    77#TODO: automatically create BUILDDATE
    8 BUILDDATE=20101129
     8BUILDDATE=20110126
    99
    1010#DBG_MODE=0 turns debug off
  • TabularUnified trunk/e1000e/e1000e.nif-in

    r1 r7  
    2828Editable   = yes
    2929Help       = "Use receive chain instead of receive lookahead"
     30
     31[NETADDRESS]
     32Display    = "Network Adapter Address"
     33Type       = hexstring
     34Strlength  = 12
     35Optional   = yes
     36Editable   = yes
     37Help       = "This parameter overrides the network address of the network
     38 adapter card.  The value of this parameter is a hexadecimal string of
     39 12 digits.  The address must be unique among all other network adapter addresses on the network."
  • TabularUnified trunk/e1000e/e1000hw.cpp

    r1 r7  
    3434word fixed_mode = 0;
    3535word dorxchain = 1;
     36word use_hw_netaddress = 1;
    3637
    3738static void set_default_params(struct e1000_adapter *adapter);
     
    384385        }
    385386
     387        p = GetConfigString(FindKey(pConfig, "NETADDRESS"));
     388        if (*p) {
     389                rc = GetHex(p, mac, 6, 0);
     390                use_hw_netaddress = 0;
     391        }
     392
    386393        if (dorxchain) AdapterSC.MscService |= RECEIVECHAIN_MOSTLY;
    387394
     
    526533        e1000_eeprom_checks(&adapter);
    527534
    528         /* copy the MAC address out of the NVM */
    529         if (e1000e_read_mac_addr(&adapter.hw))
    530         {
    531                 DPRINTF((1, "NVM Read Error while reading MAC address"));
    532                 return -1;
    533         }
    534 
    535         memcpy(mac, adapter.hw.mac.addr, sizeof mac);
     535        if (use_hw_netaddress) {
     536                /* copy the MAC address out of the NVM */
     537                if (e1000e_read_mac_addr(&adapter.hw))
     538                {
     539                        DPRINTF((1, "NVM Read Error while reading MAC address"));
     540                        return -1;
     541                }
     542
     543                memcpy(mac, adapter.hw.mac.addr, sizeof mac);
     544        }
    536545
    537546        DPRINTF((3, "MAC address = %x:%x:%x:%x:%x:%x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]));
  • TabularUnified trunk/e1000e/readme

    r4 r7  
    8181  not output normal messages. Error messages are still output normally.
    8282
     830.1.5
     84  Added NETADDRESS support
    8385
  • TabularUnified trunk/nveth/readme

    r4 r7  
    128128  not output normal messages. Error messages are still output normally.
    129129
     1300.1.6
     131  Added NETADDRESS support
     132
Note: See TracChangeset for help on using the changeset viewer.