Commit c3a7b9b2 authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Russell King

[PCMCICA] 05-obsolete_parts_of_cs.diff

Some parts of cs.c are not used by any PCMCIA socket or card driver
or the PCMCIA subsystem itself. Mark them CONFIG_PCMCIA_OBSOLETE.
Also, define pcmcia_get_window static as it was supposed to be.
parent 7a1555b1
...@@ -1023,6 +1023,8 @@ int pcmcia_get_card_services_info(servinfo_t *info) ...@@ -1023,6 +1023,8 @@ int pcmcia_get_card_services_info(servinfo_t *info)
return CS_SUCCESS; return CS_SUCCESS;
} /* get_card_services_info */ } /* get_card_services_info */
#ifdef CONFIG_PCMCIA_OBSOLETE
/*====================================================================== /*======================================================================
Note that get_first_client() *does* recognize the Socket field Note that get_first_client() *does* recognize the Socket field
...@@ -1046,6 +1048,7 @@ int pcmcia_get_first_client(client_handle_t *handle, client_req_t *req) ...@@ -1046,6 +1048,7 @@ int pcmcia_get_first_client(client_handle_t *handle, client_req_t *req)
*handle = socket->clients; *handle = socket->clients;
return CS_SUCCESS; return CS_SUCCESS;
} /* get_first_client */ } /* get_first_client */
EXPORT_SYMBOL(pcmcia_get_first_client);
/*====================================================================*/ /*====================================================================*/
...@@ -1065,10 +1068,12 @@ int pcmcia_get_next_client(client_handle_t *handle, client_req_t *req) ...@@ -1065,10 +1068,12 @@ int pcmcia_get_next_client(client_handle_t *handle, client_req_t *req)
*handle = (*handle)->next; *handle = (*handle)->next;
return CS_SUCCESS; return CS_SUCCESS;
} /* get_next_client */ } /* get_next_client */
EXPORT_SYMBOL(pcmcia_get_next_client);
#endif /* CONFIG_PCMCIA_OBSOLETE */
/*====================================================================*/ /*====================================================================*/
int pcmcia_get_window(window_handle_t *handle, int idx, win_req_t *req) static int pcmcia_get_window(window_handle_t *handle, int idx, win_req_t *req)
{ {
struct pcmcia_socket *s; struct pcmcia_socket *s;
window_t *win; window_t *win;
...@@ -1287,6 +1292,8 @@ int pcmcia_modify_configuration(client_handle_t handle, ...@@ -1287,6 +1292,8 @@ int pcmcia_modify_configuration(client_handle_t handle,
return CS_SUCCESS; return CS_SUCCESS;
} /* modify_configuration */ } /* modify_configuration */
#ifdef CONFIG_PCMCIA_OBSOLETE
/*====================================================================== /*======================================================================
Modify the attributes of a window returned by RequestWindow. Modify the attributes of a window returned by RequestWindow.
...@@ -1312,6 +1319,10 @@ int pcmcia_modify_window(window_handle_t win, modwin_t *req) ...@@ -1312,6 +1319,10 @@ int pcmcia_modify_window(window_handle_t win, modwin_t *req)
return CS_SUCCESS; return CS_SUCCESS;
} /* modify_window */ } /* modify_window */
EXPORT_SYMBOL(pcmcia_modify_window);
#endif /* CONFIG_PCMCIA_OBSOLETE */
/*====================================================================== /*======================================================================
...@@ -2063,6 +2074,7 @@ int pcmcia_insert_card(struct pcmcia_socket *skt) ...@@ -2063,6 +2074,7 @@ int pcmcia_insert_card(struct pcmcia_socket *skt)
======================================================================*/ ======================================================================*/
#ifdef CONFIG_PCMCIA_OBSOLETE
int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask) int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask)
{ {
u_int events, bit; u_int events, bit;
...@@ -2080,6 +2092,9 @@ int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask) ...@@ -2080,6 +2092,9 @@ int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask)
} }
return CS_SUCCESS; return CS_SUCCESS;
} /* set_event_mask */ } /* set_event_mask */
EXPORT_SYMBOL(pcmcia_set_event_mask);
#endif /* CONFIG_PCMCIA_OBSOLETE */
/*====================================================================== /*======================================================================
...@@ -2091,11 +2106,9 @@ EXPORT_SYMBOL(pcmcia_access_configuration_register); ...@@ -2091,11 +2106,9 @@ EXPORT_SYMBOL(pcmcia_access_configuration_register);
EXPORT_SYMBOL(pcmcia_adjust_resource_info); EXPORT_SYMBOL(pcmcia_adjust_resource_info);
EXPORT_SYMBOL(pcmcia_deregister_client); EXPORT_SYMBOL(pcmcia_deregister_client);
EXPORT_SYMBOL(pcmcia_eject_card); EXPORT_SYMBOL(pcmcia_eject_card);
EXPORT_SYMBOL(pcmcia_get_first_client);
EXPORT_SYMBOL(pcmcia_get_card_services_info); EXPORT_SYMBOL(pcmcia_get_card_services_info);
EXPORT_SYMBOL(pcmcia_get_configuration_info); EXPORT_SYMBOL(pcmcia_get_configuration_info);
EXPORT_SYMBOL(pcmcia_get_mem_page); EXPORT_SYMBOL(pcmcia_get_mem_page);
EXPORT_SYMBOL(pcmcia_get_next_client);
EXPORT_SYMBOL(pcmcia_get_first_tuple); EXPORT_SYMBOL(pcmcia_get_first_tuple);
EXPORT_SYMBOL(pcmcia_get_first_window); EXPORT_SYMBOL(pcmcia_get_first_window);
EXPORT_SYMBOL(pcmcia_get_next_tuple); EXPORT_SYMBOL(pcmcia_get_next_tuple);
...@@ -2105,7 +2118,6 @@ EXPORT_SYMBOL(pcmcia_get_tuple_data); ...@@ -2105,7 +2118,6 @@ EXPORT_SYMBOL(pcmcia_get_tuple_data);
EXPORT_SYMBOL(pcmcia_insert_card); EXPORT_SYMBOL(pcmcia_insert_card);
EXPORT_SYMBOL(pcmcia_map_mem_page); EXPORT_SYMBOL(pcmcia_map_mem_page);
EXPORT_SYMBOL(pcmcia_modify_configuration); EXPORT_SYMBOL(pcmcia_modify_configuration);
EXPORT_SYMBOL(pcmcia_modify_window);
EXPORT_SYMBOL(pcmcia_parse_tuple); EXPORT_SYMBOL(pcmcia_parse_tuple);
EXPORT_SYMBOL(pcmcia_register_client); EXPORT_SYMBOL(pcmcia_register_client);
EXPORT_SYMBOL(pcmcia_release_configuration); EXPORT_SYMBOL(pcmcia_release_configuration);
...@@ -2119,7 +2131,6 @@ EXPORT_SYMBOL(pcmcia_request_irq); ...@@ -2119,7 +2131,6 @@ EXPORT_SYMBOL(pcmcia_request_irq);
EXPORT_SYMBOL(pcmcia_request_window); EXPORT_SYMBOL(pcmcia_request_window);
EXPORT_SYMBOL(pcmcia_reset_card); EXPORT_SYMBOL(pcmcia_reset_card);
EXPORT_SYMBOL(pcmcia_resume_card); EXPORT_SYMBOL(pcmcia_resume_card);
EXPORT_SYMBOL(pcmcia_set_event_mask);
EXPORT_SYMBOL(pcmcia_suspend_card); EXPORT_SYMBOL(pcmcia_suspend_card);
EXPORT_SYMBOL(pcmcia_validate_cis); EXPORT_SYMBOL(pcmcia_validate_cis);
......
...@@ -425,16 +425,12 @@ int pcmcia_access_configuration_register(client_handle_t handle, conf_reg_t *reg ...@@ -425,16 +425,12 @@ int pcmcia_access_configuration_register(client_handle_t handle, conf_reg_t *reg
int pcmcia_deregister_client(client_handle_t handle); int pcmcia_deregister_client(client_handle_t handle);
int pcmcia_get_configuration_info(client_handle_t handle, config_info_t *config); int pcmcia_get_configuration_info(client_handle_t handle, config_info_t *config);
int pcmcia_get_card_services_info(servinfo_t *info); int pcmcia_get_card_services_info(servinfo_t *info);
int pcmcia_get_first_client(client_handle_t *handle, client_req_t *req);
int pcmcia_get_next_client(client_handle_t *handle, client_req_t *req);
int pcmcia_get_window(window_handle_t *handle, int idx, win_req_t *req);
int pcmcia_get_first_window(window_handle_t *win, win_req_t *req); int pcmcia_get_first_window(window_handle_t *win, win_req_t *req);
int pcmcia_get_next_window(window_handle_t *win, win_req_t *req); int pcmcia_get_next_window(window_handle_t *win, win_req_t *req);
int pcmcia_get_status(client_handle_t handle, cs_status_t *status); int pcmcia_get_status(client_handle_t handle, cs_status_t *status);
int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); int pcmcia_get_mem_page(window_handle_t win, memreq_t *req);
int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); int pcmcia_map_mem_page(window_handle_t win, memreq_t *req);
int pcmcia_modify_configuration(client_handle_t handle, modconf_t *mod); int pcmcia_modify_configuration(client_handle_t handle, modconf_t *mod);
int pcmcia_modify_window(window_handle_t win, modwin_t *req);
int pcmcia_register_client(client_handle_t *handle, client_reg_t *req); int pcmcia_register_client(client_handle_t *handle, client_reg_t *req);
int pcmcia_release_configuration(client_handle_t handle); int pcmcia_release_configuration(client_handle_t handle);
int pcmcia_release_io(client_handle_t handle, io_req_t *req); int pcmcia_release_io(client_handle_t handle, io_req_t *req);
...@@ -449,10 +445,16 @@ int pcmcia_suspend_card(struct pcmcia_socket *skt); ...@@ -449,10 +445,16 @@ int pcmcia_suspend_card(struct pcmcia_socket *skt);
int pcmcia_resume_card(struct pcmcia_socket *skt); int pcmcia_resume_card(struct pcmcia_socket *skt);
int pcmcia_eject_card(struct pcmcia_socket *skt); int pcmcia_eject_card(struct pcmcia_socket *skt);
int pcmcia_insert_card(struct pcmcia_socket *skt); int pcmcia_insert_card(struct pcmcia_socket *skt);
int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask);
int pcmcia_report_error(client_handle_t handle, error_info_t *err); int pcmcia_report_error(client_handle_t handle, error_info_t *err);
struct pci_bus *pcmcia_lookup_bus(client_handle_t handle); struct pci_bus *pcmcia_lookup_bus(client_handle_t handle);
#ifdef CONFIG_PCMCIA_OBSOLETE
int pcmcia_get_first_client(client_handle_t *handle, client_req_t *req);
int pcmcia_get_next_client(client_handle_t *handle, client_req_t *req);
int pcmcia_modify_window(window_handle_t win, modwin_t *req);
int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask);
#endif
/* rsrc_mgr.c */ /* rsrc_mgr.c */
int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj); int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment