skge_write32(hw, B2_GP_IO, reg); skge_read32(hw, B2_GP_IO); 
static void genesis_stop(struct skge_port *skge){	struct skge_hw *hw = skge->hw;	int port = skge->port;	/* Clear Tx packet arbiter timeout IRQ */	skge_write16(hw, B3_PA_CTRL,		     port == 0 ? PA_CLR_TO_TX1 : PA_CLR_TO_TX2);	/*	 * If the transfer stucks at the MAC the STOP command will not	 * terminate if we don't flush the XMAC's transmit FIFO !	 */	xm_write32(hw, port, XM_MODE,			xm_read32(hw, port, XM_MODE)|XM_MD_FTF);	/* Reset the MAC */	skge_write16(hw, SK_REG(port, TX_MFF_CTRL1), MFF_SET_MAC_RST);	/* For external PHYs there must be special handling */	if (hw->phy_type != SK_PHY_XMAC) {		u32 reg = skge_read32(hw, B2_GP_IO);		if (port == 0) {			reg |= GP_DIR_0;			reg &= ~GP_IO_0;		} else {			reg |= GP_DIR_2;			reg &= ~GP_IO_2;		}		skge_write32(hw, B2_GP_IO, reg);		skge_read32(hw, B2_GP_IO);	}	xm_write16(hw, port, XM_MMU_CMD,			xm_read16(hw, port, XM_MMU_CMD)			& ~(XM_MMU_ENA_RX | XM_MMU_ENA_TX));	xm_read16(hw, port, XM_MMU_CMD);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/89bf5f231f776443a9d65da0f774aa3632534749/skge.c/clean/drivers/net/skge.c