diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2009-10-19 16:07:54 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:00:21 -0500 |
commit | d31429e1517c007781dfc68aed9b39cb5d3350a1 (patch) | |
tree | 27ded5e5e1ee28a3d24cdd25d11f99cea6bfbc6f /drivers/scsi/ibmvscsi/ibmvfc.h | |
parent | 4a5c4a5ed2b8b7fac68368e7ab8cb415dd006418 (diff) |
[SCSI] ibmvfc: Add FC Passthru support
Adds support for FC passthru via BSG.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvfc.h')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index 007fa1c9ef14..77513b4dd9ae 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h | |||
@@ -58,9 +58,10 @@ | |||
58 | * 1 for ERP | 58 | * 1 for ERP |
59 | * 1 for initialization | 59 | * 1 for initialization |
60 | * 1 for NPIV Logout | 60 | * 1 for NPIV Logout |
61 | * 2 for BSG passthru | ||
61 | * 2 for each discovery thread | 62 | * 2 for each discovery thread |
62 | */ | 63 | */ |
63 | #define IBMVFC_NUM_INTERNAL_REQ (1 + 1 + 1 + (disc_threads * 2)) | 64 | #define IBMVFC_NUM_INTERNAL_REQ (1 + 1 + 1 + 2 + (disc_threads * 2)) |
64 | 65 | ||
65 | #define IBMVFC_MAD_SUCCESS 0x00 | 66 | #define IBMVFC_MAD_SUCCESS 0x00 |
66 | #define IBMVFC_MAD_NOT_SUPPORTED 0xF1 | 67 | #define IBMVFC_MAD_NOT_SUPPORTED 0xF1 |
@@ -466,7 +467,10 @@ struct ibmvfc_passthru_iu { | |||
466 | u16 error; | 467 | u16 error; |
467 | u32 flags; | 468 | u32 flags; |
468 | #define IBMVFC_FC_ELS 0x01 | 469 | #define IBMVFC_FC_ELS 0x01 |
470 | #define IBMVFC_FC_CT_IU 0x02 | ||
469 | u32 cancel_key; | 471 | u32 cancel_key; |
472 | #define IBMVFC_PASSTHRU_CANCEL_KEY 0x80000000 | ||
473 | #define IBMVFC_INTERNAL_CANCEL_KEY 0x80000001 | ||
470 | u32 reserved; | 474 | u32 reserved; |
471 | struct srp_direct_buf cmd; | 475 | struct srp_direct_buf cmd; |
472 | struct srp_direct_buf rsp; | 476 | struct srp_direct_buf rsp; |
@@ -693,6 +697,7 @@ struct ibmvfc_host { | |||
693 | int disc_buf_sz; | 697 | int disc_buf_sz; |
694 | int log_level; | 698 | int log_level; |
695 | struct ibmvfc_discover_targets_buf *disc_buf; | 699 | struct ibmvfc_discover_targets_buf *disc_buf; |
700 | struct mutex passthru_mutex; | ||
696 | int task_set; | 701 | int task_set; |
697 | int init_retries; | 702 | int init_retries; |
698 | int discovery_threads; | 703 | int discovery_threads; |
@@ -702,6 +707,7 @@ struct ibmvfc_host { | |||
702 | int delay_init; | 707 | int delay_init; |
703 | int scan_complete; | 708 | int scan_complete; |
704 | int logged_in; | 709 | int logged_in; |
710 | int aborting_passthru; | ||
705 | int events_to_log; | 711 | int events_to_log; |
706 | #define IBMVFC_AE_LINKUP 0x0001 | 712 | #define IBMVFC_AE_LINKUP 0x0001 |
707 | #define IBMVFC_AE_LINKDOWN 0x0002 | 713 | #define IBMVFC_AE_LINKDOWN 0x0002 |