Changeset 1dc4a5e in mainline for uspace/drv/bus/usb
- Timestamp:
- 2011-08-18T13:34:33Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 763e0cd
- Parents:
- 99ac5cf
- Location:
- uspace/drv/bus/usb
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/main.c
r99ac5cf r1dc4a5e 101 101 "Failed to bind EHCI function: %s.\n", 102 102 str_error(ret)); 103 ret = ddf_fun_add_to_c lass(hc_fun, USB_HC_DDF_CLASS_NAME);103 ret = ddf_fun_add_to_category(hc_fun, USB_HC_CATEGORY); 104 104 CHECK_RET_RETURN(ret, 105 105 "Failed to add EHCI to HC class: %s.\n", -
uspace/drv/bus/usb/ohci/ohci.c
r99ac5cf r1dc4a5e 244 244 "Failed to bind OHCI device function: %s.\n", str_error(ret)); 245 245 246 ret = ddf_fun_add_to_c lass(instance->hc_fun, USB_HC_DDF_CLASS_NAME);246 ret = ddf_fun_add_to_category(instance->hc_fun, USB_HC_CATEGORY); 247 247 CHECK_RET_FINI_RETURN(ret, 248 248 "Failed to add OHCI to HC class: %s.\n", str_error(ret)); -
uspace/drv/bus/usb/uhci/uhci.c
r99ac5cf r1dc4a5e 267 267 str_error(ret)); 268 268 269 ret = ddf_fun_add_to_c lass(instance->hc_fun, USB_HC_DDF_CLASS_NAME);269 ret = ddf_fun_add_to_category(instance->hc_fun, USB_HC_CATEGORY); 270 270 CHECK_RET_FINI_RETURN(ret, 271 271 "Failed to add UHCI to HC class: %s.\n", str_error(ret)); -
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
r99ac5cf r1dc4a5e 102 102 103 103 const char *HID_KBD_FUN_NAME = "keyboard"; 104 const char *HID_KBD_C LASS_NAME = "keyboard";104 const char *HID_KBD_CATEGORY_NAME = "keyboard"; 105 105 106 106 static void usb_kbd_set_led(usb_hid_dev_t *hid_dev, usb_kbd_t *kbd_dev); … … 551 551 HID_KBD_FUN_NAME, fun->handle); 552 552 553 usb_log_debug("Adding DDF function to c lass%s...\n",553 usb_log_debug("Adding DDF function to category %s...\n", 554 554 HID_KBD_CLASS_NAME); 555 rc = ddf_fun_add_to_c lass(fun, HID_KBD_CLASS_NAME);555 rc = ddf_fun_add_to_category(fun, HID_KBD_CATEGORY_NAME); 556 556 if (rc != EOK) { 557 557 usb_log_error( 558 "Could not add DDF function to c lass%s: %s.\n",558 "Could not add DDF function to category %s: %s.\n", 559 559 HID_KBD_CLASS_NAME, str_error(rc)); 560 560 ddf_fun_destroy(fun); -
uspace/drv/bus/usb/usbhid/mouse/mousedev.c
r99ac5cf r1dc4a5e 74 74 const char *HID_MOUSE_FUN_NAME = "mouse"; 75 75 const char *HID_MOUSE_WHEEL_FUN_NAME = "mouse-wheel"; 76 const char *HID_MOUSE_C LASS_NAME= "mouse";77 const char *HID_MOUSE_WHEEL_C LASS_NAME= "keyboard";76 const char *HID_MOUSE_CATEGORY = "mouse"; 77 const char *HID_MOUSE_WHEEL_CATEGORY = "keyboard"; 78 78 79 79 /** Default idle rate for mouses. */ … … 345 345 } 346 346 347 usb_log_debug("Adding DDF function to c lass%s...\n",348 HID_MOUSE_C LASS_NAME);349 rc = ddf_fun_add_to_c lass(fun, HID_MOUSE_CLASS_NAME);347 usb_log_debug("Adding DDF function to category %s...\n", 348 HID_MOUSE_CATEGORY); 349 rc = ddf_fun_add_to_category(fun, HID_MOUSE_CATEGORY); 350 350 if (rc != EOK) { 351 351 usb_log_error( 352 "Could not add DDF function to c lass%s: %s.\n",353 HID_MOUSE_C LASS_NAME, str_error(rc));352 "Could not add DDF function to category %s: %s.\n", 353 HID_MOUSE_CATEGORY, str_error(rc)); 354 354 ddf_fun_destroy(fun); 355 355 return rc; … … 383 383 } 384 384 385 usb_log_debug("Adding DDF function to c lass%s...\n",386 HID_MOUSE_WHEEL_C LASS_NAME);387 rc = ddf_fun_add_to_c lass(fun, HID_MOUSE_WHEEL_CLASS_NAME);385 usb_log_debug("Adding DDF function to category %s...\n", 386 HID_MOUSE_WHEEL_CATEGORY); 387 rc = ddf_fun_add_to_category(fun, HID_MOUSE_WHEEL_CATEGORY); 388 388 if (rc != EOK) { 389 389 usb_log_error( 390 "Could not add DDF function to c lass%s: %s.\n",391 HID_MOUSE_WHEEL_C LASS_NAME, str_error(rc));390 "Could not add DDF function to category %s: %s.\n", 391 HID_MOUSE_WHEEL_CATEGORY, str_error(rc)); 392 392 ddf_fun_destroy(fun); 393 393 return rc; -
uspace/drv/bus/usb/usbhid/mouse/mousedev.h
r99ac5cf r1dc4a5e 59 59 60 60 const char *HID_MOUSE_FUN_NAME; 61 const char *HID_MOUSE_C LASS_NAME;61 const char *HID_MOUSE_CATEGORY; 62 62 63 63 /*----------------------------------------------------------------------------*/ -
uspace/drv/bus/usb/usbhid/multimedia/multimedia.c
r99ac5cf r1dc4a5e 205 205 } 206 206 207 usb_log_debug("%s function created ( jandle: %" PRIun ").\n",207 usb_log_debug("%s function created (handle: %" PRIun ").\n", 208 208 NAME, fun->handle); 209 209 210 rc = ddf_fun_add_to_c lass(fun, "keyboard");210 rc = ddf_fun_add_to_category(fun, "keyboard"); 211 211 if (rc != EOK) { 212 212 usb_log_error( 213 "Could not add DDF function to c lass'keyboard': %s.\n",213 "Could not add DDF function to category 'keyboard': %s.\n", 214 214 str_error(rc)); 215 215 // TODO: Can / should I destroy the DDF function? -
uspace/drv/bus/usb/usbhub/usbhub.c
r99ac5cf r1dc4a5e 131 131 opResult = ddf_fun_bind(hub_fun); 132 132 assert(opResult == EOK); 133 opResult = ddf_fun_add_to_c lass(hub_fun, "hub");133 opResult = ddf_fun_add_to_category(hub_fun, "hub"); 134 134 assert(opResult == EOK); 135 135 -
uspace/drv/bus/usb/usbmouse/init.c
r99ac5cf r1dc4a5e 116 116 117 117 /* Add the function to mouse class. */ 118 rc = ddf_fun_add_to_c lass(mouse->mouse_fun, "mouse");118 rc = ddf_fun_add_to_category(mouse->mouse_fun, "mouse"); 119 119 if (rc != EOK) 120 120 goto leave; -
uspace/drv/bus/usb/vhc/main.c
r99ac5cf r1dc4a5e 104 104 } 105 105 106 rc = ddf_fun_add_to_c lass(hc, USB_HC_DDF_CLASS_NAME);106 rc = ddf_fun_add_to_category(hc, USB_HC_CATEGORY); 107 107 if (rc != EOK) { 108 108 usb_log_fatal("Failed to add function to HC class: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.