if (local->sandisk_connectplus) { 
if (hw_priv->sandisk_connectplus) { 
static void prism2_pccard_genesis_reset(local_info_t *local, int hcr){	int res;	conf_reg_t reg;	int old_cor;	if (!prism2_pccard_card_present(local))	       return;	if (local->sandisk_connectplus) {		sandisk_write_hcr(local, hcr);		return;	}	reg.Function = 0;	reg.Action = CS_READ;	reg.Offset = CISREG_COR;	reg.Value = 0;	res = pcmcia_access_configuration_register(local->link->handle, &reg);	if (res != CS_SUCCESS) {		printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 1 "		       "(%d)\n", res);		return;	}	printk(KERN_DEBUG "prism2_pccard_genesis_sreset: original COR %02x\n",	       reg.Value);	old_cor = reg.Value;	reg.Action = CS_WRITE;	reg.Value |= COR_SOFT_RESET;	res = pcmcia_access_configuration_register(local->link->handle, &reg);	if (res != CS_SUCCESS) {		printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 2 "		       "(%d)\n", res);		return;	}	mdelay(10);	/* Setup Genesis mode */	reg.Action = CS_WRITE;	reg.Value = hcr;	reg.Offset = CISREG_CCSR;	res = pcmcia_access_configuration_register(local->link->handle, &reg);	if (res != CS_SUCCESS) {		printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 3 "		       "(%d)\n", res);		return;	}	mdelay(10);	reg.Action = CS_WRITE;	reg.Offset = CISREG_COR;	reg.Value = old_cor & ~COR_SOFT_RESET;	res = pcmcia_access_configuration_register(local->link->handle, &reg);	if (res != CS_SUCCESS) {		printk(KERN_DEBUG "prism2_pccard_genesis_sreset failed 4 "		       "(%d)\n", res);		return;	}	mdelay(10);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/67e0e473fb54e7657f6604236e42ef07fd7a2768/hostap_cs.c/clean/drivers/net/wireless/hostap/hostap_cs.c