aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorYang, Bo <Bo.Yang@lsi.com>2009-10-06 16:43:28 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-10-29 13:03:20 -0400
commitf4c9a1317d32bb0af7546ef0c1dcc3be52dc8d0a (patch)
tree2c0f83b914aaf34902365d244728d6a22808bfd7 /drivers/scsi/megaraid/megaraid_sas.h
parent7bebf5c79cb62766c76c6c1b9c77b86496fd363e (diff)
[SCSI] megaraid_sas: add the IEEE SGE support to SAS2 controller
To increase the performance, megaraid sas driver added the IEEE SGE support to support SAS2 controller. Signed-off-by Bo Yang<bo.yang@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index 4c78cd32e757..a1fd44bc1817 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -96,6 +96,7 @@
96#define MFI_FRAME_DIR_WRITE 0x0008 96#define MFI_FRAME_DIR_WRITE 0x0008
97#define MFI_FRAME_DIR_READ 0x0010 97#define MFI_FRAME_DIR_READ 0x0010
98#define MFI_FRAME_DIR_BOTH 0x0018 98#define MFI_FRAME_DIR_BOTH 0x0018
99#define MFI_FRAME_IEEE 0x0020
99 100
100/* 101/*
101 * Definition for cmd_status 102 * Definition for cmd_status
@@ -732,10 +733,17 @@ struct megasas_sge64 {
732 733
733} __attribute__ ((packed)); 734} __attribute__ ((packed));
734 735
736struct megasas_sge_skinny {
737 u64 phys_addr;
738 u32 length;
739 u32 flag;
740} __packed;
741
735union megasas_sgl { 742union megasas_sgl {
736 743
737 struct megasas_sge32 sge32[1]; 744 struct megasas_sge32 sge32[1];
738 struct megasas_sge64 sge64[1]; 745 struct megasas_sge64 sge64[1];
746 struct megasas_sge_skinny sge_skinny[1];
739 747
740} __attribute__ ((packed)); 748} __attribute__ ((packed));
741 749
@@ -1210,6 +1218,7 @@ struct megasas_instance {
1210 1218
1211 u8 flag; 1219 u8 flag;
1212 u8 unload; 1220 u8 unload;
1221 u8 flag_ieee;
1213 unsigned long last_time; 1222 unsigned long last_time;
1214 1223
1215 struct timer_list io_completion_timer; 1224 struct timer_list io_completion_timer;