#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_USRV) || defined(CONFIG_PLAT_OPSPUT) 
#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_USRV) || defined(CONFIG_PLAT_OPSPUT) || defined(CONFIG_PLAT_MAPPI2) || defined(CONFIG_PLAT_MAPPI3) 
static int _pcc_set_socket(u_short sock, socket_state_t *state){#if defined(CONFIG_PLAT_MAPPI2)	u_long reg = 0;#endif	debug(3, "m32r_cfc: SetSocket(%d, flags %#3.3x, Vcc %d, Vpp %d, "		  "io_irq %d, csc_mask %#2.2x)\n", sock, state->flags,		  state->Vcc, state->Vpp, state->io_irq, state->csc_mask);#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_USRV) || defined(CONFIG_PLAT_OPSPUT)	if (state->Vcc) {		if ((state->Vcc != 50) && (state->Vcc != 33))			return -EINVAL;		/* accept 5V and 3.3V */	}#elif defined(CONFIG_PLAT_MAPPI2)	if (state->Vcc) {		/*		 * 5V only		 */		if (state->Vcc == 50) {			reg |= PCCSIGCR_VEN;		} else {			return -EINVAL;		}	}#endif	if (state->flags & SS_RESET) {		debug(3, ":RESET\n");		pcc_set(sock,(unsigned int)PLD_CFRSTCR,0x101);	}else{		pcc_set(sock,(unsigned int)PLD_CFRSTCR,0x100);	}	if (state->flags & SS_OUTPUT_ENA){		debug(3, ":OUTPUT_ENA\n");		/* bit clear */		pcc_set(sock,(unsigned int)PLD_CFBUFCR,0);	} else {		pcc_set(sock,(unsigned int)PLD_CFBUFCR,1);	}#ifdef DEBUG	if(state->flags & SS_IOCARD){		debug(3, ":IOCARD");	}	if (state->flags & SS_PWR_AUTO) {		debug(3, ":PWR_AUTO");	}	if (state->csc_mask & SS_DETECT)		debug(3, ":csc-SS_DETECT");	if (state->flags & SS_IOCARD) {		if (state->csc_mask & SS_STSCHG)			debug(3, ":STSCHG");	} else {		if (state->csc_mask & SS_BATDEAD)			debug(3, ":BATDEAD");		if (state->csc_mask & SS_BATWARN)			debug(3, ":BATWARN");		if (state->csc_mask & SS_READY)			debug(3, ":READY");	}	debug(3, "\n");#endif	return 0;} /* _set_socket */
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/934bb7f88eb398f62314fa63ba72ac6dcd21192a/m32r_cfc.c/buggy/drivers/pcmcia/m32r_cfc.c