/* Change the card address of an already open memory window.  */
static int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t wh, memreq_t *req)
/* Change the card address of an already open memory window.  */
static int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t wh, memreq_t *req)
{
	wh--;
	if (wh >= MAX_WIN)
		return -EINVAL;
	req->Page = 0;
	req->CardOffset = skt->win[wh].card_start;
	return 0;
}