Changeset eae83aa in mainline
- Timestamp:
- 2011-03-05T00:33:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 474d08e, 5079242
- Parents:
- c5b93dc
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/batch.c
rc5b93dc reae83aa 47 47 static int batch_schedule(batch_t *instance); 48 48 49 static void batch_control( 50 batch_t *instance, int data_stage, intstatus_stage);51 static void batch_data(batch_t *instance, intpid);49 static void batch_control(batch_t *instance, 50 usb_packet_id data_stage, usb_packet_id status_stage); 51 static void batch_data(batch_t *instance, usb_packet_id pid); 52 52 static void batch_call_in(batch_t *instance); 53 53 static void batch_call_out(batch_t *instance); … … 232 232 } 233 233 /*----------------------------------------------------------------------------*/ 234 static void batch_data(batch_t *instance, intpid)234 static void batch_data(batch_t *instance, usb_packet_id pid) 235 235 { 236 236 assert(instance); … … 266 266 } 267 267 /*----------------------------------------------------------------------------*/ 268 static void batch_control( 269 batch_t *instance, int data_stage, intstatus_stage)268 static void batch_control(batch_t *instance, 269 usb_packet_id data_stage, usb_packet_id status_stage) 270 270 { 271 271 assert(instance); -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
rc5b93dc reae83aa 39 39 40 40 void td_init(td_t *instance, int err_count, size_t size, bool toggle, bool iso, 41 bool low_speed, usb_target_t target, intpid, void *buffer, td_t *next)41 bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer, td_t *next) 42 42 { 43 43 assert(instance); 44 44 assert(size < 1024); 45 assert((pid == USB_PID_SETUP) || (pid == USB_PID_IN) || (pid == USB_PID_OUT)); 45 46 46 47 instance->next = 0 … … 53 54 | (iso ? TD_STATUS_ISOCHRONOUS_FLAG : 0) 54 55 | TD_STATUS_ERROR_ACTIVE; 56 57 if (pid == USB_PID_IN && !iso) { 58 instance->status |= TD_STATUS_SPD_FLAG; 59 } 55 60 56 61 instance->device = 0 -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.h
rc5b93dc reae83aa 92 92 93 93 void td_init(td_t *instance, int error_count, size_t size, bool toggle, bool iso, 94 bool low_speed, usb_target_t target, int pid, void *buffer, td_t * next); 94 bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer, 95 td_t *next); 95 96 96 97 int td_status(td_t *instance);
Note:
See TracChangeset
for help on using the changeset viewer.