Changeset b688fd8 in mainline for uspace/lib/drv


Ignore:
Timestamp:
2015-08-17T18:54:56Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
abf2dfd
Parents:
b10460a
Message:

gradually introduce async ports, initial phase

The initial phase is to reimplement the traditional async client connections as an untyped fallback port. This creates the possibility to introduce ports typed by interface type gradually in later changesets.

Location:
uspace/lib/drv
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    rb10460a rb688fd8  
    916916 * This allows handling connections the non-devman way.
    917917 */
    918 void ddf_fun_set_conn_handler(ddf_fun_t *fun, async_client_conn_t conn)
     918void ddf_fun_set_conn_handler(ddf_fun_t *fun, async_port_handler_t conn)
    919919{
    920920        assert(fun->ops == NULL);
     
    955955         * incoming connections.
    956956         */
    957         async_set_client_connection(driver_connection);
     957        async_set_fallback_port_handler(driver_connection, NULL);
    958958        int rc = devman_driver_register(driver->name);
    959959        if (rc != EOK) {
  • uspace/lib/drv/generic/private/driver.h

    rb10460a rb688fd8  
    9696       
    9797        /** Connection handler or @c NULL to use the DDF default handler. */
    98         async_client_conn_t conn_handler;
     98        async_port_handler_t conn_handler;
    9999       
    100100        /** Link in the list of functions handled by the driver */
  • uspace/lib/drv/generic/remote_audio_pcm.c

    rb10460a rb688fd8  
    316316 */
    317317int audio_pcm_register_event_callback(audio_pcm_sess_t *sess,
    318     async_client_conn_t event_callback, void *arg)
     318    async_port_handler_t event_callback, void *arg)
    319319{
    320320        if (!event_callback)
  • uspace/lib/drv/generic/remote_nic.c

    rb10460a rb688fd8  
    126126 *
    127127 */
    128 int nic_callback_create(async_sess_t *dev_sess, async_client_conn_t cfun,
     128int nic_callback_create(async_sess_t *dev_sess, async_port_handler_t cfun,
    129129    void *carg)
    130130{
  • uspace/lib/drv/include/audio_pcm_iface.h

    rb10460a rb688fd8  
    8585int audio_pcm_query_cap(audio_pcm_sess_t *, audio_cap_t);
    8686int audio_pcm_register_event_callback(audio_pcm_sess_t *,
    87     async_client_conn_t, void *);
     87    async_port_handler_t, void *);
    8888int audio_pcm_unregister_event_callback(audio_pcm_sess_t *);
    8989
  • uspace/lib/drv/include/ddf/driver.h

    rb10460a rb688fd8  
    133133extern int ddf_fun_add_match_id(ddf_fun_t *, const char *, int);
    134134extern void ddf_fun_set_ops(ddf_fun_t *, ddf_dev_ops_t *);
    135 extern void ddf_fun_set_conn_handler(ddf_fun_t *, async_client_conn_t);
     135extern void ddf_fun_set_conn_handler(ddf_fun_t *, async_port_handler_t);
    136136extern int ddf_fun_add_to_category(ddf_fun_t *, const char *);
    137137
  • uspace/lib/drv/include/nic_iface.h

    rb10460a rb688fd8  
    4848
    4949extern int nic_send_frame(async_sess_t *, void *, size_t);
    50 extern int nic_callback_create(async_sess_t *, async_client_conn_t, void *);
     50extern int nic_callback_create(async_sess_t *, async_port_handler_t, void *);
    5151extern int nic_get_state(async_sess_t *, nic_device_state_t *);
    5252extern int nic_set_state(async_sess_t *, nic_device_state_t);
Note: See TracChangeset for help on using the changeset viewer.