Changeset 881c47b in mainline for uspace/drv/uhci-hcd/transfer_list.c
- Timestamp:
- 2011-02-04T14:45:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcef3669
- Parents:
- 97e87de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/transfer_list.c
r97e87de r881c47b 38 38 #include "transfer_list.h" 39 39 40 int transfer_list_init(transfer_list_t *instance, transfer_list_t *next)40 int transfer_list_init(transfer_list_t *instance, const char *name) 41 41 { 42 42 assert(instance); 43 43 instance->first = NULL; 44 44 instance->last = NULL; 45 instance->next = NULL; 46 instance->name = name; 45 47 instance->queue_head = queue_head_get(); 46 48 if (!instance->queue_head) { … … 50 52 instance->queue_head_pa = (uintptr_t)addr_to_phys(instance->queue_head); 51 53 52 uint32_t next_pa = next ? next->queue_head_pa : 0; 53 queue_head_init(instance->queue_head, next_pa); 54 queue_head_init(instance->queue_head); 54 55 return EOK; 56 } 57 /*----------------------------------------------------------------------------*/ 58 void transfer_list_set_next(transfer_list_t *instance, transfer_list_t *next) 59 { 60 assert(instance); 61 assert(next); 62 instance->next = next; 63 if (!instance->queue_head) 64 return; 65 queue_head_add_next(instance->queue_head, next->queue_head_pa); 55 66 } 56 67 /*----------------------------------------------------------------------------*/ … … 81 92 instance->queue_head->element = (pa & LINK_POINTER_ADDRESS_MASK); 82 93 } 83 usb_log_debug("Successfully added transfer to the hc queue % p.\n",84 instance );94 usb_log_debug("Successfully added transfer to the hc queue %S.\n", 95 instance->name); 85 96 return EOK; 86 97 }
Note:
See TracChangeset
for help on using the changeset viewer.