diff options
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/cistpl.h | 30 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 28 |
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__ | ||
584 | struct pcmcia_socket; | ||
585 | |||
586 | int pcmcia_parse_tuple(tuple_t *tuple, cisparse_t *parse); | ||
587 | |||
588 | /* don't use outside of PCMCIA core yet */ | ||
589 | int pccard_get_next_tuple(struct pcmcia_socket *s, unsigned int func, tuple_t *tuple); | ||
590 | int pccard_get_first_tuple(struct pcmcia_socket *s, unsigned int function, tuple_t *tuple); | ||
591 | int 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 | |||
603 | int 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 | */ | ||
182 | int pcmcia_parse_tuple(tuple_t *tuple, cisparse_t *parse); | ||
183 | |||
184 | int 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 | |||
189 | int 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 | |||
194 | int 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 */ | ||
200 | int 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? */ |
181 | struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev); | 209 | struct pcmcia_device *pcmcia_dev_present(struct pcmcia_device *p_dev); |