diff options
author | Michael Reed <mdr@sgi.com> | 2006-01-13 15:31:54 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-14 11:55:02 -0500 |
commit | 05e8ec17f4d11ba13795e878fc389cb04d1fdadd (patch) | |
tree | 0b7a7360e37be4851ce823450cabbce97bc28eea /drivers/message/fusion/mptbase.h | |
parent | d158d26167a3f6a910ec3e0eda23cc0cd437c689 (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.h | 28 |
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 | */ | ||
509 | struct 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); | |||
1000 | extern int mpt_findImVolumes(MPT_ADAPTER *ioc); | 1023 | extern int mpt_findImVolumes(MPT_ADAPTER *ioc); |
1001 | extern int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc); | 1024 | extern int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc); |
1002 | extern int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode); | 1025 | extern int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode); |
1026 | extern int mptbase_GetFcPortPage0(MPT_ADAPTER *ioc, int portnum); | ||
1003 | extern int mpt_alt_ioc_wait(MPT_ADAPTER *ioc); | 1027 | extern int mpt_alt_ioc_wait(MPT_ADAPTER *ioc); |
1004 | 1028 | ||
1005 | /* | 1029 | /* |