diff options
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.h')
-rw-r--r-- | drivers/scsi/mvsas/mv_sas.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h index 885858bcc40..77ddc7c1e5f 100644 --- a/drivers/scsi/mvsas/mv_sas.h +++ b/drivers/scsi/mvsas/mv_sas.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
40 | #include <linux/vmalloc.h> | 40 | #include <linux/vmalloc.h> |
41 | #include <scsi/libsas.h> | 41 | #include <scsi/libsas.h> |
42 | #include <scsi/scsi.h> | ||
42 | #include <scsi/scsi_tcq.h> | 43 | #include <scsi/scsi_tcq.h> |
43 | #include <scsi/sas_ata.h> | 44 | #include <scsi/sas_ata.h> |
44 | #include <linux/version.h> | 45 | #include <linux/version.h> |
@@ -49,7 +50,7 @@ | |||
49 | #define _MV_DUMP 0 | 50 | #define _MV_DUMP 0 |
50 | #define MVS_ID_NOT_MAPPED 0x7f | 51 | #define MVS_ID_NOT_MAPPED 0x7f |
51 | /* #define DISABLE_HOTPLUG_DMA_FIX */ | 52 | /* #define DISABLE_HOTPLUG_DMA_FIX */ |
52 | #define MAX_EXP_RUNNING_REQ 2 | 53 | // #define MAX_EXP_RUNNING_REQ 2 |
53 | #define WIDE_PORT_MAX_PHY 4 | 54 | #define WIDE_PORT_MAX_PHY 4 |
54 | #define MV_DISABLE_NCQ 0 | 55 | #define MV_DISABLE_NCQ 0 |
55 | #define mv_printk(fmt, arg ...) \ | 56 | #define mv_printk(fmt, arg ...) \ |
@@ -129,6 +130,7 @@ struct mvs_dispatch { | |||
129 | 130 | ||
130 | void (*get_sas_addr)(void *buf, u32 buflen); | 131 | void (*get_sas_addr)(void *buf, u32 buflen); |
131 | void (*command_active)(struct mvs_info *mvi, u32 slot_idx); | 132 | void (*command_active)(struct mvs_info *mvi, u32 slot_idx); |
133 | void (*clear_srs_irq)(struct mvs_info *mvi, u8 reg_set, u8 clear_all); | ||
132 | void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type, | 134 | void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type, |
133 | u32 tfs); | 135 | u32 tfs); |
134 | void (*start_delivery)(struct mvs_info *mvi, u32 tx); | 136 | void (*start_delivery)(struct mvs_info *mvi, u32 tx); |
@@ -236,9 +238,10 @@ struct mvs_device { | |||
236 | enum sas_dev_type dev_type; | 238 | enum sas_dev_type dev_type; |
237 | struct mvs_info *mvi_info; | 239 | struct mvs_info *mvi_info; |
238 | struct domain_device *sas_device; | 240 | struct domain_device *sas_device; |
241 | struct timer_list timer; | ||
239 | u32 attached_phy; | 242 | u32 attached_phy; |
240 | u32 device_id; | 243 | u32 device_id; |
241 | u32 runing_req; | 244 | u32 running_req; |
242 | u8 taskfileset; | 245 | u8 taskfileset; |
243 | u8 dev_status; | 246 | u8 dev_status; |
244 | u16 reserved; | 247 | u16 reserved; |
@@ -397,7 +400,9 @@ int mvs_lu_reset(struct domain_device *dev, u8 *lun); | |||
397 | int mvs_slot_complete(struct mvs_info *mvi, u32 rx_desc, u32 flags); | 400 | int mvs_slot_complete(struct mvs_info *mvi, u32 rx_desc, u32 flags); |
398 | int mvs_I_T_nexus_reset(struct domain_device *dev); | 401 | int mvs_I_T_nexus_reset(struct domain_device *dev); |
399 | int mvs_query_task(struct sas_task *task); | 402 | int mvs_query_task(struct sas_task *task); |
400 | void mvs_release_task(struct mvs_info *mvi, int phy_no, | 403 | void mvs_release_task(struct mvs_info *mvi, |
404 | struct domain_device *dev); | ||
405 | void mvs_do_release_task(struct mvs_info *mvi, int phy_no, | ||
401 | struct domain_device *dev); | 406 | struct domain_device *dev); |
402 | void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events); | 407 | void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events); |
403 | void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st); | 408 | void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st); |