Changeset d347b53 in mainline for uspace/lib/libdrv/generic/driver.c


Ignore:
Timestamp:
2010-03-21T19:33:58Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
66babbd
Parents:
bda60d9
Message:

child device registration - parts of code

File:
1 edited

Legend:

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

    rbda60d9 rd347b53  
    7272        // result of the operation - device was added, device is not present etc.
    7373        ipcarg_t ret = 0;       
    74         device_handle_t dev_handle =  IPC_GET_ARG1(*icall);
    75        
    76         printf("%s: adding device with handle = %x \n", driver->name, dev_handle);
    77        
     74        device_handle_t dev_handle =  IPC_GET_ARG1(*icall);     
    7875        device_t *dev = driver_create_device();
    7976        dev->handle = dev_handle;
     
    8279                // TODO set return value
    8380        }
     81        printf("%s: new device with handle = %x was added.\n", driver->name, dev_handle);
    8482       
    85         ipc_answer_1(iid, EOK, ret);
     83        ipcarg_t r = ipc_answer_1(iid, EOK, ret);
    8684}
    8785
     
    168166       
    169167        // register driver by device manager with generic handler for incoming connections
    170         printf("%s: sending registration request to devman.\n", driver->name);
    171168        devman_driver_register(driver->name, driver_connection);               
    172169
Note: See TracChangeset for help on using the changeset viewer.