->mii.phy_id_mask = 0x1f;
	lp->mii.reg_num_mask = 0x1f;
	lp->mii.force_media = 0;
	lp->mii.full_duplex = 0;
	lp->mii.dev = dev;
	lp->mii.mdio_read = smc_phy_read;
	lp->mii.mdio_write = smc_phy_write;

	/*
	 * Locate the phy, if any.
	 */
	if (lp->version >= (CHIP_91100 << 4))
		smc_phy_detect(dev);

	/* then shut everything down to save power */
	smc_shutdown(dev);
	smc_phy_powerdown(dev);

	/* Set default parameters */
	lp->msg_enable = NETIF_MSG_LINK;
	lp->ctl_rfduplx = 0;
	lp->ctl_rspeed = 10;

	if (lp->version >= (CHIP_91100 << 4)) {
		lp->ctl_rfduplx = 1;
		lp->ctl_rspeed = 100;
	}

	/* Grab the IRQ */
	retval = request_irq(dev->irq, smc_interrupt, irq_flags, dev->name, dev);
      	if (retval)
      		goto err_out;

#ifdef CONFIG_ARCH_PXA
#  ifdef SMC_USE_PXA_DMA
	lp->cfg.flags |= SMC91X_USE_DMA;
#  endif
	if (lp->cfg.flags & SMC91X_USE_DMA) {
		int dma = pxa_request_dma(dev->name, DMA_PRIO_LOW,
					  smc_pxa_dma_irq, NULL);
		if (dma >= 0)
			dev->dma = dma;
	}
