diff options
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/cistpl.h | 21 | ||||
-rw-r--r-- | include/pcmcia/cs.h | 6 |
2 files changed, 21 insertions, 6 deletions
diff --git a/include/pcmcia/cistpl.h b/include/pcmcia/cistpl.h index c6a069554fd7..d3bbb19caf81 100644 --- a/include/pcmcia/cistpl.h +++ b/include/pcmcia/cistpl.h | |||
@@ -586,12 +586,7 @@ typedef struct cisdump_t { | |||
586 | cisdata_t Data[CISTPL_MAX_CIS_SIZE]; | 586 | cisdata_t Data[CISTPL_MAX_CIS_SIZE]; |
587 | } cisdump_t; | 587 | } cisdump_t; |
588 | 588 | ||
589 | int pcmcia_get_first_tuple(client_handle_t handle, tuple_t *tuple); | ||
590 | int pcmcia_get_next_tuple(client_handle_t handle, tuple_t *tuple); | ||
591 | int pcmcia_get_tuple_data(client_handle_t handle, tuple_t *tuple); | ||
592 | int pcmcia_parse_tuple(client_handle_t handle, tuple_t *tuple, cisparse_t *parse); | ||
593 | 589 | ||
594 | int pcmcia_validate_cis(client_handle_t handle, cisinfo_t *info); | ||
595 | int pcmcia_replace_cis(struct pcmcia_socket *s, cisdump_t *cis); | 590 | int pcmcia_replace_cis(struct pcmcia_socket *s, cisdump_t *cis); |
596 | 591 | ||
597 | /* don't use outside of PCMCIA core yet */ | 592 | /* don't use outside of PCMCIA core yet */ |
@@ -602,4 +597,20 @@ int pccard_parse_tuple(tuple_t *tuple, cisparse_t *parse); | |||
602 | 597 | ||
603 | int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, cisinfo_t *info); | 598 | int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, cisinfo_t *info); |
604 | 599 | ||
600 | /* ... but use these wrappers instead */ | ||
601 | #define pcmcia_get_first_tuple(p_dev, tuple) \ | ||
602 | pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple) | ||
603 | |||
604 | #define pcmcia_get_next_tuple(p_dev, tuple) \ | ||
605 | pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple) | ||
606 | |||
607 | #define pcmcia_get_tuple_data(p_dev, tuple) \ | ||
608 | pccard_get_tuple_data(p_dev->socket, tuple) | ||
609 | |||
610 | #define pcmcia_parse_tuple(p_dev, tuple, parse) \ | ||
611 | pccard_parse_tuple(tuple, parse) | ||
612 | |||
613 | #define pcmcia_validate_cis(p_dev, info) \ | ||
614 | pccard_validate_cis(p_dev->socket, p_dev->func, info) | ||
615 | |||
605 | #endif /* LINUX_CISTPL_H */ | 616 | #endif /* LINUX_CISTPL_H */ |
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index df9b7f706348..eda32a595810 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -386,15 +386,19 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev, config_req_t *req) | |||
386 | int pcmcia_request_io(struct pcmcia_device *p_dev, io_req_t *req); | 386 | int pcmcia_request_io(struct pcmcia_device *p_dev, io_req_t *req); |
387 | int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req); | 387 | int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req); |
388 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_handle_t *wh); | 388 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_handle_t *wh); |
389 | int pcmcia_reset_card(struct pcmcia_device *p_dev, client_req_t *req); | ||
390 | int pcmcia_suspend_card(struct pcmcia_socket *skt); | 389 | int pcmcia_suspend_card(struct pcmcia_socket *skt); |
391 | int pcmcia_resume_card(struct pcmcia_socket *skt); | 390 | int pcmcia_resume_card(struct pcmcia_socket *skt); |
392 | int pcmcia_eject_card(struct pcmcia_socket *skt); | 391 | int pcmcia_eject_card(struct pcmcia_socket *skt); |
393 | int pcmcia_insert_card(struct pcmcia_socket *skt); | 392 | int pcmcia_insert_card(struct pcmcia_socket *skt); |
393 | int pccard_reset_card(struct pcmcia_socket *skt); | ||
394 | 394 | ||
395 | struct pcmcia_socket * pcmcia_get_socket(struct pcmcia_socket *skt); | 395 | struct pcmcia_socket * pcmcia_get_socket(struct pcmcia_socket *skt); |
396 | void pcmcia_put_socket(struct pcmcia_socket *skt); | 396 | void pcmcia_put_socket(struct pcmcia_socket *skt); |
397 | 397 | ||
398 | /* compatibility functions */ | ||
399 | #define pcmcia_reset_card(p_dev, req) \ | ||
400 | pccard_reset_card(p_dev->socket) | ||
401 | |||
398 | #endif /* __KERNEL__ */ | 402 | #endif /* __KERNEL__ */ |
399 | 403 | ||
400 | #endif /* _LINUX_CS_H */ | 404 | #endif /* _LINUX_CS_H */ |