Al 05/11/10 19:16, En/na Scott Nicholas ha escrit:

static int ifxmips_set_mac_address(struct net_device *dev, void *p)
{
         int ret;
         struct sockaddr *addr = p;

         ret = eth_mac_addr(dev, p);
         if (ret)
                 return ret;

         memcpy(ENET_MAC_DA0, addr->sa_data, ETH_ALEN);

         return 0;
}

maybe?

More or less. In the meanwhile I found the macros to write memory mapped registers (ifxmips_w32 and ifxmips_w32_mask).
Thanks for the suggestion.

Bye
--
Luca
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to