diff options
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvfc.h')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.h b/drivers/scsi/ibmvscsi/ibmvfc.h index b21e071b9862..ca1dcf7a7568 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h | |||
@@ -29,10 +29,14 @@ | |||
29 | #include "viosrp.h" | 29 | #include "viosrp.h" |
30 | 30 | ||
31 | #define IBMVFC_NAME "ibmvfc" | 31 | #define IBMVFC_NAME "ibmvfc" |
32 | #define IBMVFC_DRIVER_VERSION "1.0.4" | 32 | #define IBMVFC_DRIVER_VERSION "1.0.5" |
33 | #define IBMVFC_DRIVER_DATE "(November 14, 2008)" | 33 | #define IBMVFC_DRIVER_DATE "(March 19, 2009)" |
34 | 34 | ||
35 | #define IBMVFC_DEFAULT_TIMEOUT 60 | 35 | #define IBMVFC_DEFAULT_TIMEOUT 60 |
36 | #define IBMVFC_ADISC_CANCEL_TIMEOUT 45 | ||
37 | #define IBMVFC_ADISC_TIMEOUT 15 | ||
38 | #define IBMVFC_ADISC_PLUS_CANCEL_TIMEOUT \ | ||
39 | (IBMVFC_ADISC_TIMEOUT + IBMVFC_ADISC_CANCEL_TIMEOUT) | ||
36 | #define IBMVFC_INIT_TIMEOUT 120 | 40 | #define IBMVFC_INIT_TIMEOUT 120 |
37 | #define IBMVFC_MAX_REQUESTS_DEFAULT 100 | 41 | #define IBMVFC_MAX_REQUESTS_DEFAULT 100 |
38 | 42 | ||
@@ -53,9 +57,9 @@ | |||
53 | * Ensure we have resources for ERP and initialization: | 57 | * Ensure we have resources for ERP and initialization: |
54 | * 1 for ERP | 58 | * 1 for ERP |
55 | * 1 for initialization | 59 | * 1 for initialization |
56 | * 1 for each discovery thread | 60 | * 2 for each discovery thread |
57 | */ | 61 | */ |
58 | #define IBMVFC_NUM_INTERNAL_REQ (1 + 1 + disc_threads) | 62 | #define IBMVFC_NUM_INTERNAL_REQ (1 + 1 + (disc_threads * 2)) |
59 | 63 | ||
60 | #define IBMVFC_MAD_SUCCESS 0x00 | 64 | #define IBMVFC_MAD_SUCCESS 0x00 |
61 | #define IBMVFC_MAD_NOT_SUPPORTED 0xF1 | 65 | #define IBMVFC_MAD_NOT_SUPPORTED 0xF1 |
@@ -585,10 +589,12 @@ struct ibmvfc_target { | |||
585 | enum ibmvfc_target_action action; | 589 | enum ibmvfc_target_action action; |
586 | int need_login; | 590 | int need_login; |
587 | int init_retries; | 591 | int init_retries; |
592 | u32 cancel_key; | ||
588 | struct ibmvfc_service_parms service_parms; | 593 | struct ibmvfc_service_parms service_parms; |
589 | struct ibmvfc_service_parms service_parms_change; | 594 | struct ibmvfc_service_parms service_parms_change; |
590 | struct fc_rport_identifiers ids; | 595 | struct fc_rport_identifiers ids; |
591 | void (*job_step) (struct ibmvfc_target *); | 596 | void (*job_step) (struct ibmvfc_target *); |
597 | struct timer_list timer; | ||
592 | struct kref kref; | 598 | struct kref kref; |
593 | }; | 599 | }; |
594 | 600 | ||
@@ -672,6 +678,7 @@ struct ibmvfc_host { | |||
672 | int task_set; | 678 | int task_set; |
673 | int init_retries; | 679 | int init_retries; |
674 | int discovery_threads; | 680 | int discovery_threads; |
681 | int abort_threads; | ||
675 | int client_migrated; | 682 | int client_migrated; |
676 | int reinit; | 683 | int reinit; |
677 | int delay_init; | 684 | int delay_init; |
@@ -684,6 +691,7 @@ struct ibmvfc_host { | |||
684 | char partition_name[97]; | 691 | char partition_name[97]; |
685 | void (*job_step) (struct ibmvfc_host *); | 692 | void (*job_step) (struct ibmvfc_host *); |
686 | struct task_struct *work_thread; | 693 | struct task_struct *work_thread; |
694 | struct tasklet_struct tasklet; | ||
687 | wait_queue_head_t init_wait_q; | 695 | wait_queue_head_t init_wait_q; |
688 | wait_queue_head_t work_wait_q; | 696 | wait_queue_head_t work_wait_q; |
689 | }; | 697 | }; |