write_scoop_reg(&corgiscoop_device.dev, SCOOP_CDR, 0x0002);
write_scoop_reg(scoop, SCOOP_CDR, 0x0002);
static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt,				    struct pcmcia_state *state){	unsigned short cpr, csr;	cpr = read_scoop_reg(&corgiscoop_device.dev, SCOOP_CPR);	write_scoop_reg(&corgiscoop_device.dev, SCOOP_IRM, 0x00FF);	write_scoop_reg(&corgiscoop_device.dev, SCOOP_ISR, 0x0000);	write_scoop_reg(&corgiscoop_device.dev, SCOOP_IRM, 0x0000);	csr = read_scoop_reg(&corgiscoop_device.dev, SCOOP_CSR);	if (csr & 0x0004) {		/* card eject */		write_scoop_reg(&corgiscoop_device.dev, SCOOP_CDR, 0x0000);		keep_vs = NO_KEEP_VS;	}	else if (!(keep_vs & NO_KEEP_VS)) {		/* keep vs1,vs2 */		write_scoop_reg(&corgiscoop_device.dev, SCOOP_CDR, 0x0000);		csr |= keep_vs;	}	else if (cpr & 0x0003) {		/* power on */		write_scoop_reg(&corgiscoop_device.dev, SCOOP_CDR, 0x0000);		keep_vs = (csr & 0x00C0);	}	else {		/* card detect */		write_scoop_reg(&corgiscoop_device.dev, SCOOP_CDR, 0x0002);	}	state->detect = (csr & 0x0004) ? 0 : 1;	state->ready  = (csr & 0x0002) ? 1 : 0;	state->bvd1   = (csr & 0x0010) ? 1 : 0;	state->bvd2   = (csr & 0x0020) ? 1 : 0;	state->wrprot = (csr & 0x0008) ? 1 : 0;	state->vs_3v  = (csr & 0x0040) ? 0 : 1;	state->vs_Xv  = (csr & 0x0080) ? 0 : 1;	if ((cpr & 0x0080) && ((cpr & 0x8040) != 0x8040)) {		printk(KERN_ERR "sharpsl_pcmcia_socket_state(): CPR=%04X, Low voltage!\n", cpr);	}}