Changeset 3e48c93 in mainline
- Timestamp:
- 2013-12-30T18:48:40Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09772f4
- Parents:
- 35c874a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
r35c874a r3e48c93 58 58 } hcca_t; 59 59 60 STATIC_ASSERT(sizeof(hcca_t) == 256); 61 60 62 /** Allocate properly aligned structure. 61 63 * … … 66 68 static inline hcca_t * hcca_get(void) 67 69 { 68 assert(sizeof(hcca_t) == 256); 69 hcca_t *hcca = memalign(256, sizeof(hcca_t)); 70 hcca_t *hcca = memalign(sizeof(hcca_t), sizeof(hcca_t)); 70 71 if (hcca) 71 72 memset(hcca, 0, sizeof(hcca_t)); … … 83 84 assert(index < ARRAY_SIZE(hcca->int_ep)); 84 85 OHCI_MEM32_WR(hcca->int_ep[index], pa); 85 86 86 } 87 87 #endif
Note:
See TracChangeset
for help on using the changeset viewer.