Changes in uspace/lib/usb/src/hcdrv.c [4317827:3b77628] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hcdrv.c
r4317827 r3b77628 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 55 55 usb_hc_driver_t *hc_driver = &hc_driver_fake; 56 56 57 int usb_lowest_address = 1; 58 59 int usb_highest_address = 255; 60 57 61 static device_ops_t usb_device_ops = { 58 62 .interfaces[USBHC_DEV_IFACE] = &usbhc_interface 59 63 }; 64 65 66 void usb_create_address_list(usb_hc_device_t * hcd){ 67 list_initialize(&hcd->addresses); 68 usb_address_list_t * range = 69 (usb_address_list_t*)malloc(sizeof(usb_address_list_t)); 70 range->lower_bound = usb_lowest_address; 71 range->upper_bound = usb_highest_address + 1; 72 list_append(&range->link, &hcd->addresses); 73 } 60 74 61 75 static usb_hc_device_t *usb_hc_device_create(device_t *dev) { … … 64 78 list_initialize(&hc_dev->link); 65 79 list_initialize(&hc_dev->hubs); 80 usb_create_address_list(hc_dev); 66 81 list_initialize(&hc_dev->attached_devices); 67 82 hc_dev->transfer_ops = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.