--- zzzz-none-000/linux-2.6.19.2/drivers/ieee1394/eth1394.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/drivers/ieee1394/eth1394.c 2007-01-11 07:38:19.000000000 +0000 @@ -64,7 +64,6 @@ #include #include #include -#include #include #include "config_roms.h" @@ -492,7 +491,7 @@ int i; struct eth1394_priv *priv = netdev_priv(dev); struct hpsb_host *host = priv->host; - u64 guid = get_unaligned((u64*)&(host->csr.rom->bus_info_data[3])); + u64 guid = *((u64*)&(host->csr.rom->bus_info_data[3])); u16 maxpayload = 1 << (host->csr.max_rec + 1); int max_speed = IEEE1394_SPEED_MAX; @@ -515,8 +514,8 @@ ETHER1394_GASP_OVERHEAD))); /* Set our hardware address while we're at it */ - memcpy(dev->dev_addr, &guid, sizeof(u64)); - memset(dev->broadcast, 0xff, sizeof(u64)); + *(u64*)dev->dev_addr = guid; + *(u64*)dev->broadcast = ~0x0ULL; } spin_unlock_irqrestore (&priv->lock, flags); @@ -895,7 +894,6 @@ u16 maxpayload; struct eth1394_node_ref *node; struct eth1394_node_info *node_info; - __be64 guid; /* Sanity check. MacOSX seems to be sending us 131 in this * field (atleast on my Panther G5). Not sure why. */ @@ -904,9 +902,8 @@ maxpayload = min(eth1394_speedto_maxpayload[sspd], (u16)(1 << (max_rec + 1))); - guid = get_unaligned(&arp1394->s_uniq_id); node = eth1394_find_node_guid(&priv->ip_node_list, - be64_to_cpu(guid)); + be64_to_cpu(arp1394->s_uniq_id)); if (!node) { return 0; } @@ -934,9 +931,10 @@ arp_ptr += arp->ar_pln; /* skip over sender IP addr */ if (arp->ar_op == htons(ARPOP_REQUEST)) - memset(arp_ptr, 0, sizeof(u64)); + /* just set ARP req target unique ID to 0 */ + *((u64*)arp_ptr) = 0; else - memcpy(arp_ptr, dev->dev_addr, sizeof(u64)); + *((u64*)arp_ptr) = *((u64*)dev->dev_addr); } /* Now add the ethernet header. */ @@ -1677,10 +1675,8 @@ if (max_payload < dg_size + hdr_type_len[ETH1394_HDR_LF_UF]) priv->bc_dgl++; } else { - __be64 guid = get_unaligned((u64 *)eth->h_dest); - node = eth1394_find_node_guid(&priv->ip_node_list, - be64_to_cpu(guid)); + be64_to_cpu(*(u64*)eth->h_dest)); if (!node) { ret = -EAGAIN; goto fail;