Changeset 730dce77 in mainline for uspace/drv/block/ahci/ahci_sata.h
- Timestamp:
- 2012-07-17T16:35:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1bebadee, ae3ff9f5
- Parents:
- a00d555
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci_sata.h
ra00d555 r730dce77 39 39 typedef struct { 40 40 /** FIS type - always 0x27. */ 41 u int8_t fis_type;41 unsigned int fis_type : 8; 42 42 /** Indicate that FIS is a Command - always 0x80. */ 43 u int8_t c;43 unsigned int c : 8; 44 44 /** Command - Identity device - 0xec, Set fetures - 0xef. */ 45 u int8_t command;45 unsigned int command : 8; 46 46 /** Features - subcommand for set features - set tranfer mode - 0x03. */ 47 u int8_t features;47 unsigned int features : 8; 48 48 /** 0:23 bits of LBA. */ 49 u int32_t lba_lower : 24;49 unsigned int lba_lower : 24; 50 50 /** Device. */ 51 u int8_t device;51 unsigned int device : 8; 52 52 /** 24:47 bits of LBA. */ 53 u int32_t lba_upper : 24;53 unsigned int lba_upper : 24; 54 54 /** Features - subcommand for set features - set tranfer mode - 0x03. */ 55 u int8_t features_upper;55 unsigned int features_upper : 8; 56 56 /** Sector count - transfer mode for set transfer mode operation. */ 57 u int16_t count;58 /** Reserved. */ 59 u int8_t reserved1;57 unsigned int count : 16; 58 /** Reserved. */ 59 unsigned int reserved1 : 8; 60 60 /** Control. */ 61 u int8_t control;62 /** Reserved. */ 63 u int32_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; 65 65 66 66 /** Command frame for NCQ data operation. */ … … 105 105 /** Reserved. */ 106 106 uint8_t reserved6; 107 } __attribute__((packed))ncq_command_frame_t;107 } ncq_command_frame_t; 108 108 109 109 /** Data returned from identify device and identify packet device command. */ … … 187 187 uint16_t _vs128[1 + 159 - 128]; 188 188 uint16_t reserved160[1 + 255 - 160]; 189 } __attribute__((packed))identify_data_t;189 } identify_data_t; 190 190 191 191 /** Capability bits for register device. */
Note:
See TracChangeset
for help on using the changeset viewer.