Changeset 730dce77 in mainline for uspace/drv/block/ahci/ahci_sata.h


Ignore:
Timestamp:
2012-07-17T16:35:09Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1bebadee, ae3ff9f5
Parents:
a00d555
Message:

get rid of the packed structure attribute (there should be no unwanted padding present)
this fixes compilation for arm32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci_sata.h

    ra00d555 r730dce77  
    3939typedef struct {
    4040        /** FIS type - always 0x27. */
    41         uint8_t fis_type;
     41        unsigned int fis_type : 8;
    4242        /** Indicate that FIS is a Command - always 0x80. */
    43         uint8_t c;
     43        unsigned int c : 8;
    4444        /** Command - Identity device - 0xec, Set fetures - 0xef. */
    45         uint8_t command;
     45        unsigned int command : 8;
    4646        /** Features - subcommand for set features - set tranfer mode - 0x03. */
    47         uint8_t features;
     47        unsigned int features : 8;
    4848        /** 0:23 bits of LBA. */
    49         uint32_t lba_lower : 24;
     49        unsigned int lba_lower : 24;
    5050        /** Device. */
    51         uint8_t device;
     51        unsigned int device : 8;
    5252        /** 24:47 bits of LBA. */
    53         uint32_t lba_upper : 24;
     53        unsigned int lba_upper : 24;
    5454        /** Features - subcommand for set features - set tranfer mode - 0x03. */
    55         uint8_t features_upper;
     55        unsigned int features_upper : 8;
    5656        /** Sector count - transfer mode for set transfer mode operation. */
    57         uint16_t count;
    58         /** Reserved. */
    59         uint8_t reserved1;
     57        unsigned int count : 16;
     58        /** Reserved. */
     59        unsigned int reserved1 : 8;
    6060        /** Control. */
    61         uint8_t control;
    62         /** Reserved. */
    63         uint32_t reserved2;
    64 } __attribute__((packed)) std_command_frame_t;
     61        unsigned int control : 8;
     62        /** Reserved. */
     63        unsigned int reserved2 : 32;
     64} std_command_frame_t;
    6565
    6666/** Command frame for NCQ data operation. */
     
    105105        /** Reserved. */
    106106        uint8_t reserved6;
    107 } __attribute__((packed)) ncq_command_frame_t;
     107} ncq_command_frame_t;
    108108
    109109/** Data returned from identify device and identify packet device command. */
     
    187187        uint16_t _vs128[1 + 159 - 128];
    188188        uint16_t reserved160[1 + 255 - 160];
    189 } __attribute__((packed)) identify_data_t;
     189} identify_data_t;
    190190
    191191/** Capability bits for register device. */
Note: See TracChangeset for help on using the changeset viewer.