~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/scsi/mvsas/mv_sas.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <linux/platform_device.h>
37
37
#include <linux/interrupt.h>
38
38
#include <linux/irq.h>
 
39
#include <linux/slab.h>
39
40
#include <linux/vmalloc.h>
40
41
#include <scsi/libsas.h>
 
42
#include <scsi/scsi.h>
41
43
#include <scsi/scsi_tcq.h>
42
44
#include <scsi/sas_ata.h>
43
45
#include <linux/version.h>
48
50
#define _MV_DUMP                0
49
51
#define MVS_ID_NOT_MAPPED       0x7f
50
52
/* #define DISABLE_HOTPLUG_DMA_FIX */
51
 
#define MAX_EXP_RUNNING_REQ     2
 
53
// #define MAX_EXP_RUNNING_REQ  2
52
54
#define WIDE_PORT_MAX_PHY               4
53
55
#define MV_DISABLE_NCQ  0
54
56
#define mv_printk(fmt, arg ...) \
128
130
 
129
131
        void (*get_sas_addr)(void *buf, u32 buflen);
130
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);
131
134
        void (*issue_stop)(struct mvs_info *mvi, enum mvs_port_type type,
132
135
                                u32 tfs);
133
136
        void (*start_delivery)(struct mvs_info *mvi, u32 tx);
235
238
        enum sas_dev_type dev_type;
236
239
        struct mvs_info *mvi_info;
237
240
        struct domain_device *sas_device;
 
241
        struct timer_list timer;
238
242
        u32 attached_phy;
239
243
        u32 device_id;
240
 
        u32 runing_req;
 
244
        u32 running_req;
241
245
        u8 taskfileset;
242
246
        u8 dev_status;
243
247
        u16 reserved;
396
400
int mvs_slot_complete(struct mvs_info *mvi, u32 rx_desc, u32 flags);
397
401
int mvs_I_T_nexus_reset(struct domain_device *dev);
398
402
int mvs_query_task(struct sas_task *task);
399
 
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,
400
406
                        struct domain_device *dev);
401
407
void mvs_int_port(struct mvs_info *mvi, int phy_no, u32 events);
402
408
void mvs_update_phyinfo(struct mvs_info *mvi, int i, int get_st);