]> err.no Git - linux-2.6/blob - drivers/pcmcia/pcmcia_compat.c
[PATCH] pcmcia: remove client_t usage
[linux-2.6] / drivers / pcmcia / pcmcia_compat.c
1 /*
2  * PCMCIA 16-bit compatibility functions
3  *
4  * The initial developer of the original code is David A. Hinds
5  * <dahinds@users.sourceforge.net>.  Portions created by David A. Hinds
6  * are Copyright (C) 1999 David A. Hinds.  All Rights Reserved.
7  *
8  * Copyright (C) 2004 Dominik Brodowski
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  */
15
16 #include <linux/config.h>
17 #include <linux/module.h>
18 #include <linux/init.h>
19
20 #define IN_CARD_SERVICES
21 #include <pcmcia/version.h>
22 #include <pcmcia/cs_types.h>
23 #include <pcmcia/cs.h>
24 #include <pcmcia/bulkmem.h>
25 #include <pcmcia/cistpl.h>
26 #include <pcmcia/ds.h>
27 #include <pcmcia/ss.h>
28
29 #include "cs_internal.h"
30
31 int pcmcia_get_first_tuple(client_handle_t handle, tuple_t *tuple)
32 {
33         struct pcmcia_socket *s;
34         s = SOCKET(handle);
35         return pccard_get_first_tuple(s, handle->func, tuple);
36 }
37 EXPORT_SYMBOL(pcmcia_get_first_tuple);
38
39 int pcmcia_get_next_tuple(client_handle_t handle, tuple_t *tuple)
40 {
41         struct pcmcia_socket *s;
42         s = SOCKET(handle);
43         return pccard_get_next_tuple(s, handle->func, tuple);
44 }
45 EXPORT_SYMBOL(pcmcia_get_next_tuple);
46
47 int pcmcia_get_tuple_data(client_handle_t handle, tuple_t *tuple)
48 {
49         struct pcmcia_socket *s;
50         s = SOCKET(handle);
51         return pccard_get_tuple_data(s, tuple);
52 }
53 EXPORT_SYMBOL(pcmcia_get_tuple_data);
54
55 int pcmcia_parse_tuple(client_handle_t handle, tuple_t *tuple, cisparse_t *parse)
56 {
57         return pccard_parse_tuple(tuple, parse);
58 }
59 EXPORT_SYMBOL(pcmcia_parse_tuple);
60
61 int pcmcia_validate_cis(client_handle_t handle, cisinfo_t *info)
62 {
63         struct pcmcia_socket *s;
64         s = SOCKET(handle);
65         return pccard_validate_cis(s, handle->func, info);
66 }
67 EXPORT_SYMBOL(pcmcia_validate_cis);
68
69
70 int pcmcia_reset_card(client_handle_t handle, client_req_t *req)
71 {
72         struct pcmcia_socket *skt;
73
74         skt = SOCKET(handle);
75         if (!skt)
76                 return CS_BAD_HANDLE;
77
78         return pccard_reset_card(skt);
79 }
80 EXPORT_SYMBOL(pcmcia_reset_card);