Re: [PATCH] 8139cp: allow to set mac address on running device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ivan Vecera
Date: Friday, March 13, 2009 - 2:01 am

Jiri Pirko wrote:
Yes, that's right but I would use more cleaner approach:
===
u32 low, high;
low  = addr[0] | (addr[1] << 8) | (addr[2] << 16) | (addr[3] << 24);
high = addr[4] | (addr[5] << 8);
cpw32_f(MAC0 + 0, low);
cpw32_f(MAC0 + 4, high);
===

Ivan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] 8139cp: allow to set mac address on running device, Ivan Vecera, (Fri Mar 13, 2:01 am)