u32 macl, macu; 
u32 macl, macu, regvalue; 
spider_net_set_mac(struct net_device *netdev, void *p){	struct spider_net_card *card = netdev_priv(netdev);	u32 macl, macu;	struct sockaddr *addr = p;	/* GMACTPE and GMACRPE must be off, so we only allow this, if	 * the device is down */	if (netdev->flags & IFF_UP)		return -EBUSY;	if (!is_valid_ether_addr(addr->sa_data))		return -EADDRNOTAVAIL;	macu = (addr->sa_data[0]<<24) + (addr->sa_data[1]<<16) +		(addr->sa_data[2]<<8) + (addr->sa_data[3]);	macl = (addr->sa_data[4]<<8) + (addr->sa_data[5]);	spider_net_write_reg(card, SPIDER_NET_GMACUNIMACU, macu);	spider_net_write_reg(card, SPIDER_NET_GMACUNIMACL, macl);	spider_net_set_promisc(card);	/* look up, whether we have been successful */	if (spider_net_get_mac_address(netdev))		return -EADDRNOTAVAIL;	if (memcmp(netdev->dev_addr,addr->sa_data,netdev->addr_len))		return -EADDRNOTAVAIL;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/054034dbf5b1a6aef800af4eb22d421d1c7d4b6d/spider_net.c/buggy/drivers/net/spider_net.c