diff options
Diffstat (limited to 'drivers/scsi/aacraid/aacraid.h')
-rw-r--r-- | drivers/scsi/aacraid/aacraid.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 42484417cef7..4ab07861b457 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h | |||
@@ -15,11 +15,7 @@ | |||
15 | #define AAC_MAX_LUN (8) | 15 | #define AAC_MAX_LUN (8) |
16 | 16 | ||
17 | #define AAC_MAX_HOSTPHYSMEMPAGES (0xfffff) | 17 | #define AAC_MAX_HOSTPHYSMEMPAGES (0xfffff) |
18 | /* | 18 | #define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)512) |
19 | * max_sectors is an unsigned short, otherwise limit is 0x100000000 / 512 | ||
20 | * Linux has starvation problems if we permit larger than 4MB I/O ... | ||
21 | */ | ||
22 | #define AAC_MAX_32BIT_SGBCOUNT ((unsigned short)8192) | ||
23 | 19 | ||
24 | /* | 20 | /* |
25 | * These macros convert from physical channels to virtual channels | 21 | * These macros convert from physical channels to virtual channels |
@@ -845,6 +841,28 @@ struct aac_supplement_adapter_info | |||
845 | #define AAC_SIS_VERSION_V3 3 | 841 | #define AAC_SIS_VERSION_V3 3 |
846 | #define AAC_SIS_SLOT_UNKNOWN 0xFF | 842 | #define AAC_SIS_SLOT_UNKNOWN 0xFF |
847 | 843 | ||
844 | #define GetBusInfo 0x00000009 | ||
845 | struct aac_bus_info { | ||
846 | __le32 Command; /* VM_Ioctl */ | ||
847 | __le32 ObjType; /* FT_DRIVE */ | ||
848 | __le32 MethodId; /* 1 = SCSI Layer */ | ||
849 | __le32 ObjectId; /* Handle */ | ||
850 | __le32 CtlCmd; /* GetBusInfo */ | ||
851 | }; | ||
852 | |||
853 | struct aac_bus_info_response { | ||
854 | __le32 Status; /* ST_OK */ | ||
855 | __le32 ObjType; | ||
856 | __le32 MethodId; /* unused */ | ||
857 | __le32 ObjectId; /* unused */ | ||
858 | __le32 CtlCmd; /* unused */ | ||
859 | __le32 ProbeComplete; | ||
860 | __le32 BusCount; | ||
861 | __le32 TargetsPerBus; | ||
862 | u8 InitiatorBusId[10]; | ||
863 | u8 BusValid[10]; | ||
864 | }; | ||
865 | |||
848 | /* | 866 | /* |
849 | * Battery platforms | 867 | * Battery platforms |
850 | */ | 868 | */ |
@@ -934,6 +952,8 @@ struct aac_dev | |||
934 | 952 | ||
935 | struct Scsi_Host *scsi_host_ptr; | 953 | struct Scsi_Host *scsi_host_ptr; |
936 | int maximum_num_containers; | 954 | int maximum_num_containers; |
955 | int maximum_num_physicals; | ||
956 | int maximum_num_channels; | ||
937 | struct fsa_dev_info *fsa_dev; | 957 | struct fsa_dev_info *fsa_dev; |
938 | pid_t thread_pid; | 958 | pid_t thread_pid; |
939 | int cardtype; | 959 | int cardtype; |