Changeset 28cb8bf7 in mainline
- Timestamp:
- 2011-02-14T10:43:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8555112
- Parents:
- 962ce100
- Location:
- uspace
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r962ce100 r28cb8bf7 84 84 }*/ 85 85 86 result->usb_device = usb_new(usb_hcd_attached_device_info_t); 87 result->usb_device->address = addr; 86 result->address = addr; 88 87 89 88 // get hub descriptor … … 155 154 int opResult; 156 155 usb_target_t target; 157 target.address = hub_info-> usb_device->address;156 target.address = hub_info->address; 158 157 target.endpoint = 0; 159 158 … … 216 215 dprintf(USB_LOG_LEVEL_INFO, "hub dev added"); 217 216 dprintf(USB_LOG_LEVEL_DEBUG, "\taddress %d, has %d ports ", 218 hub_info-> usb_device->address,217 hub_info->address, 219 218 hub_info->port_count); 220 219 dprintf(USB_LOG_LEVEL_DEBUG, "\tused configuration %d",config_descriptor.configuration_number); … … 465 464 466 465 usb_target_t target; 467 target.address = hub_info-> usb_device->address;466 target.address = hub_info->address; 468 467 target.endpoint = 1;/// \TODO get from endpoint descriptor 469 468 dprintf(USB_LOG_LEVEL_INFO, "checking changes for hub at addr %d", … … 507 506 if (interrupt) { 508 507 usb_hub_process_interrupt( 509 hub_info, hc, port, hub_info-> usb_device->address);508 hub_info, hc, port, hub_info->address); 510 509 } 511 510 } -
uspace/drv/usbhub/usbhub.h
r962ce100 r28cb8bf7 36 36 #define DRV_USBHUB_USBHUB_H 37 37 38 #include <ipc/devman.h> 39 #include <usb/usb.h> 40 #include <driver.h> 41 38 42 #define NAME "usbhub" 39 40 #include "usb/hcdhubd.h"41 43 42 44 /** basic information about device attached to hub */ … … 52 54 /** attached device handles */ 53 55 usb_hub_attached_device_t * attached_devs; 54 /** General usb device info. */55 usb_ hcd_attached_device_info_t * usb_device;56 /** USB address of the hub. */ 57 usb_address_t address; 56 58 /** General device info*/ 57 59 device_t * device; 58 59 60 } usb_hub_info_t; 60 61 -
uspace/lib/usb/include/usb/classes/hub.h
r962ce100 r28cb8bf7 37 37 38 38 #include <sys/types.h> 39 #include <usb/hcdhubd.h>40 41 39 42 40 /** Hub class feature selector. … … 80 78 /** 81 79 D1...D0: Logical Power Switching Mode 82 00: Ganged power switching (all ports ’power at80 00: Ganged power switching (all ports power at 83 81 once) 84 82 01: Individual port power switching … … 91 89 00: Global Over-current Protection. The hub 92 90 reports over-current as a summation of all 93 ports ’current draw, without a breakdown of91 ports current draw, without a breakdown of 94 92 individual port over-current status. 95 93 01: Individual Port Over-current Protection. The
Note:
See TracChangeset
for help on using the changeset viewer.