FreeBSD/sys/dev/bxe/ecore_sp.h
/* fill in a MAC address the way the FW likes it */
fill in a MAC address the way the FW likes it
fill in a MAC address the way the FW likes it
static inline void
ecore_set_fw_mac_addr(uint16_t *fw_hi,
                      uint16_t *fw_mid,
                      uint16_t *fw_lo,
                      uint8_t  *mac)
{
    ((uint8_t *)fw_hi)[0]  = mac[1];
    ((uint8_t *)fw_hi)[1]  = mac[0];
    ((uint8_t *)fw_mid)[0] = mac[3];
    ((uint8_t *)fw_mid)[1] = mac[2];
    ((uint8_t *)fw_lo)[0]  = mac[5];
    ((uint8_t *)fw_lo)[1]  = mac[4];
}
static inline void ecore_set_fw_mac_addr ( uint16_t * fw_hi , uint16_t * fw_mid , uint16_t * fw_lo , uint8_t * mac ) { ( ( uint8_t * ) fw_hi ) [ 0 ] = mac [ 1 ] ; ( ( uint8_t * ) fw_hi ) [ 1 ] = mac [ 0 ] ; ( ( uint8_t * ) fw_mid ) [ 0 ] = mac [ 3 ] ; ( ( uint8_t * ) fw_mid ) [ 1 ] = mac [ 2 ] ; ( ( uint8_t * ) fw_lo ) [ 0 ] = mac [ 5 ] ; ( ( uint8_t * ) fw_lo ) [ 1 ] = mac [ 4 ] ; }
fill in a MAC address the way the FW likes it
fill in a MAC address the way the FW likes it