Changeset e42dd32 in mainline for uspace/drv/ohci/hw_struct/transfer_descriptor.h
- Timestamp:
- 2011-04-08T23:28:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1be95c8
- Parents:
- b854e56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hw_struct/transfer_descriptor.h
rb854e56 re42dd32 36 36 37 37 #include <stdint.h> 38 #include "utils/malloc32.h" 38 39 39 40 #include "completion_codes.h" … … 55 56 #define TD_STATUS_T_MASK (0x3) /* data toggle 1x = use ED toggle carry */ 56 57 #define TD_STATUS_T_SHIFT (24) 57 #define TD_STATUS_T_0 (0x0) 58 #define TD_STATUS_T_1 (0x1) 59 #define TD_STATUS_T_USE_EP (0x1) 58 #define TD_STATUS_T_0 (0x2) 59 #define TD_STATUS_T_1 (0x3) 60 60 #define TD_STATUS_EC_MASK (0x3) /* error count */ 61 61 #define TD_STATUS_EC_SHIFT (26) … … 74 74 td_t *instance, usb_direction_t dir, void *buffer, size_t size, int toggle); 75 75 76 inline static void td_set_next(td_t *instance, uint32_tnext)76 inline static void td_set_next(td_t *instance, td_t *next) 77 77 { 78 78 assert(instance); 79 instance->next = next& TD_NEXT_PTR_MASK;79 instance->next = addr_to_phys(next) & TD_NEXT_PTR_MASK; 80 80 } 81 81 #endif
Note:
See TracChangeset
for help on using the changeset viewer.