Changeset b317b0b in mainline for uspace/drv/usbhub
- Timestamp:
- 2011-02-21T19:50:41Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15b0432
- Parents:
- ace12560 (diff), 41b70d30 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/usbhub
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
race12560 rb317b0b 34 34 #include <errno.h> 35 35 #include <async.h> 36 37 #include <usb/usbdrv.h>38 39 36 40 37 #include "usbhub.h" -
uspace/drv/usbhub/port_status.h
race12560 rb317b0b 35 35 #include <bool.h> 36 36 #include <sys/types.h> 37 #include <usb/ devreq.h>37 #include <usb/request.h> 38 38 #include "usbhub_private.h" 39 39 -
uspace/drv/usbhub/usbhub.c
race12560 rb317b0b 40 40 #include <usb_iface.h> 41 41 #include <usb/ddfiface.h> 42 #include <usb/usbdrv.h>43 42 #include <usb/descriptor.h> 44 43 #include <usb/recognise.h> 45 #include <usb/devreq.h>46 44 #include <usb/request.h> 47 45 #include <usb/classes/hub.h> … … 232 230 233 231 /** 234 * Convenience function for releasing default address and writing debug info235 * (these few lines are used too often to be written again and again).236 * @param hc237 * @return238 */239 inline static int usb_hub_release_default_address(int hc){240 int opResult;241 dprintf(USB_LOG_LEVEL_INFO, "releasing default address");242 opResult = usb_drv_release_default_address(hc);243 if (opResult != EOK) {244 dprintf(USB_LOG_LEVEL_WARNING, "failed to release default address");245 }246 return opResult;247 }248 249 /**250 232 * Reset the port with new device and reserve the default address. 251 233 * @param hc … … 261 243 //opResult = usb_drv_reserve_default_address(hc); 262 244 opResult = usb_hc_reserve_default_address(&hub->connection, USB_SPEED_LOW); 245 263 246 if (opResult != EOK) { 264 247 dprintf(USB_LOG_LEVEL_WARNING, "cannot assign default address, it is probably used"); -
uspace/drv/usbhub/usbhub.h
race12560 rb317b0b 42 42 #define NAME "usbhub" 43 43 44 //#include "usb/hcdhubd.h"45 #include <usb/usbdrv.h>46 44 #include <usb/hub.h> 47 45 -
uspace/drv/usbhub/usbhub_private.h
race12560 rb317b0b 47 47 #include <usb/classes/hub.h> 48 48 #include <usb/usb.h> 49 #include <usb/usbdrv.h>50 51 //#include <usb/devreq.h>52 49 #include <usb/debug.h> 50 #include <usb/request.h> 53 51 54 52 //************ -
uspace/drv/usbhub/utils.c
race12560 rb317b0b 38 38 39 39 #include <usbhc_iface.h> 40 #include <usb/usbdrv.h>41 40 #include <usb/descriptor.h> 42 #include <usb/devreq.h>43 41 #include <usb/classes/hub.h> 44 42
Note:
See TracChangeset
for help on using the changeset viewer.
