Changeset 68414f4a in mainline for uspace/drv/rootvirt/rootvirt.c


Ignore:
Timestamp:
2011-02-13T20:03:45Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bab6388
Parents:
8b1e15ac
Message:

Refactor drivers

  • Rename soft-state structures to have the simplest names
  • Use soft-state structures as a starting point instead of DDF device or function nodes
  • Convert to standard naming scheme
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/rootvirt/rootvirt.c

    r8b1e15ac r68414f4a  
    6161};
    6262
    63 static int add_device(device_t *dev);
     63static int rootvirt_add_device(device_t *dev);
    6464
    6565static driver_ops_t rootvirt_ops = {
    66         .add_device = &add_device
     66        .add_device = &rootvirt_add_device
    6767};
    6868
     
    7878 * @return              EOK on success or negative error code.
    7979 */
    80 static int add_child(device_t *vdev, virtual_function_t *vfun)
     80static int rootvirt_add_fun(device_t *vdev, virtual_function_t *vfun)
    8181{
    8282        printf(NAME ": registering function `%s' (match \"%s\")\n",
     
    9797}
    9898
    99 static int add_device(device_t *dev)
     99static int rootvirt_add_device(device_t *dev)
    100100{
    101101        static int instances = 0;
     
    117117        virtual_function_t *vfun = virtual_functions;
    118118        while (vfun->name != NULL) {
    119                 (void) add_child(dev, vfun);
     119                (void) rootvirt_add_fun(dev, vfun);
    120120                vfun++;
    121121        }
Note: See TracChangeset for help on using the changeset viewer.