aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-06-28 18:05:53 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:52 -0400
commit852809559e4680ba4768262a6c3d21454fcd460e (patch)
treea67170a9dd2a4c9f15d215f4b96e890cdb53a7e7 /drivers/scsi/isci/host.h
parent5076a1a97e2fa61c847a5fdd4b1991faf7716da6 (diff)
isci: unify isci_phy and scic_sds_phy
They are one in the same object so remove the distinction. The near duplicate fields (owning_port, and isci_port) will be cleaned up after the scic_sds_port isci_port unification. Reported-by: Christoph Hellwig <hch@lst.de> 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.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 0b26d25c19a9..1edd13535c24 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -101,14 +101,14 @@ struct scic_power_control {
101 * This field is an array of phys that we are waiting on. The phys are direct 101 * This field is an array of phys that we are waiting on. The phys are direct
102 * mapped into requesters via struct scic_sds_phy.phy_index 102 * mapped into requesters via struct scic_sds_phy.phy_index
103 */ 103 */
104 struct scic_sds_phy *requesters[SCI_MAX_PHYS]; 104 struct isci_phy *requesters[SCI_MAX_PHYS];
105 105
106}; 106};
107 107
108struct scic_sds_port_configuration_agent; 108struct scic_sds_port_configuration_agent;
109typedef void (*port_config_fn)(struct scic_sds_controller *, 109typedef void (*port_config_fn)(struct scic_sds_controller *,
110 struct scic_sds_port_configuration_agent *, 110 struct scic_sds_port_configuration_agent *,
111 struct scic_sds_port *, struct scic_sds_phy *); 111 struct scic_sds_port *, struct isci_phy *);
112 112
113struct scic_sds_port_configuration_agent { 113struct scic_sds_port_configuration_agent {
114 u16 phy_configured_mask; 114 u16 phy_configured_mask;
@@ -523,9 +523,8 @@ static inline struct device *scic_to_dev(struct scic_sds_controller *scic)
523 return &scic_to_ihost(scic)->pdev->dev; 523 return &scic_to_ihost(scic)->pdev->dev;
524} 524}
525 525
526static inline struct device *sciphy_to_dev(struct scic_sds_phy *sci_phy) 526static inline struct device *sciphy_to_dev(struct isci_phy *iphy)
527{ 527{
528 struct isci_phy *iphy = sci_phy_to_iphy(sci_phy);
529 528
530 if (!iphy || !iphy->isci_port || !iphy->isci_port->isci_host) 529 if (!iphy || !iphy->isci_port || !iphy->isci_port->isci_host)
531 return NULL; 530 return NULL;
@@ -606,21 +605,21 @@ struct isci_request *scic_request_by_tag(struct scic_sds_controller *scic,
606 605
607void scic_sds_controller_power_control_queue_insert( 606void scic_sds_controller_power_control_queue_insert(
608 struct scic_sds_controller *scic, 607 struct scic_sds_controller *scic,
609 struct scic_sds_phy *sci_phy); 608 struct isci_phy *iphy);
610 609
611void scic_sds_controller_power_control_queue_remove( 610void scic_sds_controller_power_control_queue_remove(
612 struct scic_sds_controller *scic, 611 struct scic_sds_controller *scic,
613 struct scic_sds_phy *sci_phy); 612 struct isci_phy *iphy);
614 613
615void scic_sds_controller_link_up( 614void scic_sds_controller_link_up(
616 struct scic_sds_controller *scic, 615 struct scic_sds_controller *scic,
617 struct scic_sds_port *sci_port, 616 struct scic_sds_port *sci_port,
618 struct scic_sds_phy *sci_phy); 617 struct isci_phy *iphy);
619 618
620void scic_sds_controller_link_down( 619void scic_sds_controller_link_down(
621 struct scic_sds_controller *scic, 620 struct scic_sds_controller *scic,
622 struct scic_sds_port *sci_port, 621 struct scic_sds_port *sci_port,
623 struct scic_sds_phy *sci_phy); 622 struct isci_phy *iphy);
624 623
625void scic_sds_controller_remote_device_stopped( 624void scic_sds_controller_remote_device_stopped(
626 struct scic_sds_controller *scic, 625 struct scic_sds_controller *scic,
@@ -651,7 +650,7 @@ void isci_host_deinit(
651void isci_host_port_link_up( 650void isci_host_port_link_up(
652 struct isci_host *, 651 struct isci_host *,
653 struct scic_sds_port *, 652 struct scic_sds_port *,
654 struct scic_sds_phy *); 653 struct isci_phy *);
655int isci_host_dev_found(struct domain_device *); 654int isci_host_dev_found(struct domain_device *);
656 655
657void isci_host_remote_device_start_complete( 656void isci_host_remote_device_start_complete(