Changeset 4144630 in mainline for uspace/lib/usb/src/hcdrv.c
- Timestamp:
- 2010-12-03T15:43:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2cb6571, 45e9cc6
- Parents:
- c39544a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hcdrv.c
rc39544a r4144630 50 50 usb_hc_driver_t *hc_driver = NULL; 51 51 52 int usb_lowest_address = 1; 53 54 int usb_highest_address = 255; 55 52 56 static device_ops_t usb_device_ops = { 53 57 .interfaces[USBHC_DEV_IFACE] = &usbhc_interface 54 58 }; 59 60 61 void usb_create_address_list(usb_hc_device_t * hcd){ 62 list_initialize(&hcd->addresses); 63 usb_address_list_t * range = 64 (usb_address_list_t*)malloc(sizeof(usb_address_list_t)); 65 range->lower_bound = usb_lowest_address; 66 range->upper_bound = usb_highest_address + 1; 67 list_append(&range->link, &hcd->addresses); 68 } 55 69 56 70 static usb_hc_device_t *usb_hc_device_create(device_t *dev) { … … 59 73 list_initialize(&hc_dev->link); 60 74 list_initialize(&hc_dev->hubs); 75 usb_create_address_list(hc_dev); 61 76 list_initialize(&hc_dev->attached_devices); 62 77 hc_dev->transfer_ops = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.