aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.h
diff options
context:
space:
mode:
authorMichael Reed <mdr@sgi.com>2006-01-13 15:31:54 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2006-01-14 11:55:02 -0500
commit05e8ec17f4d11ba13795e878fc389cb04d1fdadd (patch)
tree0b7a7360e37be4851ce823450cabbce97bc28eea /drivers/message/fusion/mptbase.h
parentd158d26167a3f6a910ec3e0eda23cc0cd437c689 (diff)
[SCSI] mptfusion - fc transport attributes
Signed-off-by: Michael Reed <mdr@sgi.com> Signed-off-by: Eric Moore <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r--drivers/message/fusion/mptbase.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index 74355f2eca00..25f44064b96c 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -76,8 +76,8 @@
76#define COPYRIGHT "Copyright (c) 1999-2005 " MODULEAUTHOR 76#define COPYRIGHT "Copyright (c) 1999-2005 " MODULEAUTHOR
77#endif 77#endif
78 78
79#define MPT_LINUX_VERSION_COMMON "3.03.05" 79#define MPT_LINUX_VERSION_COMMON "3.03.06"
80#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.03.05" 80#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-3.03.06"
81#define WHAT_MAGIC_STRING "@" "(" "#" ")" 81#define WHAT_MAGIC_STRING "@" "(" "#" ")"
82 82
83#define show_mptmod_ver(s,ver) \ 83#define show_mptmod_ver(s,ver) \
@@ -499,6 +499,22 @@ typedef struct _RaidCfgData {
499 int isRaid; /* bit field, 1 if RAID */ 499 int isRaid; /* bit field, 1 if RAID */
500}RaidCfgData; 500}RaidCfgData;
501 501
502#define MPT_RPORT_INFO_FLAGS_REGISTERED 0x01 /* rport registered */
503#define MPT_RPORT_INFO_FLAGS_MISSING 0x02 /* missing from DevPage0 scan */
504#define MPT_RPORT_INFO_FLAGS_MAPPED_VDEV 0x04 /* target mapped in vdev */
505
506/*
507 * data allocated for each fc rport device
508 */
509struct mptfc_rport_info
510{
511 struct list_head list;
512 struct fc_rport *rport;
513 VirtDevice *vdev;
514 FCDevicePage0_t pg0;
515 u8 flags;
516};
517
502/* 518/*
503 * Adapter Structure - pci_dev specific. Maximum: MPT_MAX_ADAPTERS 519 * Adapter Structure - pci_dev specific. Maximum: MPT_MAX_ADAPTERS
504 */ 520 */
@@ -614,6 +630,13 @@ typedef struct _MPT_ADAPTER
614 struct list_head sas_topology; 630 struct list_head sas_topology;
615 struct mutex sas_topology_mutex; 631 struct mutex sas_topology_mutex;
616 MPT_SAS_MGMT sas_mgmt; 632 MPT_SAS_MGMT sas_mgmt;
633
634 struct list_head fc_rports;
635 spinlock_t fc_rport_lock; /* list and ri flags */
636 spinlock_t fc_rescan_work_lock;
637 int fc_rescan_work_count;
638 struct work_struct fc_rescan_work;
639
617} MPT_ADAPTER; 640} MPT_ADAPTER;
618 641
619/* 642/*
@@ -1000,6 +1023,7 @@ extern void mpt_free_fw_memory(MPT_ADAPTER *ioc);
1000extern int mpt_findImVolumes(MPT_ADAPTER *ioc); 1023extern int mpt_findImVolumes(MPT_ADAPTER *ioc);
1001extern int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc); 1024extern int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc);
1002extern int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode); 1025extern int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode);
1026extern int mptbase_GetFcPortPage0(MPT_ADAPTER *ioc, int portnum);
1003extern int mpt_alt_ioc_wait(MPT_ADAPTER *ioc); 1027extern int mpt_alt_ioc_wait(MPT_ADAPTER *ioc);
1004 1028
1005/* 1029/*