 /* * figure out the addresses of some ports 
 /* * figure out the addresses of some ports 
static int sbmac_initctx(struct sbmac_softc *s){		/* 	 * figure out the addresses of some ports 	 */		s->sbm_macenable = s->sbm_base + R_MAC_ENABLE;	s->sbm_maccfg    = s->sbm_base + R_MAC_CFG;	s->sbm_fifocfg   = s->sbm_base + R_MAC_THRSH_CFG;	s->sbm_framecfg  = s->sbm_base + R_MAC_FRAMECFG;	s->sbm_rxfilter  = s->sbm_base + R_MAC_ADFILTER_CFG;	s->sbm_isr       = s->sbm_base + R_MAC_STATUS;	s->sbm_imr       = s->sbm_base + R_MAC_INT_MASK;	s->sbm_mdio      = s->sbm_base + R_MAC_MDIO;	s->sbm_phys[0]   = 1;	s->sbm_phys[1]   = 0;	s->sbm_phy_oldbmsr = 0;	s->sbm_phy_oldanlpar = 0;	s->sbm_phy_oldk1stsr = 0;	s->sbm_phy_oldlinkstat = 0;		/*	 * Initialize the DMA channels.  Right now, only one per MAC is used	 * Note: Only do this _once_, as it allocates memory from the kernel!	 */		sbdma_initctx(&(s->sbm_txdma),s,0,DMA_TX,SBMAC_MAX_TXDESCR);	sbdma_initctx(&(s->sbm_rxdma),s,0,DMA_RX,SBMAC_MAX_RXDESCR);		/*	 * initial state is OFF	 */		s->sbm_state = sbmac_state_off;		/*	 * Initial speed is (XXX TEMP) 10MBit/s HDX no FC	 */		s->sbm_speed = sbmac_speed_10;	s->sbm_duplex = sbmac_duplex_half;	s->sbm_fc = sbmac_fc_disabled;		return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/74b0247fbd4b6ed1693a420d85cf50267d840ef4/sb1250-mac.c/buggy/drivers/net/sb1250-mac.c