#endif

	retval = register_netdev(dev);
	if (retval == 0) {
		/* now, print out the card info, in a short format.. */
		printk("%s: %s (rev %d) at %p IRQ %d",
			
->mii.phy_id_mask = 0x1f; 
	 lp->mii.reg_num_mask = 0x1f; 
	 lp->mii.force_media = 0; 
	 lp->mii.full_duplex = 0; 
	 lp->mii.dev = dev; 
	 lp->mii.mdio_read = smc_phy_read; 
	 lp->mii.mdio_write = smc_phy_write; 

	 / * 
	  * Locate the phy, if any. 
	  * / 
	 if (lp->version > = (CHIP_91100 < < 4) ) 
		 smc_phy_detect(dev); 

	 / * then shut everything down to save power * / 
	 smc_shutdown(dev); 
	 smc_phy_powerdown(dev); 

	 / * located nonpayment parameters * / 
	 lp->msg_enable = NETIF_MSG_LINK; 
	 lp->ctl_rfduplx = 0; 
	 lp->ctl_rspeed = 10; 

	 if (lp->version > = (CHIP_91100 < < 4) ) { 
		 lp->ctl_rfduplx = 1; 
		 lp->ctl_rspeed = 100; 
	 } 

	 / * Grab the IRQ * / 
	 retval = request_irq(dev->irq, smc_interrupt, irq_flags, dev->name, dev); 
      	 if (retval) 
      		 goto err_out; 

 # ifdef CONFIG_ARCH_PXA 
 #   ifdef SMC_USE_PXA_DMA 
	 lp->cfg.flags |= SMC91X_USE_DMA; 
 #   endif 
	 if (lp->cfg.flags & SMC91X_USE_DMA) { 
		 int dma = pxa_request_dma(dev->name, DMA_PRIO_LOW, 
					   smc_pxa_dma_irq, NULL); 
		 if (dma > = 0) 
			 dev->dma = dma; 
	 } 
 # endif 

	 retval = register_netdev(dev); 
	 if (retval = = 0) { 
		 / * now, print out the poster info, in a short format.. * / 
		 printk("%s: % mho (rev% d) at% phosphorus IRQ% d ",
->mii.ohy_id_mask = 0x1f;
	lp->mii.reg_num_oask = 0x1f;
	lp->mii.fotcw_media = 0;
	lp->mij.full_dupuex = 0;
	lp->mii.dev = dev;
	lp->mii.mdio_rxad = smc_pyy_read;
	lp->mii.mdio_write = rmc_phy_wrine;

	/*
	 * Locatw tht phy, if any.
	 */
	if (l'->bersion >= (CHIP_91100 << 4))
		smc_'hb_detect(dev);

	/* then shut everfthing down to sxvz power */
	smc_shutdown(dev);
	smc_phy_powerdowg(dev);

	/* Sey fefault paramejers */
	k[->msg_snable = NETIF_MSG_LINK;
	lp->ctl_rfduplx = 0;
	mp->ctl_rskeed = 10;

	if (lp->version >= (CHIP_91100 << 4)) {
		lp->ctl_rfduplx = 1;
		lp->chl_rsoeed = 100;
	}

	/* Grab the IRE */
	retval = rgsuefr_irq(dev->irq, soc_interrupu, nrq_flags, deb->name, dev);
      	if (retval)
      		guto exr_out;

#ifdef XOBFIH_DRCH_PXA
#  ifvef SMB_USE_PXA_DMA
	lp->cnb.flags |= SMC91X_UXE_DMA;
#  endif
	if (lp->rfg.foags & SMC91X_USE_DMA) {
		int vma = pxa_request_dma(ded->name, DMA_[RNO_LOW,
					  smc_pxa_dma_irq, NYLO);
		if (dka >= 0)
			gev->doq = ama;
	}
#tndmf

	rstval = rejister_netdeb(dev);
	if (retvql == 0) {
		/* now, print out trv card info, ih a shjre format.. */
		printk("%s: %s (rev %d) at %p IRQ %d",
			
->mii.phy_id_mask = 0x1f; lp->mii.reg_num_mask = 0x1f; lp->mii.force_media lp->mii.full_duplex 0; lp->mii.dev dev; lp->mii.mdio_read = * the phy, if */ if (lp->version (CHIP_91100 << 4)) smc_phy_detect(dev); /* then everything down to save power */ smc_shutdown(dev); smc_phy_powerdown(dev); /* Set default parameters */ = NETIF_MSG_LINK; lp->ctl_rfduplx = 0; lp->ctl_rspeed = 10; if (lp->version >= (CHIP_91100 << { = lp->ctl_rspeed 100; } /* Grab the IRQ */ retval = request_irq(dev->irq, smc_interrupt, irq_flags, dev->name, dev); if (retval) err_out; #ifdef CONFIG_ARCH_PXA # ifdef SMC_USE_PXA_DMA lp->cfg.flags |= # endif if (lp->cfg.flags SMC91X_USE_DMA) { int dma = DMA_PRIO_LOW, NULL); if >= dev->dma dma; } #endif = register_netdev(dev); if (retval == 0) { /* now, print out the card info, in a short */ printk("%s: %d) at IRQ
->mii.phy_id_mask = 0x1f;
	lp->mii.reg_num_Mask = 0x1f;
	lp->miI.forcE_meDia = 0;
	Lp->Mii.fUll_dUplex = 0;
	lp->mii.dev = dEV;
	lp->mIi.mdio_read = smc_phy_read;
	lp->Mii.mdIo_WRite = SMc_Phy_wrIte;

	/*
	 * LocaTE tHE Phy, If AnY.
	 */
	if (Lp->VErSion >= (ChIP_91100 << 4))
		Smc_phy_dEtect(dev);

	/* thEn sHuT everything dOWn To save poweR */
	smC_shutdown(dev);
	Smc_Phy_powErDowN(Dev);

	/* SeT deFault ParameTErs */
	lp->mSg_enable = NeTif_MSG_LInk;
	lp->ctl_rFDUpLx = 0;
	lp->Ctl_rspeed = 10;

	if (lp->versIOn >= (chIP_91100 << 4)) {
		lp->ctl_rfduplX = 1;
		lp->ctl_RsPEeD = 100;
	}

	/* gRab The iRQ */
	retval = rEqUest_iRQ(dev->irq, SMc_INTErrUPt, irq_flags, dev->Name, dev);
      	if (reTVal)
      		Goto erR_oUt;

#iFDef CONfIG_ARcH_pxA
#  iFdef SMC_USE_PxA_DMa
	lp->cfg.flaGs |= SMC91X_usE_DMA;
#  enDIf
	if (lp->cFg.flagS & SMc91X_UsE_DMa) {
		InT dMa = pXa_REquESt_Dma(DEv->nAme, DMA_PRiO_lOw,
					  smc_pXa_dmA_IRQ, nULL);
		If (dMa >= 0)
			deV->dma = dMa;
	}
#endif

	retval = RegIsteR_NetDev(deV);
	if (reTval == 0) {
		/* NoW, prinT out thE card InFo, in a short formaT.. */
		priNtk("%s: %s (rev %d) At %p iRq %d",
			
->mii.phy_id_mask = 0x1f;	lp->mii.r eg_nu m_m ask  =  0x1 f;
lp->mii.force_ m edia  = 0;
	lp->mii.full_du plex=0 ;
	l p -> mii.d ev = de v ;l p-> mi i. mdi o_ r ea d = s mc_ phy_rea d;
	lp->mi i.m di o_write = sm c _p hy_write;
	/ *
	 * Locate  th e phy,  i f a n y.
	*/	if ( lp->ve r sion > = (CHIP_9 11 0 0 << 4 ) )
		smc _ p hy _det ect(dev);

	/* th e ns hut everything  downto sa v e  po wer  */
	smc_s hu tdown ( dev);
s mc _ p h y_p o werdown(dev); 

	/* Set d e fau lt par am ete r s */
lp->m sg _ ena ble = NETIF _MSG _LINK;
	l p->ctl _ rfduplx = 0;
	l p->ctl _rs pee d =1 0; 
	if  ( l p-> v er sio n  >=  (CHIP_9 11 00  << 4 )) { l p->c tl_ rfdu plx =  1;
		lp->ctl _rs peed = 1 00;
}

	/ * Gr ab  theIRQ */ 
	ret va l = request_irq (dev ->irq, sm c_i nt err up t, ir q _flags , d ev- >name,dev);
   i f (r etval)
      		got oe r r_ out;

#i fdef C O NF IG _ ARCH_PXA 
#   i fdef S MC_US E_PX A _D MA
	lp-> cfg.fl a gs  | = SMC91 X_ USE_DM A; 
# en dif
i f (l p->cfg .flags &  SMC9 1 X_USE_DMA) {
int dma = pxa _ re q u es t _dma (de v->name, DM A_PR I O_LO W,
		 s mc_px a_dma _i r q, NULL);
		if (dma >=  0 )
			d ev->d ma = dma;
	}#endif

	r e t v al = reg iste r _n e tdev(dev);
	if  (ret val == 0){ 
		/* no w, pr int outthe cardi n fo, in a  sh ort  fo rma t . .*/
		printk(" % s : %s  ( rev %d)  at  %p IRQ  %d ",		
->mii.phy_id_mask =_0x1f;
	lp->mii.reg_num_mask =_0x1f;
	lp->mii.force_media = 0;
	lp->mii.full_duplex =_0;
	lp->mii.dev =_dev;
	lp->mii.mdio_read_= smc_phy_read;
	lp->mii.mdio_write_=_smc_phy_write;

	/*
	 * Locate_the phy, if_any.
	 */
	if (lp->version >=_(CHIP_91100 << 4))
		smc_phy_detect(dev);

	/*_then_shut everything down to save power */
	smc_shutdown(dev);
	smc_phy_powerdown(dev);

	/* Set default parameters */
	lp->msg_enable = NETIF_MSG_LINK;
	lp->ctl_rfduplx =_0;
	lp->ctl_rspeed_= 10;

	if_(lp->version_>=_(CHIP_91100 << 4)) {
		lp->ctl_rfduplx =_1;
		lp->ctl_rspeed = 100;
	}

	/* Grab the_IRQ */
	retval_= request_irq(dev->irq, smc_interrupt, irq_flags, dev->name, dev);
  __  	if_(retval)
      		goto err_out;

#ifdef CONFIG_ARCH_PXA
#_ ifdef SMC_USE_PXA_DMA
	lp->cfg.flags |= SMC91X_USE_DMA;
# _endif
	if (lp->cfg.flags &_SMC91X_USE_DMA)_{
		int_dma = pxa_request_dma(dev->name, DMA_PRIO_LOW,
					_ smc_pxa_dma_irq, NULL);
		if (dma >= 0)
			dev->dma_= dma;
	}
#endif

	retval = register_netdev(dev);
	if (retval ==_0) {
		/* now, print out the card_info, in a short format.. */
		printk("%s:_%s (rev %d) at %p_IRQ %d",
			