aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrman@de.ibm.com>2006-05-22 12:18:19 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-28 12:43:33 -0400
commit06506d00ec1a0d7d3b1dff59185af355ce29ac0a (patch)
treefef406818d1bccd745913ece2df0dbcee16ec74a /drivers/s390/scsi/zfcp_def.h
parentec4081c6ba4fba6a8bc12a0e93db8817ba63ce47 (diff)
[SCSI] zfcp: (cleanup) removed superfluous macros, struct members, typedefs
Removed some macros, struct members and typedefs which were unused or not necessary. Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h47
1 files changed, 6 insertions, 41 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 362af4d95352..e93272f18827 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -39,7 +39,6 @@
39#include <scsi/scsi_host.h> 39#include <scsi/scsi_host.h>
40#include <scsi/scsi_transport.h> 40#include <scsi/scsi_transport.h>
41#include <scsi/scsi_transport_fc.h> 41#include <scsi/scsi_transport_fc.h>
42#include "../../fc4/fc.h"
43#include "zfcp_fsf.h" 42#include "zfcp_fsf.h"
44#include <asm/ccwdev.h> 43#include <asm/ccwdev.h>
45#include <asm/qdio.h> 44#include <asm/qdio.h>
@@ -78,13 +77,9 @@ zfcp_address_to_sg(void *address, struct scatterlist *list)
78 list->offset = ((unsigned long) address) & (PAGE_SIZE - 1); 77 list->offset = ((unsigned long) address) & (PAGE_SIZE - 1);
79} 78}
80 79
81/********************* SCSI SPECIFIC DEFINES *********************************/ 80#define REQUEST_LIST_SIZE 128
82
83/* 32 bit for SCSI ID and LUN as long as the SCSI stack uses this type */
84typedef u32 scsi_id_t;
85typedef u32 scsi_lun_t;
86 81
87#define ZFCP_ERP_SCSI_LOW_MEM_TIMEOUT (100*HZ) 82/********************* SCSI SPECIFIC DEFINES *********************************/
88#define ZFCP_SCSI_ER_TIMEOUT (100*HZ) 83#define ZFCP_SCSI_ER_TIMEOUT (100*HZ)
89 84
90/********************* CIO/QDIO SPECIFIC DEFINES *****************************/ 85/********************* CIO/QDIO SPECIFIC DEFINES *****************************/
@@ -222,8 +217,9 @@ struct fcp_rsp_iu {
222#define RSP_CODE_TASKMAN_FAILED 5 217#define RSP_CODE_TASKMAN_FAILED 5
223 218
224/* see fc-fs */ 219/* see fc-fs */
225#define LS_FAN 0x60000000 220#define LS_RSCN 0x61040000
226#define LS_RSCN 0x61040000 221#define LS_LOGO 0x05000000
222#define LS_PLOGI 0x03000000
227 223
228struct fcp_rscn_head { 224struct fcp_rscn_head {
229 u8 command; 225 u8 command;
@@ -252,13 +248,6 @@ struct fcp_rscn_element {
252#define ZFCP_NO_PORTS_PER_DOMAIN 0x10000 248#define ZFCP_NO_PORTS_PER_DOMAIN 0x10000
253#define ZFCP_NO_PORTS_PER_FABRIC 0x1000000 249#define ZFCP_NO_PORTS_PER_FABRIC 0x1000000
254 250
255struct fcp_fan {
256 u32 command;
257 u32 fport_did;
258 wwn_t fport_wwpn;
259 wwn_t fport_wwname;
260} __attribute__((packed));
261
262/* see fc-ph */ 251/* see fc-ph */
263struct fcp_logo { 252struct fcp_logo {
264 u32 command; 253 u32 command;
@@ -496,9 +485,6 @@ struct zfcp_rc_entry {
496 485
497#define ZFCP_NAME "zfcp" 486#define ZFCP_NAME "zfcp"
498 487
499/* read-only LUN sharing switch initial value */
500#define ZFCP_RO_LUN_SHARING_DEFAULTS 0
501
502/* independent log areas */ 488/* independent log areas */
503#define ZFCP_LOG_AREA_OTHER 0 489#define ZFCP_LOG_AREA_OTHER 0
504#define ZFCP_LOG_AREA_SCSI 1 490#define ZFCP_LOG_AREA_SCSI 1
@@ -597,7 +583,6 @@ do { \
597 * and unit 583 * and unit
598 */ 584 */
599#define ZFCP_COMMON_FLAGS 0xfff00000 585#define ZFCP_COMMON_FLAGS 0xfff00000
600#define ZFCP_SPECIFIC_FLAGS 0x000fffff
601 586
602/* common status bits */ 587/* common status bits */
603#define ZFCP_STATUS_COMMON_REMOVE 0x80000000 588#define ZFCP_STATUS_COMMON_REMOVE 0x80000000
@@ -622,11 +607,6 @@ do { \
622#define ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED 0x00000200 607#define ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED 0x00000200
623#define ZFCP_STATUS_ADAPTER_XPORT_OK 0x00000800 608#define ZFCP_STATUS_ADAPTER_XPORT_OK 0x00000800
624 609
625#define ZFCP_STATUS_ADAPTER_SCSI_UP \
626 (ZFCP_STATUS_COMMON_UNBLOCKED | \
627 ZFCP_STATUS_ADAPTER_REGISTERED)
628
629
630/* FC-PH/FC-GS well-known address identifiers for generic services */ 610/* FC-PH/FC-GS well-known address identifiers for generic services */
631#define ZFCP_DID_MANAGEMENT_SERVICE 0xFFFFFA 611#define ZFCP_DID_MANAGEMENT_SERVICE 0xFFFFFA
632#define ZFCP_DID_TIME_SERVICE 0xFFFFFB 612#define ZFCP_DID_TIME_SERVICE 0xFFFFFB
@@ -641,7 +621,6 @@ do { \
641#define ZFCP_STATUS_PORT_NO_WWPN 0x00000008 621#define ZFCP_STATUS_PORT_NO_WWPN 0x00000008
642#define ZFCP_STATUS_PORT_NO_SCSI_ID 0x00000010 622#define ZFCP_STATUS_PORT_NO_SCSI_ID 0x00000010
643#define ZFCP_STATUS_PORT_INVALID_WWPN 0x00000020 623#define ZFCP_STATUS_PORT_INVALID_WWPN 0x00000020
644#define ZFCP_STATUS_PORT_ACCESS_DENIED 0x00000040
645 624
646/* for ports with well known addresses */ 625/* for ports with well known addresses */
647#define ZFCP_STATUS_PORT_WKA \ 626#define ZFCP_STATUS_PORT_WKA \
@@ -897,15 +876,12 @@ struct zfcp_adapter {
897 wwn_t peer_wwpn; /* P2P peer WWPN */ 876 wwn_t peer_wwpn; /* P2P peer WWPN */
898 u32 peer_d_id; /* P2P peer D_ID */ 877 u32 peer_d_id; /* P2P peer D_ID */
899 struct ccw_device *ccw_device; /* S/390 ccw device */ 878 struct ccw_device *ccw_device; /* S/390 ccw device */
900 u8 fc_service_class;
901 u32 hydra_version; /* Hydra version */ 879 u32 hydra_version; /* Hydra version */
902 u32 fsf_lic_version; 880 u32 fsf_lic_version;
903 u32 adapter_features; /* FCP channel features */ 881 u32 adapter_features; /* FCP channel features */
904 u32 connection_features; /* host connection features */ 882 u32 connection_features; /* host connection features */
905 u32 hardware_version; /* of FCP channel */ 883 u32 hardware_version; /* of FCP channel */
906 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */ 884 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */
907 unsigned short scsi_host_no; /* Assigned host number */
908 unsigned char name[9];
909 struct list_head port_list_head; /* remote port list */ 885 struct list_head port_list_head; /* remote port list */
910 struct list_head port_remove_lh; /* head of ports to be 886 struct list_head port_remove_lh; /* head of ports to be
911 removed */ 887 removed */
@@ -997,7 +973,7 @@ struct zfcp_unit {
997 refcount drop to zero */ 973 refcount drop to zero */
998 struct zfcp_port *port; /* remote port of unit */ 974 struct zfcp_port *port; /* remote port of unit */
999 atomic_t status; /* status of this logical unit */ 975 atomic_t status; /* status of this logical unit */
1000 scsi_lun_t scsi_lun; /* own SCSI LUN */ 976 unsigned int scsi_lun; /* own SCSI LUN */
1001 fcp_lun_t fcp_lun; /* own FCP_LUN */ 977 fcp_lun_t fcp_lun; /* own FCP_LUN */
1002 u32 handle; /* handle assigned by FSF */ 978 u32 handle; /* handle assigned by FSF */
1003 struct scsi_device *device; /* scsi device struct pointer */ 979 struct scsi_device *device; /* scsi device struct pointer */
@@ -1041,11 +1017,6 @@ struct zfcp_data {
1041 struct list_head adapter_list_head; /* head of adapter list */ 1017 struct list_head adapter_list_head; /* head of adapter list */
1042 struct list_head adapter_remove_lh; /* head of adapters to be 1018 struct list_head adapter_remove_lh; /* head of adapters to be
1043 removed */ 1019 removed */
1044 rwlock_t status_read_lock; /* for status read thread */
1045 struct list_head status_read_receive_head;
1046 struct list_head status_read_send_head;
1047 struct semaphore status_read_sema;
1048 wait_queue_head_t status_read_thread_wqh;
1049 u32 adapters; /* # of adapters in list */ 1020 u32 adapters; /* # of adapters in list */
1050 rwlock_t config_lock; /* serialises changes 1021 rwlock_t config_lock; /* serialises changes
1051 to adapter/port/unit 1022 to adapter/port/unit
@@ -1084,9 +1055,6 @@ struct zfcp_fsf_req_pool_element {
1084 1055
1085/********************** ZFCP SPECIFIC DEFINES ********************************/ 1056/********************** ZFCP SPECIFIC DEFINES ********************************/
1086 1057
1087#define ZFCP_FSFREQ_CLEANUP_TIMEOUT HZ/10
1088
1089#define ZFCP_KNOWN 0x00000001
1090#define ZFCP_REQ_AUTO_CLEANUP 0x00000002 1058#define ZFCP_REQ_AUTO_CLEANUP 0x00000002
1091#define ZFCP_WAIT_FOR_SBAL 0x00000004 1059#define ZFCP_WAIT_FOR_SBAL 0x00000004
1092#define ZFCP_REQ_NO_QTCB 0x00000008 1060#define ZFCP_REQ_NO_QTCB 0x00000008
@@ -1094,9 +1062,6 @@ struct zfcp_fsf_req_pool_element {
1094#define ZFCP_SET 0x00000100 1062#define ZFCP_SET 0x00000100
1095#define ZFCP_CLEAR 0x00000200 1063#define ZFCP_CLEAR 0x00000200
1096 1064
1097#define ZFCP_INTERRUPTIBLE 1
1098#define ZFCP_UNINTERRUPTIBLE 0
1099
1100#ifndef atomic_test_mask 1065#ifndef atomic_test_mask
1101#define atomic_test_mask(mask, target) \ 1066#define atomic_test_mask(mask, target) \
1102 ((atomic_read(target) & mask) == mask) 1067 ((atomic_read(target) & mask) == mask)