Changeset 590cb6d2 in mainline
- Timestamp:
- 2023-10-22T15:53:32Z (14 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71b4444, abb70fc3
- Parents:
- f4a42661
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 15:39:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 15:53:32)
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hw_struct/common.h
rf4a42661 r590cb6d2 53 53 * 4 bytes, little-endian. 54 54 */ 55 typedef ioport32_t xhci_dword_t __attribute__((aligned(4)));55 typedef ioport32_t xhci_dword_t; 56 56 57 57 /** 58 58 * 8 bytes, little-endian. 59 59 */ 60 typedef volatile uint64_t xhci_qword_t __attribute__((aligned(8)));60 typedef volatile uint64_t xhci_qword_t; 61 61 62 62 #define XHCI_DWORD_EXTRACT(field, hi, lo) \ -
uspace/drv/bus/usb/xhci/hw_struct/context.h
rf4a42661 r590cb6d2 53 53 xhci_dword_t data3; 54 54 xhci_dword_t reserved[3]; 55 } xhci_ep_ctx_t; 55 56 56 57 #define XHCI_EP_COUNT 31 … … 107 108 #define XHCI_EP_MAX_ESIT_PAYLOAD_HI(ctx) XHCI_DWORD_EXTRACT((ctx).data[0], 31, 24) 108 109 109 } __attribute__((packed)) xhci_ep_ctx_t;110 111 110 enum { 112 111 EP_STATE_DISABLED = 0, … … 123 122 xhci_dword_t data [4]; 124 123 xhci_dword_t reserved [4]; 124 } xhci_slot_ctx_t; 125 125 126 126 #define XHCI_SLOT_ROUTE_STRING_SET(ctx, val) \ … … 165 165 #define XHCI_SLOT_STATE(ctx) XHCI_DWORD_EXTRACT((ctx).data[3], 31, 27) 166 166 167 } __attribute__((packed)) xhci_slot_ctx_t;168 169 167 enum { 170 168 SLOT_STATE_DISABLED = 0, … … 213 211 typedef struct xhci_stream_ctx { 214 212 uint64_t data [2]; 213 } xhci_stream_ctx_t; 214 215 215 #define XHCI_STREAM_DCS(ctx) XHCI_QWORD_EXTRACT((ctx).data[0], 0, 0) 216 216 #define XHCI_STREAM_SCT(ctx) XHCI_QWORD_EXTRACT((ctx).data[0], 3, 1) … … 222 222 #define XHCI_STREAM_DEQ_PTR_SET(ctx, val) \ 223 223 xhci_qword_set_bits(&(ctx).data[0], (val >> 4), 63, 4) 224 } __attribute__((packed)) xhci_stream_ctx_t;225 224 226 225 /** … … 234 233 typedef struct xhci_input_ctrl_ctx { 235 234 uint32_t data [8]; 235 } __attribute__((packed)) xhci_input_ctrl_ctx_t; 236 236 237 #define XHCI_INPUT_CTRL_CTX_DROP(ctx, idx) \ 237 238 XHCI_DWORD_EXTRACT((ctx).data[0], (idx), (idx)) … … 252 253 #define XHCI_INPUT_CTRL_CTX_ALTER_SETTING(ctx) \ 253 254 XHCI_DWORD_EXTRACT((ctx).data[7], 23, 16) 254 } __attribute__((packed)) xhci_input_ctrl_ctx_t;255 255 256 256 /** … … 281 281 uint8_t reserved; 282 282 uint8_t ports []; 283 } __attribute__((packed))xhci_port_bandwidth_ctx_t;283 } xhci_port_bandwidth_ctx_t; 284 284 285 285 #endif -
uspace/lib/ext4/include/ext4/types.h
rf4a42661 r590cb6d2 141 141 uint32_t encrypt_algos; /* Encrypt algorithm in use */ 142 142 uint32_t padding[105]; /* Padding to the end of the block */ 143 } __attribute__((packed))ext4_superblock_t;143 } ext4_superblock_t; 144 144 145 145 #define EXT4_GOOD_OLD_REV 0 … … 335 335 uint32_t author; 336 336 } hurd2; 337 } __attribute__((packed))osd2;337 } osd2; 338 338 339 339 uint16_t extra_isize; … … 345 345 uint32_t crtime_extra; /* Extra file creation time (nsec << 2 | epoch) */ 346 346 uint32_t version_hi; /* High 32 bits for 64-bit version */ 347 } __attribute__((packed))ext4_inode_t;347 } ext4_inode_t; 348 348 349 349 #define EXT4_INODE_MODE_FIFO 0x1000 … … 418 418 uint8_t name_length_high; /* Higher 8 bits of name length */ 419 419 uint8_t inode_type; /* Type of referenced inode (in rev >= 0.5) */ 420 } __attribute__((packed));420 }; 421 421 422 422 uint8_t name[EXT4_DIRECTORY_FILENAME_LEN]; /* Entry name */ 423 } __attribute__((packed))ext4_directory_entry_ll_t;423 } ext4_directory_entry_ll_t; 424 424 425 425 typedef struct ext4_directory_iterator {
Note:
See TracChangeset
for help on using the changeset viewer.