diff options
author | Mark Langsdorf <mark.langsdorf@gmail.com> | 2015-06-05 00:58:45 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-12 16:52:32 -0400 |
commit | 2b42c9317db730170ba8e1eb1c0417955c6e68bb (patch) | |
tree | 299da4279fa0cccc9d5fb74d247fb7bd0e39d28e /include/scsi.h | |
parent | 35df89319901f948a9d32d1114004414346e507f (diff) | |
download | u-boot-imx-2b42c9317db730170ba8e1eb1c0417955c6e68bb.zip u-boot-imx-2b42c9317db730170ba8e1eb1c0417955c6e68bb.tar.gz u-boot-imx-2b42c9317db730170ba8e1eb1c0417955c6e68bb.tar.bz2 |
ahci: support LBA48 data reads for 2+TB drives
Enable full 48-bit LBA48 data reads by passing the upper word of the
LBA block pointer in bytes 9 and 10 of the FIS.
This allows uboot to load data from any arbitrary sector on a drive
with 2 or more TB of available data connected to an AHCI controller.
Signed-off-by: Mark Langsdorf <mark.langsdorf@gmail.com>
Signed-off-by: Andre Przywara <osp@andrep.de>
[trini: Make use of CONFIG_SYS_64BIT_LBA in a few places to drop
warnings on platforms that don't enable that feature ]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/scsi.h')
-rw-r--r-- | include/scsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h index 73de7b7..7e37591 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -132,6 +132,7 @@ typedef struct SCSI_cmd_block{ #define SCSI_MED_REMOVL 0x1E /* Prevent/Allow medium Removal (O) */ #define SCSI_READ6 0x08 /* Read 6-byte (MANDATORY) */ #define SCSI_READ10 0x28 /* Read 10-byte (MANDATORY) */ +#define SCSI_READ16 0x48 #define SCSI_RD_CAPAC 0x25 /* Read Capacity (MANDATORY) */ #define SCSI_RD_CAPAC10 SCSI_RD_CAPAC /* Read Capacity (10) */ #define SCSI_RD_CAPAC16 0x9e /* Read Capacity (16) */ |