Changeset 45f4f19 in mainline for uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h
- Timestamp:
- 2012-03-05T20:33:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b90e90
- Parents:
- d1ca752
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h
rd1ca752 r45f4f19 38 38 #include <stdint.h> 39 39 40 #include " ../ohci_regs.h"40 #include "mem_access.h" 41 41 #include "completion_codes.h" 42 42 … … 100 100 { 101 101 assert(instance); 102 const int cc =(OHCI_ RD(instance->status)102 const int cc =(OHCI_MEM32_RD(instance->status) 103 103 >> TD_STATUS_CC_SHIFT) & TD_STATUS_CC_MASK; 104 104 /* This value is changed on transfer completion, … … 119 119 { 120 120 assert(instance); 121 const int cc = (OHCI_ RD(instance->status)121 const int cc = (OHCI_MEM32_RD(instance->status) 122 122 >> TD_STATUS_CC_SHIFT) & TD_STATUS_CC_MASK; 123 123 return cc_to_rc(cc); … … 136 136 return 0; 137 137 /* Buffer end points to the last byte of transfer buffer, so add 1 */ 138 return OHCI_ RD(instance->be) - OHCI_RD(instance->cbp) + 1;138 return OHCI_MEM32_RD(instance->be) - OHCI_MEM32_RD(instance->cbp) + 1; 139 139 } 140 140 #endif
Note:
See TracChangeset
for help on using the changeset viewer.