aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r--drivers/message/fusion/mptbase.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index 4720f9ae86aa..c537d71c18e4 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -49,7 +49,6 @@
49#define MPTBASE_H_INCLUDED 49#define MPTBASE_H_INCLUDED
50/*{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 50/*{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
51 51
52#include <linux/config.h>
53#include <linux/kernel.h> 52#include <linux/kernel.h>
54#include <linux/pci.h> 53#include <linux/pci.h>
55 54
@@ -76,8 +75,8 @@
76#define COPYRIGHT "Copyright (c) 1999-2005 " MODULEAUTHOR 75#define COPYRIGHT "Copyright (c) 1999-2005 " MODULEAUTHOR
77#endif 76#endif
78 77
79#define MPT_LINUX_VERSION_COMMON "3.03.10" 78#define MPT_LINUX_VERSION_COMMON "3.04.01"
80#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.03.10" 79#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.04.01"
81#define WHAT_MAGIC_STRING "@" "(" "#" ")" 80#define WHAT_MAGIC_STRING "@" "(" "#" ")"
82 81
83#define show_mptmod_ver(s,ver) \ 82#define show_mptmod_ver(s,ver) \
@@ -308,7 +307,8 @@ typedef struct _SYSIF_REGS
308 u32 HostIndex; /* 50 Host Index register */ 307 u32 HostIndex; /* 50 Host Index register */
309 u32 Reserved4[15]; /* 54-8F */ 308 u32 Reserved4[15]; /* 54-8F */
310 u32 Fubar; /* 90 For Fubar usage */ 309 u32 Fubar; /* 90 For Fubar usage */
311 u32 Reserved5[27]; /* 94-FF */ 310 u32 Reserved5[1050];/* 94-10F8 */
311 u32 Reset_1078; /* 10FC Reset 1078 */
312} SYSIF_REGS; 312} SYSIF_REGS;
313 313
314/* 314/*
@@ -342,6 +342,7 @@ typedef struct _VirtTarget {
342 u8 negoFlags; /* bit field, see above */ 342 u8 negoFlags; /* bit field, see above */
343 u8 raidVolume; /* set, if RAID Volume */ 343 u8 raidVolume; /* set, if RAID Volume */
344 u8 type; /* byte 0 of Inquiry data */ 344 u8 type; /* byte 0 of Inquiry data */
345 u8 deleted; /* target in process of being removed */
345 u32 num_luns; 346 u32 num_luns;
346 u32 luns[8]; /* Max LUNs is 256 */ 347 u32 luns[8]; /* Max LUNs is 256 */
347} VirtTarget; 348} VirtTarget;
@@ -362,6 +363,7 @@ typedef struct _VirtDevice {
362#define MPT_TARGET_FLAGS_VALID_56 0x10 363#define MPT_TARGET_FLAGS_VALID_56 0x10
363#define MPT_TARGET_FLAGS_SAF_TE_ISSUED 0x20 364#define MPT_TARGET_FLAGS_SAF_TE_ISSUED 0x20
364#define MPT_TARGET_FLAGS_RAID_COMPONENT 0x40 365#define MPT_TARGET_FLAGS_RAID_COMPONENT 0x40
366#define MPT_TARGET_FLAGS_LED_ON 0x80
365 367
366/* 368/*
367 * /proc/mpt interface 369 * /proc/mpt interface
@@ -630,15 +632,14 @@ typedef struct _MPT_ADAPTER
630 struct mutex sas_discovery_mutex; 632 struct mutex sas_discovery_mutex;
631 u8 sas_discovery_runtime; 633 u8 sas_discovery_runtime;
632 u8 sas_discovery_ignore_events; 634 u8 sas_discovery_ignore_events;
635 u16 handle;
633 int sas_index; /* index refrencing */ 636 int sas_index; /* index refrencing */
634 MPT_SAS_MGMT sas_mgmt; 637 MPT_SAS_MGMT sas_mgmt;
635 int num_ports; 638 struct work_struct sas_persist_task;
636 struct work_struct mptscsih_persistTask;
637 639
638 struct work_struct fc_setup_reset_work; 640 struct work_struct fc_setup_reset_work;
639 struct list_head fc_rports; 641 struct list_head fc_rports;
640 spinlock_t fc_rescan_work_lock; 642 spinlock_t fc_rescan_work_lock;
641 int fc_rescan_work_count;
642 struct work_struct fc_rescan_work; 643 struct work_struct fc_rescan_work;
643 char fc_rescan_work_q_name[KOBJ_NAME_LEN]; 644 char fc_rescan_work_q_name[KOBJ_NAME_LEN];
644 struct workqueue_struct *fc_rescan_work_q; 645 struct workqueue_struct *fc_rescan_work_q;
@@ -893,6 +894,13 @@ typedef struct _mpt_sge {
893#define DBG_DUMP_REQUEST_FRAME_HDR(mfp) 894#define DBG_DUMP_REQUEST_FRAME_HDR(mfp)
894#endif 895#endif
895 896
897// debug sas wide ports
898#ifdef MPT_DEBUG_SAS_WIDE
899#define dsaswideprintk(x) printk x
900#else
901#define dsaswideprintk(x)
902#endif
903
896 904
897/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 905/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
898 906
@@ -972,7 +980,7 @@ typedef struct _MPT_SCSI_HOST {
972 wait_queue_head_t scandv_waitq; 980 wait_queue_head_t scandv_waitq;
973 int scandv_wait_done; 981 int scandv_wait_done;
974 long last_queue_full; 982 long last_queue_full;
975 u8 mpt_pq_filter; 983 u16 tm_iocstatus;
976} MPT_SCSI_HOST; 984} MPT_SCSI_HOST;
977 985
978/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 986/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/