aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas/mv_sas.h
diff options
context:
space:
mode:
authorXiangliang Yu <yuxiangl@marvell.com>2011-05-24 10:35:09 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-07-26 02:35:36 -0400
commitb89e8f539ff8bcf2a1464578fa91cb96cc433fc3 (patch)
treedd606756dfd8fb4a35f1c0921270970a94031efc /drivers/scsi/mvsas/mv_sas.h
parent8882f081329a82737b7471b97e59ce8c407f6655 (diff)
[SCSI] mvsas: Remove unused macros, variables and functions
Remove unused macros: VSR_PHY_VS0, VSR_PHY_VS1, MVS_SLOTS, MVS_CAN_QUEUE, MVS_MSI, SG_MX, _MV_DUMP, MV_DISABLE_NCQ Remove unused variables for mvs_info: irq, exp_req, cmd_size Remove unused functions: mvs_get_sas_addr, mvs_hexdump, mvs_hba_sb_dump, mvs_hab_memory_dump, mvs_hba_cq_dump Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.h')
-rw-r--r--drivers/scsi/mvsas/mv_sas.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h
index 5cfa4cc18f2d..4f8caaf748f1 100644
--- a/drivers/scsi/mvsas/mv_sas.h
+++ b/drivers/scsi/mvsas/mv_sas.h
@@ -48,12 +48,8 @@
48 48
49#define DRV_NAME "mvsas" 49#define DRV_NAME "mvsas"
50#define DRV_VERSION "0.8.2" 50#define DRV_VERSION "0.8.2"
51#define _MV_DUMP 0
52#define MVS_ID_NOT_MAPPED 0x7f 51#define MVS_ID_NOT_MAPPED 0x7f
53/* #define DISABLE_HOTPLUG_DMA_FIX */
54// #define MAX_EXP_RUNNING_REQ 2
55#define WIDE_PORT_MAX_PHY 4 52#define WIDE_PORT_MAX_PHY 4
56#define MV_DISABLE_NCQ 0
57#define mv_printk(fmt, arg ...) \ 53#define mv_printk(fmt, arg ...) \
58 printk(KERN_DEBUG"%s %d:" fmt, __FILE__, __LINE__, ## arg) 54 printk(KERN_DEBUG"%s %d:" fmt, __FILE__, __LINE__, ## arg)
59#ifdef MV_DEBUG 55#ifdef MV_DEBUG
@@ -131,7 +127,6 @@ struct mvs_dispatch {
131 u32 (*read_port_irq_mask)(struct mvs_info *mvi, u32 port); 127 u32 (*read_port_irq_mask)(struct mvs_info *mvi, u32 port);
132 void (*write_port_irq_mask)(struct mvs_info *mvi, u32 port, u32 val); 128 void (*write_port_irq_mask)(struct mvs_info *mvi, u32 port, u32 val);
133 129
134 void (*get_sas_addr)(void *buf, u32 buflen);
135 void (*command_active)(struct mvs_info *mvi, u32 slot_idx); 130 void (*command_active)(struct mvs_info *mvi, u32 slot_idx);
136 void (*clear_srs_irq)(struct mvs_info *mvi, u8 reg_set, u8 clear_all); 131 void (*clear_srs_irq)(struct mvs_info *mvi, u8 reg_set, u8 clear_all);
137 void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type, 132 void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type,
@@ -333,9 +328,6 @@ struct mvs_slot_info {
333 */ 328 */
334 void *buf; 329 void *buf;
335 dma_addr_t buf_dma; 330 dma_addr_t buf_dma;
336#if _MV_DUMP
337 u32 cmd_size;
338#endif
339 void *response; 331 void *response;
340 struct mvs_port *port; 332 struct mvs_port *port;
341 struct mvs_device *device; 333 struct mvs_device *device;
@@ -389,12 +381,10 @@ struct mvs_info {
389 const struct mvs_chip_info *chip; 381 const struct mvs_chip_info *chip;
390 382
391 int tags_num; 383 int tags_num;
392 DECLARE_BITMAP(tags, MVS_SLOTS); 384 unsigned long *tags;
393 /* further per-slot information */ 385 /* further per-slot information */
394 struct mvs_phy phy[MVS_MAX_PHYS]; 386 struct mvs_phy phy[MVS_MAX_PHYS];
395 struct mvs_port port[MVS_MAX_PHYS]; 387 struct mvs_port port[MVS_MAX_PHYS];
396 u32 irq;
397 u32 exp_req;
398 u32 id; 388 u32 id;
399 u64 sata_reg_set; 389 u64 sata_reg_set;
400 struct list_head *hba_list; 390 struct list_head *hba_list;
@@ -485,7 +475,6 @@ void mvs_do_release_task(struct mvs_info *mvi, int phy_no,
485void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events); 475void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events);
486void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st); 476void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st);
487int mvs_int_rx(struct mvs_info *mvi, bool self_clear); 477int mvs_int_rx(struct mvs_info *mvi, bool self_clear);
488void mvs_hexdump(u32 size, u8 *data, u32 baseaddr);
489struct mvs_device *mvs_find_dev_by_reg_set(struct mvs_info *mvi, u8 reg_set); 478struct mvs_device *mvs_find_dev_by_reg_set(struct mvs_info *mvi, u8 reg_set);
490#endif 479#endif
491 480