Andrew,

Thanks for your feedback.  I've fixed everything you mentioned with the
exception of the code below.  I need to swap every other byte pair of my
nvram mac address for big endian systems.  Everything else I tried was
more messy.  Did you have anything specific in mind?

Ron Mercer   


> 
> - Is there a better way of doing this?
> 
> static void ql_swap_mac_addr(u8 * macAddress) { #ifdef __BIG_ENDIAN
>       u8 temp;
>       temp = macAddress[0];
>       macAddress[0] = macAddress[1];
>       macAddress[1] = temp;
>       temp = macAddress[2];
>       macAddress[2] = macAddress[3];
>       macAddress[3] = temp;
>       temp = macAddress[4];
>       macAddress[4] = macAddress[5];
>       macAddress[5] = temp;
> #endif
> }
> 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to