Changeset 0c0f823b in mainline for uspace/drv/bus
- Timestamp:
- 2011-11-14T20:50:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 765678f, d5ba17f
- Parents:
- 612ad864
- Location:
- uspace/drv/bus
- Files:
-
- 7 edited
-
isa/isa.c (modified) (3 diffs)
-
pci/pciintel/pci.c (modified) (6 diffs)
-
usb/ehci/main.c (modified) (2 diffs)
-
usb/ohci/main.c (modified) (2 diffs)
-
usb/uhci/main.c (modified) (2 diffs)
-
usb/uhcirh/main.c (modified) (2 diffs)
-
usb/vhc/main.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
r612ad864 r0c0f823b 108 108 static ddf_dev_ops_t isa_fun_ops; 109 109 110 static int isa_ add_device(ddf_dev_t *dev);110 static int isa_dev_add(ddf_dev_t *dev); 111 111 static int isa_dev_remove(ddf_dev_t *dev); 112 112 static int isa_fun_online(ddf_fun_t *fun); … … 115 115 /** The isa device driver's standard operations */ 116 116 static driver_ops_t isa_ops = { 117 . add_device = &isa_add_device,117 .dev_add = &isa_dev_add, 118 118 .dev_remove = &isa_dev_remove, 119 119 .fun_online = &isa_fun_online, … … 494 494 } 495 495 496 static int isa_ add_device(ddf_dev_t *dev)496 static int isa_dev_add(ddf_dev_t *dev) 497 497 { 498 498 isa_bus_t *isa; 499 499 500 ddf_msg(LVL_DEBUG, "isa_ add_device, device handle = %d",500 ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d", 501 501 (int) dev->handle); 502 502 -
uspace/drv/bus/pci/pciintel/pci.c
r612ad864 r0c0f823b 205 205 }; 206 206 207 static int pci_ add_device(ddf_dev_t *);207 static int pci_dev_add(ddf_dev_t *); 208 208 static int pci_fun_online(ddf_fun_t *); 209 209 static int pci_fun_offline(ddf_fun_t *); … … 211 211 /** PCI bus driver standard operations */ 212 212 static driver_ops_t pci_ops = { 213 . add_device = &pci_add_device,213 .dev_add = &pci_dev_add, 214 214 .fun_online = &pci_fun_online, 215 215 .fun_offline = &pci_fun_offline, … … 610 610 } 611 611 612 static int pci_ add_device(ddf_dev_t *dnode)612 static int pci_dev_add(ddf_dev_t *dnode) 613 613 { 614 614 pci_bus_t *bus = NULL; … … 617 617 int rc; 618 618 619 ddf_msg(LVL_DEBUG, "pci_ add_device");619 ddf_msg(LVL_DEBUG, "pci_dev_add"); 620 620 dnode->parent_sess = NULL; 621 621 622 622 bus = ddf_dev_data_alloc(dnode, sizeof(pci_bus_t)); 623 623 if (bus == NULL) { 624 ddf_msg(LVL_ERROR, "pci_ add_deviceallocation failed.");624 ddf_msg(LVL_ERROR, "pci_dev_add allocation failed."); 625 625 rc = ENOMEM; 626 626 goto fail; … … 634 634 dnode->handle, IPC_FLAG_BLOCKING); 635 635 if (!dnode->parent_sess) { 636 ddf_msg(LVL_ERROR, "pci_ add_devicefailed to connect to the "636 ddf_msg(LVL_ERROR, "pci_dev_add failed to connect to the " 637 637 "parent driver."); 638 638 rc = ENOENT; … … 644 644 rc = hw_res_get_resource_list(dnode->parent_sess, &hw_resources); 645 645 if (rc != EOK) { 646 ddf_msg(LVL_ERROR, "pci_ add_devicefailed to get hw resources "646 ddf_msg(LVL_ERROR, "pci_dev_add failed to get hw resources " 647 647 "for the device."); 648 648 goto fail; -
uspace/drv/bus/usb/ehci/main.c
r612ad864 r0c0f823b 46 46 #include "ehci.h" 47 47 48 static int ehci_ add_device(ddf_dev_t *device);48 static int ehci_dev_add(ddf_dev_t *device); 49 49 /*----------------------------------------------------------------------------*/ 50 50 static driver_ops_t ehci_driver_ops = { 51 . add_device = ehci_add_device,51 .dev_add = ehci_dev_add, 52 52 }; 53 53 /*----------------------------------------------------------------------------*/ … … 66 66 * @return Error code. 67 67 */ 68 static int ehci_ add_device(ddf_dev_t *device)68 static int ehci_dev_add(ddf_dev_t *device) 69 69 { 70 70 assert(device); -
uspace/drv/bus/usb/ohci/main.c
r612ad864 r0c0f823b 48 48 * @return Error code. 49 49 */ 50 static int ohci_ add_device(ddf_dev_t *device)50 static int ohci_dev_add(ddf_dev_t *device) 51 51 { 52 usb_log_debug("ohci_ add_device() called\n");52 usb_log_debug("ohci_dev_add() called\n"); 53 53 assert(device); 54 54 … … 65 65 /*----------------------------------------------------------------------------*/ 66 66 static driver_ops_t ohci_driver_ops = { 67 . add_device = ohci_add_device,67 .dev_add = ohci_dev_add, 68 68 }; 69 69 /*----------------------------------------------------------------------------*/ -
uspace/drv/bus/usb/uhci/main.c
r612ad864 r0c0f823b 43 43 #define NAME "uhci" 44 44 45 static int uhci_ add_device(ddf_dev_t *device);45 static int uhci_dev_add(ddf_dev_t *device); 46 46 /*----------------------------------------------------------------------------*/ 47 47 static driver_ops_t uhci_driver_ops = { 48 . add_device = uhci_add_device,48 .dev_add = uhci_dev_add, 49 49 }; 50 50 /*----------------------------------------------------------------------------*/ … … 59 59 * @return Error code. 60 60 */ 61 int uhci_ add_device(ddf_dev_t *device)61 int uhci_dev_add(ddf_dev_t *device) 62 62 { 63 usb_log_debug2("uhci_ add_device() called\n");63 usb_log_debug2("uhci_dev_add() called\n"); 64 64 assert(device); 65 65 -
uspace/drv/bus/usb/uhcirh/main.c
r612ad864 r0c0f823b 51 51 uintptr_t *io_reg_address, size_t *io_reg_size); 52 52 53 static int uhci_rh_ add_device(ddf_dev_t *device);53 static int uhci_rh_dev_add(ddf_dev_t *device); 54 54 55 55 static driver_ops_t uhci_rh_driver_ops = { 56 . add_device = uhci_rh_add_device,56 .dev_add = uhci_rh_dev_add, 57 57 }; 58 58 … … 82 82 * @return Error code. 83 83 */ 84 static int uhci_rh_ add_device(ddf_dev_t *device)84 static int uhci_rh_dev_add(ddf_dev_t *device) 85 85 { 86 86 if (!device) 87 87 return EINVAL; 88 88 89 usb_log_debug2("uhci_rh_ add_device(handle=%" PRIun ")\n",89 usb_log_debug2("uhci_rh_dev_add(handle=%" PRIun ")\n", 90 90 device->handle); 91 91 -
uspace/drv/bus/usb/vhc/main.c
r612ad864 r0c0f823b 58 58 }; 59 59 60 static int vhc_ add_device(ddf_dev_t *dev)60 static int vhc_dev_add(ddf_dev_t *dev) 61 61 { 62 62 static int vhc_count = 0; … … 131 131 132 132 static driver_ops_t vhc_driver_ops = { 133 . add_device = vhc_add_device,133 .dev_add = vhc_dev_add, 134 134 }; 135 135
Note:
See TracChangeset
for help on using the changeset viewer.
