Changeset 0c0f823b in mainline for uspace/drv/bus


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/bus
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r612ad864 r0c0f823b  
    108108static ddf_dev_ops_t isa_fun_ops;
    109109
    110 static int isa_add_device(ddf_dev_t *dev);
     110static int isa_dev_add(ddf_dev_t *dev);
    111111static int isa_dev_remove(ddf_dev_t *dev);
    112112static int isa_fun_online(ddf_fun_t *fun);
     
    115115/** The isa device driver's standard operations */
    116116static driver_ops_t isa_ops = {
    117         .add_device = &isa_add_device,
     117        .dev_add = &isa_dev_add,
    118118        .dev_remove = &isa_dev_remove,
    119119        .fun_online = &isa_fun_online,
     
    494494}
    495495
    496 static int isa_add_device(ddf_dev_t *dev)
     496static int isa_dev_add(ddf_dev_t *dev)
    497497{
    498498        isa_bus_t *isa;
    499499
    500         ddf_msg(LVL_DEBUG, "isa_add_device, device handle = %d",
     500        ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d",
    501501            (int) dev->handle);
    502502
  • uspace/drv/bus/pci/pciintel/pci.c

    r612ad864 r0c0f823b  
    205205};
    206206
    207 static int pci_add_device(ddf_dev_t *);
     207static int pci_dev_add(ddf_dev_t *);
    208208static int pci_fun_online(ddf_fun_t *);
    209209static int pci_fun_offline(ddf_fun_t *);
     
    211211/** PCI bus driver standard operations */
    212212static driver_ops_t pci_ops = {
    213         .add_device = &pci_add_device,
     213        .dev_add = &pci_dev_add,
    214214        .fun_online = &pci_fun_online,
    215215        .fun_offline = &pci_fun_offline,
     
    610610}
    611611
    612 static int pci_add_device(ddf_dev_t *dnode)
     612static int pci_dev_add(ddf_dev_t *dnode)
    613613{
    614614        pci_bus_t *bus = NULL;
     
    617617        int rc;
    618618       
    619         ddf_msg(LVL_DEBUG, "pci_add_device");
     619        ddf_msg(LVL_DEBUG, "pci_dev_add");
    620620        dnode->parent_sess = NULL;
    621621       
    622622        bus = ddf_dev_data_alloc(dnode, sizeof(pci_bus_t));
    623623        if (bus == NULL) {
    624                 ddf_msg(LVL_ERROR, "pci_add_device allocation failed.");
     624                ddf_msg(LVL_ERROR, "pci_dev_add allocation failed.");
    625625                rc = ENOMEM;
    626626                goto fail;
     
    634634            dnode->handle, IPC_FLAG_BLOCKING);
    635635        if (!dnode->parent_sess) {
    636                 ddf_msg(LVL_ERROR, "pci_add_device failed to connect to the "
     636                ddf_msg(LVL_ERROR, "pci_dev_add failed to connect to the "
    637637                    "parent driver.");
    638638                rc = ENOENT;
     
    644644        rc = hw_res_get_resource_list(dnode->parent_sess, &hw_resources);
    645645        if (rc != EOK) {
    646                 ddf_msg(LVL_ERROR, "pci_add_device failed to get hw resources "
     646                ddf_msg(LVL_ERROR, "pci_dev_add failed to get hw resources "
    647647                    "for the device.");
    648648                goto fail;
  • uspace/drv/bus/usb/ehci/main.c

    r612ad864 r0c0f823b  
    4646#include "ehci.h"
    4747
    48 static int ehci_add_device(ddf_dev_t *device);
     48static int ehci_dev_add(ddf_dev_t *device);
    4949/*----------------------------------------------------------------------------*/
    5050static driver_ops_t ehci_driver_ops = {
    51         .add_device = ehci_add_device,
     51        .dev_add = ehci_dev_add,
    5252};
    5353/*----------------------------------------------------------------------------*/
     
    6666 * @return Error code.
    6767 */
    68 static int ehci_add_device(ddf_dev_t *device)
     68static int ehci_dev_add(ddf_dev_t *device)
    6969{
    7070        assert(device);
  • uspace/drv/bus/usb/ohci/main.c

    r612ad864 r0c0f823b  
    4848 * @return Error code.
    4949 */
    50 static int ohci_add_device(ddf_dev_t *device)
     50static int ohci_dev_add(ddf_dev_t *device)
    5151{
    52         usb_log_debug("ohci_add_device() called\n");
     52        usb_log_debug("ohci_dev_add() called\n");
    5353        assert(device);
    5454
     
    6565/*----------------------------------------------------------------------------*/
    6666static driver_ops_t ohci_driver_ops = {
    67         .add_device = ohci_add_device,
     67        .dev_add = ohci_dev_add,
    6868};
    6969/*----------------------------------------------------------------------------*/
  • uspace/drv/bus/usb/uhci/main.c

    r612ad864 r0c0f823b  
    4343#define NAME "uhci"
    4444
    45 static int uhci_add_device(ddf_dev_t *device);
     45static int uhci_dev_add(ddf_dev_t *device);
    4646/*----------------------------------------------------------------------------*/
    4747static driver_ops_t uhci_driver_ops = {
    48         .add_device = uhci_add_device,
     48        .dev_add = uhci_dev_add,
    4949};
    5050/*----------------------------------------------------------------------------*/
     
    5959 * @return Error code.
    6060 */
    61 int uhci_add_device(ddf_dev_t *device)
     61int uhci_dev_add(ddf_dev_t *device)
    6262{
    63         usb_log_debug2("uhci_add_device() called\n");
     63        usb_log_debug2("uhci_dev_add() called\n");
    6464        assert(device);
    6565
  • uspace/drv/bus/usb/uhcirh/main.c

    r612ad864 r0c0f823b  
    5151    uintptr_t *io_reg_address, size_t *io_reg_size);
    5252
    53 static int uhci_rh_add_device(ddf_dev_t *device);
     53static int uhci_rh_dev_add(ddf_dev_t *device);
    5454
    5555static driver_ops_t uhci_rh_driver_ops = {
    56         .add_device = uhci_rh_add_device,
     56        .dev_add = uhci_rh_dev_add,
    5757};
    5858
     
    8282 * @return Error code.
    8383 */
    84 static int uhci_rh_add_device(ddf_dev_t *device)
     84static int uhci_rh_dev_add(ddf_dev_t *device)
    8585{
    8686        if (!device)
    8787                return EINVAL;
    8888
    89         usb_log_debug2("uhci_rh_add_device(handle=%" PRIun ")\n",
     89        usb_log_debug2("uhci_rh_dev_add(handle=%" PRIun ")\n",
    9090            device->handle);
    9191
  • uspace/drv/bus/usb/vhc/main.c

    r612ad864 r0c0f823b  
    5858};
    5959
    60 static int vhc_add_device(ddf_dev_t *dev)
     60static int vhc_dev_add(ddf_dev_t *dev)
    6161{
    6262        static int vhc_count = 0;
     
    131131
    132132static driver_ops_t vhc_driver_ops = {
    133         .add_device = vhc_add_device,
     133        .dev_add = vhc_dev_add,
    134134};
    135135
Note: See TracChangeset for help on using the changeset viewer.