Changes in uspace/drv/bus/usb/ohci/hw_struct/hcca.h [3e48c93:acdb5bac] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
r3e48c93 racdb5bac 35 35 #define DRV_OHCI_HW_STRUCT_HCCA_H 36 36 37 #include <stdint.h> 37 38 #include <malloc.h> 38 #include <sys/types.h>39 #include <macros.h>40 39 41 40 #include "mem_access.h" … … 51 50 /** Frame number. */ 52 51 uint16_t frame_number; 53 PADD16;52 uint16_t pad1; 54 53 /** Pointer to the last completed TD. (useless) */ 55 54 uint32_t done_head; 56 55 /** Padding to make the size 256B */ 57 PADD32[30];56 uint32_t reserved[30]; 58 57 } hcca_t; 59 60 STATIC_ASSERT(sizeof(hcca_t) == 256);61 58 62 59 /** Allocate properly aligned structure. … … 68 65 static inline hcca_t * hcca_get(void) 69 66 { 70 hcca_t *hcca = memalign(sizeof(hcca_t), sizeof(hcca_t)); 67 assert(sizeof(hcca_t) == 256); 68 hcca_t *hcca = memalign(256, sizeof(hcca_t)); 71 69 if (hcca) 72 70 memset(hcca, 0, sizeof(hcca_t)); … … 82 80 { 83 81 assert(hcca); 84 assert(index < ARRAY_SIZE(hcca->int_ep));82 assert(index < HCCA_INT_EP_COUNT); 85 83 OHCI_MEM32_WR(hcca->int_ep[index], pa); 84 86 85 } 87 86 #endif
Note:
See TracChangeset
for help on using the changeset viewer.