Changeset b688fd8 in mainline for uspace/lib/drv/generic


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/generic
Files:
4 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{
Note: See TracChangeset for help on using the changeset viewer.