2005-04-16 18:20:36 -04:00
|
|
|
/*
|
|
|
|
* PCMCIA 16-bit compatibility functions
|
|
|
|
*
|
|
|
|
* The initial developer of the original code is David A. Hinds
|
|
|
|
* <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
|
|
|
|
* are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004 Dominik Brodowski
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/config.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
|
|
|
|
#define IN_CARD_SERVICES
|
|
|
|
#include <pcmcia/cs_types.h>
|
|
|
|
#include <pcmcia/cs.h>
|
|
|
|
#include <pcmcia/bulkmem.h>
|
|
|
|
#include <pcmcia/cistpl.h>
|
|
|
|
#include <pcmcia/ds.h>
|
|
|
|
#include <pcmcia/ss.h>
|
|
|
|
|
|
|
|
#include "cs_internal.h"
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_get_first_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
2005-07-07 20:59:02 -04:00
|
|
|
return pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple);
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_get_first_tuple);
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_get_next_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
2005-07-07 20:59:02 -04:00
|
|
|
return pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple);
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_get_next_tuple);
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_get_tuple_data(struct pcmcia_device *p_dev, tuple_t *tuple)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
2005-07-07 20:59:02 -04:00
|
|
|
return pccard_get_tuple_data(p_dev->socket, tuple);
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_get_tuple_data);
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_parse_tuple(struct pcmcia_device *p_dev, tuple_t *tuple, cisparse_t *parse)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
|
|
|
return pccard_parse_tuple(tuple, parse);
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_parse_tuple);
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_validate_cis(struct pcmcia_device *p_dev, cisinfo_t *info)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
2005-07-07 20:59:02 -04:00
|
|
|
return pccard_validate_cis(p_dev->socket, p_dev->func, info);
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_validate_cis);
|
|
|
|
|
|
|
|
|
2005-07-07 20:59:02 -04:00
|
|
|
int pcmcia_reset_card(struct pcmcia_device *p_dev, client_req_t *req)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
2005-07-07 20:59:02 -04:00
|
|
|
return pccard_reset_card(p_dev->socket);
|
2005-04-16 18:20:36 -04:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(pcmcia_reset_card);
|