s = SOCKET(handle); 
int pcmcia_request_io(client_handle_t handle, io_req_t *req){	struct pcmcia_socket *s;	config_t *c;	s = SOCKET(handle);	if (!(s->state & SOCKET_PRESENT))		return CS_NO_CARD;	if (handle->state & CLIENT_CARDBUS) {#ifdef CONFIG_CARDBUS		handle->state |= CLIENT_IO_REQ;		return CS_SUCCESS;#else		return CS_UNSUPPORTED_FUNCTION;#endif	}	if (!req)		return CS_UNSUPPORTED_MODE;	c = CONFIG(handle);	if (c->state & CONFIG_LOCKED)		return CS_CONFIGURATION_LOCKED;	if (c->state & CONFIG_IO_REQ)		return CS_IN_USE;	if (req->Attributes1 & (IO_SHARED | IO_FORCE_ALIAS_ACCESS))		return CS_BAD_ATTRIBUTE;	if ((req->NumPorts2 > 0) &&	    (req->Attributes2 & (IO_SHARED | IO_FORCE_ALIAS_ACCESS)))		return CS_BAD_ATTRIBUTE;	if (alloc_io_space(s, req->Attributes1, &req->BasePort1,			   req->NumPorts1, req->IOAddrLines))		return CS_IN_USE;	if (req->NumPorts2) {		if (alloc_io_space(s, req->Attributes2, &req->BasePort2,				   req->NumPorts2, req->IOAddrLines)) {			release_io_space(s, req->BasePort1, req->NumPorts1);			return CS_IN_USE;		}	}	c->io = *req;	c->state |= CONFIG_IO_REQ;	handle->state |= CLIENT_IO_REQ;	return CS_SUCCESS;} /* pcmcia_request_io */
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2bc5a9bdc56fac6f7cbf95b89443e3809141c247/pcmcia_resource.c/buggy/drivers/pcmcia/pcmcia_resource.c