Changeset 83a2f43 in mainline for uspace/drv/rootpc/rootpc.c


Ignore:
Timestamp:
2011-02-15T19:43:50Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af6b5157
Parents:
34588a80
Message:

Rename bunch of stuff so that it starts with 'ddf_'.

File:
1 edited

Legend:

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

    r34588a80 r83a2f43  
    6262} rootpc_fun_t;
    6363
    64 static int rootpc_add_device(device_t *dev);
     64static int rootpc_add_device(ddf_dev_t *dev);
    6565static void root_pc_init(void);
    6666
     
    9292};
    9393
    94 static hw_resource_list_t *rootpc_get_resources(function_t *fnode)
     94static hw_resource_list_t *rootpc_get_resources(ddf_fun_t *fnode)
    9595{
    9696        rootpc_fun_t *fun = ROOTPC_FUN(fnode);
     
    100100}
    101101
    102 static bool rootpc_enable_interrupt(function_t *fun)
     102static bool rootpc_enable_interrupt(ddf_fun_t *fun)
    103103{
    104104        /* TODO */
     
    113113
    114114/* Initialized in root_pc_init() function. */
    115 static device_ops_t rootpc_fun_ops;
     115static ddf_dev_ops_t rootpc_fun_ops;
    116116
    117117static bool
    118 rootpc_add_fun(device_t *dev, const char *name, const char *str_match_id,
     118rootpc_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id,
    119119    rootpc_fun_t *fun)
    120120{
    121121        printf(NAME ": adding new function '%s'.\n", name);
    122122       
    123         function_t *fnode = NULL;
     123        ddf_fun_t *fnode = NULL;
    124124        match_id_t *match_id = NULL;
    125125       
     
    164164}
    165165
    166 static bool rootpc_add_functions(device_t *dev)
     166static bool rootpc_add_functions(ddf_dev_t *dev)
    167167{
    168168        return rootpc_add_fun(dev, "pci0", "intel_pci", &pci_data);
     
    175175 * @return              Zero on success, negative error number otherwise.
    176176 */
    177 static int rootpc_add_device(device_t *dev)
     177static int rootpc_add_device(ddf_dev_t *dev)
    178178{
    179179        printf(NAME ": rootpc_add_device, device handle = %d\n",
     
    197197        printf(NAME ": HelenOS PC platform driver\n");
    198198        root_pc_init();
    199         return driver_main(&rootpc_driver);
     199        return ddf_driver_main(&rootpc_driver);
    200200}
    201201
Note: See TracChangeset for help on using the changeset viewer.