diff options
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_sas.h')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_sas.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index 7f064f9ca828..bdb6b27dedd6 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <linux/dma-mapping.h> | 50 | #include <linux/dma-mapping.h> |
51 | #include <linux/pci.h> | 51 | #include <linux/pci.h> |
52 | #include <linux/interrupt.h> | 52 | #include <linux/interrupt.h> |
53 | #include <linux/workqueue.h> | ||
53 | #include <scsi/libsas.h> | 54 | #include <scsi/libsas.h> |
54 | #include <scsi/scsi_tcq.h> | 55 | #include <scsi/scsi_tcq.h> |
55 | #include <scsi/sas_ata.h> | 56 | #include <scsi/sas_ata.h> |
@@ -379,18 +380,16 @@ struct pm8001_hba_info { | |||
379 | #ifdef PM8001_USE_TASKLET | 380 | #ifdef PM8001_USE_TASKLET |
380 | struct tasklet_struct tasklet; | 381 | struct tasklet_struct tasklet; |
381 | #endif | 382 | #endif |
382 | struct list_head wq_list; | ||
383 | u32 logging_level; | 383 | u32 logging_level; |
384 | u32 fw_status; | 384 | u32 fw_status; |
385 | const struct firmware *fw_image; | 385 | const struct firmware *fw_image; |
386 | }; | 386 | }; |
387 | 387 | ||
388 | struct pm8001_wq { | 388 | struct pm8001_work { |
389 | struct delayed_work work_q; | 389 | struct work_struct work; |
390 | struct pm8001_hba_info *pm8001_ha; | 390 | struct pm8001_hba_info *pm8001_ha; |
391 | void *data; | 391 | void *data; |
392 | int handler; | 392 | int handler; |
393 | struct list_head entry; | ||
394 | }; | 393 | }; |
395 | 394 | ||
396 | struct pm8001_fw_image_header { | 395 | struct pm8001_fw_image_header { |
@@ -460,6 +459,9 @@ struct fw_control_ex { | |||
460 | void *param3; | 459 | void *param3; |
461 | }; | 460 | }; |
462 | 461 | ||
462 | /* pm8001 workqueue */ | ||
463 | extern struct workqueue_struct *pm8001_wq; | ||
464 | |||
463 | /******************** function prototype *********************/ | 465 | /******************** function prototype *********************/ |
464 | int pm8001_tag_alloc(struct pm8001_hba_info *pm8001_ha, u32 *tag_out); | 466 | int pm8001_tag_alloc(struct pm8001_hba_info *pm8001_ha, u32 *tag_out); |
465 | void pm8001_tag_init(struct pm8001_hba_info *pm8001_ha); | 467 | void pm8001_tag_init(struct pm8001_hba_info *pm8001_ha); |