Changeset 643b983 in mainline for uspace/drv/uhci/uhci_struct/transfer_descriptor.h
- Timestamp:
- 2011-01-21T18:14:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bae9e76
- Parents:
- 9600516
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci_struct/transfer_descriptor.h
r9600516 r643b983 35 35 #define DRV_UHCI_TRANSFER_DESCRIPTOR_H 36 36 37 #include <mem.h> 38 #include <usb/usb.h> 37 39 #include "callback.h" 38 40 … … 70 72 char :1; /* reserved */ 71 73 uint8_t toggle:1; 72 uint8_t end _point:4;74 uint8_t endpoint:4; 73 75 uint8_t address:7; 74 76 uint8_t pid; … … 85 87 } __attribute__((packed)) transfer_descriptor_t; 86 88 89 static inline int transfer_descriptor_init(transfer_descriptor_t *instance, 90 int error_count, size_t size, bool isochronous, usb_target_t target, 91 int pid) 92 { 93 assert(instance); 94 bzero(instance, sizeof(transfer_descriptor_t)); 95 96 instance->depth = 1; 97 instance->terminate = 1; 98 99 assert(error_count < 4); 100 instance->error_count = error_count; 101 instance->status.active = 1; 102 103 assert(size < 1024); 104 instance->maxlen = size; 105 106 instance->address = target.address; 107 instance->endpoint = target.endpoint; 108 109 instance->pid = pid; 110 111 return EOK; 112 } 113 87 114 #endif 88 115 /**
Note:
See TracChangeset
for help on using the changeset viewer.