diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/cs.c | 4 | ||||
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 12 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 2 |
3 files changed, 14 insertions, 4 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index 48386f31e610..c68c5d338285 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c | |||
@@ -752,7 +752,7 @@ EXPORT_SYMBOL(pccard_register_pcmcia); | |||
752 | * CIS register. | 752 | * CIS register. |
753 | */ | 753 | */ |
754 | 754 | ||
755 | int pccard_reset_card(struct pcmcia_socket *skt) | 755 | int pcmcia_reset_card(struct pcmcia_socket *skt) |
756 | { | 756 | { |
757 | int ret; | 757 | int ret; |
758 | 758 | ||
@@ -791,7 +791,7 @@ int pccard_reset_card(struct pcmcia_socket *skt) | |||
791 | 791 | ||
792 | return ret; | 792 | return ret; |
793 | } /* reset_card */ | 793 | } /* reset_card */ |
794 | EXPORT_SYMBOL(pccard_reset_card); | 794 | EXPORT_SYMBOL(pcmcia_reset_card); |
795 | 795 | ||
796 | 796 | ||
797 | /* These shut down or wake up a socket. They are sort of user | 797 | /* These shut down or wake up a socket. They are sort of user |
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 2df8d8be1ff9..d71eeee4992b 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -174,10 +174,18 @@ int pcmcia_get_window(struct pcmcia_socket *s, | |||
174 | window_handle_t *handle, | 174 | window_handle_t *handle, |
175 | int idx, | 175 | int idx, |
176 | win_req_t *req); | 176 | win_req_t *req); |
177 | int pccard_reset_card(struct pcmcia_socket *skt); | ||
178 | int pccard_register_pcmcia(struct pcmcia_socket *s, struct pcmcia_callback *c); | 177 | int pccard_register_pcmcia(struct pcmcia_socket *s, struct pcmcia_callback *c); |
179 | struct pcmcia_socket *pcmcia_get_socket_by_nr(unsigned int nr); | 178 | struct pcmcia_socket *pcmcia_get_socket_by_nr(unsigned int nr); |
180 | 179 | ||
180 | int pcmcia_suspend_card(struct pcmcia_socket *skt); | ||
181 | int pcmcia_resume_card(struct pcmcia_socket *skt); | ||
182 | |||
183 | int pcmcia_eject_card(struct pcmcia_socket *skt); | ||
184 | int pcmcia_insert_card(struct pcmcia_socket *skt); | ||
185 | |||
186 | struct pcmcia_socket *pcmcia_get_socket(struct pcmcia_socket *skt); | ||
187 | void pcmcia_put_socket(struct pcmcia_socket *skt); | ||
188 | |||
181 | /* cistpl.c */ | 189 | /* cistpl.c */ |
182 | int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, | 190 | int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, |
183 | u_int addr, u_int len, void *ptr); | 191 | u_int addr, u_int len, void *ptr); |
@@ -187,6 +195,8 @@ void release_cis_mem(struct pcmcia_socket *s); | |||
187 | void destroy_cis_cache(struct pcmcia_socket *s); | 195 | void destroy_cis_cache(struct pcmcia_socket *s); |
188 | int pccard_read_tuple(struct pcmcia_socket *s, unsigned int function, | 196 | int pccard_read_tuple(struct pcmcia_socket *s, unsigned int function, |
189 | cisdata_t code, void *parse); | 197 | cisdata_t code, void *parse); |
198 | int pcmcia_replace_cis(struct pcmcia_socket *s, | ||
199 | const u8 *data, const size_t len); | ||
190 | 200 | ||
191 | /* rsrc_mgr.c */ | 201 | /* rsrc_mgr.c */ |
192 | int pcmcia_validate_mem(struct pcmcia_socket *s); | 202 | int pcmcia_validate_mem(struct pcmcia_socket *s); |
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index c400872f5d3b..579ec9455706 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -861,7 +861,7 @@ static int ds_ioctl(struct inode * inode, struct file * file, | |||
861 | ret = pccard_parse_tuple(&buf->tuple, &buf->tuple_parse.parse); | 861 | ret = pccard_parse_tuple(&buf->tuple, &buf->tuple_parse.parse); |
862 | break; | 862 | break; |
863 | case DS_RESET_CARD: | 863 | case DS_RESET_CARD: |
864 | ret = pccard_reset_card(s); | 864 | ret = pcmcia_reset_card(s); |
865 | break; | 865 | break; |
866 | case DS_GET_STATUS: | 866 | case DS_GET_STATUS: |
867 | if (buf->status.Function && | 867 | if (buf->status.Function && |