aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.h
diff options
context:
space:
mode:
authorAdam Gruchala <adam.gruchala@intel.com>2011-06-01 18:31:03 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:50 -0400
commitdbb0743a58825d94f1b3fdfa90a8d61dfef88f7b (patch)
treeb7a69335b9480fae3c12380e94f22e8cfa197595 /drivers/scsi/isci/host.h
parent12ef65444de9d387a383b9991960848bed5bbe74 (diff)
isci: Added support for C0 to SCU Driver
C0 silicon updates the pci revision id and requires new AFE parameters for phy signal integrity. Support for previous silicon revisions is deprecated (it's also broken for the theoretical case of multiple controllers at different silicon revisions, all the more reason to get it removed as soon as possible) Signed-off-by: Adam Gruchala <adam.gruchala@intel.com> [fixed up deprecated silicon support] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.h')
-rw-r--r--drivers/scsi/isci/host.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 4020cf7b6f2a..04698dd75ad6 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -675,6 +675,7 @@ enum {
675 ISCI_SI_REVA0, 675 ISCI_SI_REVA0,
676 ISCI_SI_REVA2, 676 ISCI_SI_REVA2,
677 ISCI_SI_REVB0, 677 ISCI_SI_REVB0,
678 ISCI_SI_REVC0
678}; 679};
679 680
680extern int isci_si_rev; 681extern int isci_si_rev;
@@ -691,7 +692,12 @@ static inline bool is_a2(void)
691 692
692static inline bool is_b0(void) 693static inline bool is_b0(void)
693{ 694{
694 return isci_si_rev > ISCI_SI_REVA2; 695 return isci_si_rev == ISCI_SI_REVB0;
696}
697
698static inline bool is_c0(void)
699{
700 return isci_si_rev > ISCI_SI_REVB0;
695} 701}
696 702
697void scic_sds_controller_post_request(struct scic_sds_controller *scic, 703void scic_sds_controller_post_request(struct scic_sds_controller *scic,