Changeset 0c0f823b in mainline for uspace/drv/infrastructure


Ignore:
Timestamp:
2011-11-14T20:50:08Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
765678f, d5ba17f
Parents:
612ad864
Message:

Rename DDF entry point add_device to dev_add.

Location:
uspace/drv/infrastructure
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/root/root.c

    r612ad864 r0c0f823b  
    6666#define VIRTUAL_FUN_MATCH_SCORE 100
    6767
    68 static int root_add_device(ddf_dev_t *dev);
     68static int root_dev_add(ddf_dev_t *dev);
    6969static int root_fun_online(ddf_fun_t *fun);
    7070static int root_fun_offline(ddf_fun_t *fun);
     
    7272/** The root device driver's standard operations. */
    7373static driver_ops_t root_ops = {
    74         .add_device = &root_add_device,
     74        .dev_add = &root_dev_add,
    7575        .fun_online = &root_fun_online,
    7676        .fun_offline = &root_fun_offline
     
    198198 *                      of HW and pseudo devices).
    199199 */
    200 static int root_add_device(ddf_dev_t *dev)
    201 {
    202         ddf_msg(LVL_DEBUG, "root_add_device, device handle=%" PRIun,
     200static int root_dev_add(ddf_dev_t *dev)
     201{
     202        ddf_msg(LVL_DEBUG, "root_dev_add, device handle=%" PRIun,
    203203            dev->handle);
    204204
  • uspace/drv/infrastructure/rootmac/rootmac.c

    r612ad864 r0c0f823b  
    125125 *
    126126 */
    127 static int rootmac_add_device(ddf_dev_t *dev)
     127static int rootmac_dev_add(ddf_dev_t *dev)
    128128{
    129129        /* Register functions */
     
    136136/** The root device driver's standard operations. */
    137137static driver_ops_t rootmac_ops = {
    138         .add_device = &rootmac_add_device
     138        .dev_add = &rootmac_dev_add
    139139};
    140140
  • uspace/drv/infrastructure/rootpc/rootpc.c

    r612ad864 r0c0f823b  
    6363} rootpc_fun_t;
    6464
    65 static int rootpc_add_device(ddf_dev_t *dev);
     65static int rootpc_dev_add(ddf_dev_t *dev);
    6666static void root_pc_init(void);
    6767
    6868/** The root device driver's standard operations. */
    6969static driver_ops_t rootpc_ops = {
    70         .add_device = &rootpc_add_device
     70        .dev_add = &rootpc_dev_add
    7171};
    7272
     
    175175 * @return              Zero on success, negative error number otherwise.
    176176 */
    177 static int rootpc_add_device(ddf_dev_t *dev)
    178 {
    179         ddf_msg(LVL_DEBUG, "rootpc_add_device, device handle = %d",
     177static int rootpc_dev_add(ddf_dev_t *dev)
     178{
     179        ddf_msg(LVL_DEBUG, "rootpc_dev_add, device handle = %d",
    180180            (int)dev->handle);
    181181       
  • uspace/drv/infrastructure/rootvirt/rootvirt.c

    r612ad864 r0c0f823b  
    6262};
    6363
    64 static int rootvirt_add_device(ddf_dev_t *dev);
     64static int rootvirt_dev_add(ddf_dev_t *dev);
    6565static int rootvirt_dev_remove(ddf_dev_t *dev);
    6666static int rootvirt_fun_online(ddf_fun_t *fun);
     
    6868
    6969static driver_ops_t rootvirt_ops = {
    70         .add_device = &rootvirt_add_device,
     70        .dev_add = &rootvirt_dev_add,
    7171        .dev_remove = &rootvirt_dev_remove,
    7272        .fun_online = &rootvirt_fun_online,
     
    172172
    173173
    174 static int rootvirt_add_device(ddf_dev_t *dev)
     174static int rootvirt_dev_add(ddf_dev_t *dev)
    175175{
    176176        rootvirt_t *rootvirt;
     
    183183        }
    184184
    185         ddf_msg(LVL_DEBUG, "add_device(handle=%d)", (int)dev->handle);
     185        ddf_msg(LVL_DEBUG, "dev_add(handle=%d)", (int)dev->handle);
    186186
    187187        rootvirt = ddf_dev_data_alloc(dev, sizeof(rootvirt_t));
Note: See TracChangeset for help on using the changeset viewer.