aboutsummaryrefslogtreecommitdiffstats
path: root/include/pcmcia
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-31 09:55:58 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-31 09:55:58 -0400
commit272433e088f843dc4dd5a5ad38dd68b9a93dcebf (patch)
tree1d0a5563b7241f215fe0c472407beec3ee68b47a /include/pcmcia
parent2f3061eb1086f98990d6495b8c63a1b83f2f59aa (diff)
pcmcia: cistpl header cleanup
16-bit PCMCIA device handling function definitions are moved to ds.h. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia')
-rw-r--r--include/pcmcia/cistpl.h30
-rw-r--r--include/pcmcia/ds.h28
2 files changed, 28 insertions, 30 deletions
diff --git a/include/pcmcia/cistpl.h b/include/pcmcia/cistpl.h
index 353abe74be74..026323bc47af 100644
--- a/include/pcmcia/cistpl.h
+++ b/include/pcmcia/cistpl.h
@@ -580,34 +580,4 @@ typedef struct cisinfo_t {
580 580
581#define CISTPL_MAX_CIS_SIZE 0x200 581#define CISTPL_MAX_CIS_SIZE 0x200
582 582
583#ifdef __KERNEL__
584struct pcmcia_socket;
585
586int pcmcia_parse_tuple(tuple_t *tuple, cisparse_t *parse);
587
588/* don't use outside of PCMCIA core yet */
589int pccard_get_next_tuple(struct pcmcia_socket *s, unsigned int func, tuple_t *tuple);
590int pccard_get_first_tuple(struct pcmcia_socket *s, unsigned int function, tuple_t *tuple);
591int pccard_get_tuple_data(struct pcmcia_socket *s, tuple_t *tuple);
592
593/* ... but use these wrappers instead */
594#define pcmcia_get_first_tuple(p_dev, tuple) \
595 pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple)
596
597#define pcmcia_get_next_tuple(p_dev, tuple) \
598 pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple)
599
600#define pcmcia_get_tuple_data(p_dev, tuple) \
601 pccard_get_tuple_data(p_dev->socket, tuple)
602
603int pcmcia_loop_config(struct pcmcia_device *p_dev,
604 int (*conf_check) (struct pcmcia_device *p_dev,
605 cistpl_cftable_entry_t *cf,
606 cistpl_cftable_entry_t *dflt,
607 unsigned int vcc,
608 void *priv_data),
609 void *priv_data);
610
611#endif /* __KERNEL__ */
612
613#endif /* LINUX_CISTPL_H */ 583#endif /* LINUX_CISTPL_H */
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index 29e403230899..5fb61952bce8 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -176,6 +176,34 @@ const char *pcmcia_error_ret(int ret);
176 pcmcia_error_ret(ret)); \ 176 pcmcia_error_ret(ret)); \
177 } 177 }
178 178
179/* CIS access.
180 * Use the pcmcia_* versions in PCMCIA drivers
181 */
182int pcmcia_parse_tuple(tuple_t *tuple, cisparse_t *parse);
183
184int pccard_get_first_tuple(struct pcmcia_socket *s, unsigned int function,
185 tuple_t *tuple);
186#define pcmcia_get_first_tuple(p_dev, tuple) \
187 pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple)
188
189int pccard_get_next_tuple(struct pcmcia_socket *s, unsigned int function,
190 tuple_t *tuple);
191#define pcmcia_get_next_tuple(p_dev, tuple) \
192 pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple)
193
194int pccard_get_tuple_data(struct pcmcia_socket *s, tuple_t *tuple);
195#define pcmcia_get_tuple_data(p_dev, tuple) \
196 pccard_get_tuple_data(p_dev->socket, tuple)
197
198
199/* loop CIS entries for valid configuration */
200int pcmcia_loop_config(struct pcmcia_device *p_dev,
201 int (*conf_check) (struct pcmcia_device *p_dev,
202 cistpl_cftable_entry_t *cf,
203 cistpl_cftable_entry_t *dflt,
204 unsigned int vcc,
205 void *priv_data),
206 void *priv_data);
179 207
180/* is the device still there? */ 208/* is the device still there? */
181struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev); 209struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev);