Changeset b854e56 in mainline for uspace/drv/ohci/batch.c
- Timestamp:
- 2011-04-08T22:25:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e42dd32
- Parents:
- 7786cea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.c
r7786cea rb854e56 43 43 #include "hw_struct/transfer_descriptor.h" 44 44 45 #define OHCI_MAX_TRANSFER (8 * 1024) /* OHCI TDs can handle up to 8KB buffers */46 47 45 typedef struct ohci_batch { 48 46 ed_t *ed; … … 85 83 86 84 /* we needs + 1 transfer descriptor as the last one won't be executed */ 87 data->td_count = 88 1 + ((buffer_size + OHCI_MAX_TRANSFER - 1) / OHCI_MAX_TRANSFER);85 data->td_count = 1 + 86 ((buffer_size + OHCI_TD_MAX_TRANSFER - 1) / OHCI_TD_MAX_TRANSFER); 89 87 if (ep->transfer_type == USB_TRANSFER_CONTROL) { 90 88 data->td_count += 2;
Note:
See TracChangeset
for help on using the changeset viewer.