X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fscsi%2Flibsas.h;h=40e5fb93d6d8f44fe2bada5c0737f952c9582911;hb=8dfd783824a7f5b3b23574fecc99a41aa1c1198f;hp=6a308d42d98f4ea4402203f9e6e216ce21b2821b;hpb=c9a7fe9672612c0b595633d2945f52257ad92b20;p=pandora-kernel.git diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 6a308d42d98f..40e5fb93d6d8 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -159,9 +159,10 @@ enum ata_command_set { ATAPI_COMMAND_SET = 1, }; +#define ATA_RESP_FIS_SIZE 24 + struct sata_device { enum ata_command_set command_set; - struct smp_resp rps_resp; /* report_phy_sata_resp */ __le16 *identify_device; __le16 *identify_packet_device; @@ -170,10 +171,8 @@ struct sata_device { struct ata_port *ap; struct ata_host ata_host; - struct ata_taskfile tf; - u32 sstatus; - u32 serror; - u32 scontrol; + struct smp_resp rps_resp ____cacheline_aligned; /* report_phy_sata_resp */ + u8 fis[ATA_RESP_FIS_SIZE]; }; /* ---------- Domain device ---------- */ @@ -447,7 +446,10 @@ enum service_response { }; enum exec_status { - /* The SAM_STAT_.. codes fit in the lower 6 bits */ + /* The SAM_STAT_.. codes fit in the lower 6 bits, alias some of + * them here to silence 'case value not in enumerated type' warnings + */ + __SAM_STAT_CHECK_CONDITION = SAM_STAT_CHECK_CONDITION, SAS_DEV_NO_RESPONSE = 0x80, SAS_DATA_UNDERRUN, @@ -486,11 +488,7 @@ enum exec_status { */ struct ata_task_resp { u16 frame_len; - u8 ending_fis[24]; /* dev to host or data-in */ - u32 sstatus; - u32 serror; - u32 scontrol; - u32 sactive; + u8 ending_fis[ATA_RESP_FIS_SIZE]; /* dev to host or data-in */ }; #define SAS_STATUS_BUF_SIZE 96