diff options
Diffstat (limited to 'drivers/scsi/isci/phy.h')
-rw-r--r-- | drivers/scsi/isci/phy.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/scsi/isci/phy.h b/drivers/scsi/isci/phy.h index 19aa444517b4..5d2c1b4906a3 100644 --- a/drivers/scsi/isci/phy.h +++ b/drivers/scsi/isci/phy.h | |||
@@ -76,7 +76,7 @@ | |||
76 | */ | 76 | */ |
77 | #define SCIC_SDS_SATA_LINK_TRAINING_TIMEOUT 250 | 77 | #define SCIC_SDS_SATA_LINK_TRAINING_TIMEOUT 250 |
78 | 78 | ||
79 | enum scic_sds_phy_protocol { | 79 | enum sci_phy_protocol { |
80 | SCIC_SDS_PHY_PROTOCOL_UNKNOWN, | 80 | SCIC_SDS_PHY_PROTOCOL_UNKNOWN, |
81 | SCIC_SDS_PHY_PROTOCOL_SAS, | 81 | SCIC_SDS_PHY_PROTOCOL_SAS, |
82 | SCIC_SDS_PHY_PROTOCOL_SATA, | 82 | SCIC_SDS_PHY_PROTOCOL_SATA, |
@@ -95,7 +95,7 @@ struct isci_phy { | |||
95 | struct sci_base_state_machine sm; | 95 | struct sci_base_state_machine sm; |
96 | struct isci_port *owning_port; | 96 | struct isci_port *owning_port; |
97 | enum sas_linkrate max_negotiated_speed; | 97 | enum sas_linkrate max_negotiated_speed; |
98 | enum scic_sds_phy_protocol protocol; | 98 | enum sci_phy_protocol protocol; |
99 | u8 phy_index; | 99 | u8 phy_index; |
100 | bool bcn_received_while_port_unassigned; | 100 | bool bcn_received_while_port_unassigned; |
101 | bool is_in_link_training; | 101 | bool is_in_link_training; |
@@ -118,7 +118,7 @@ static inline struct isci_phy *to_iphy(struct asd_sas_phy *sas_phy) | |||
118 | return iphy; | 118 | return iphy; |
119 | } | 119 | } |
120 | 120 | ||
121 | struct scic_phy_cap { | 121 | struct sci_phy_cap { |
122 | union { | 122 | union { |
123 | struct { | 123 | struct { |
124 | /* | 124 | /* |
@@ -147,7 +147,7 @@ struct scic_phy_cap { | |||
147 | } __packed; | 147 | } __packed; |
148 | 148 | ||
149 | /* this data structure reflects the link layer transmit identification reg */ | 149 | /* this data structure reflects the link layer transmit identification reg */ |
150 | struct scic_phy_proto { | 150 | struct sci_phy_proto { |
151 | union { | 151 | union { |
152 | struct { | 152 | struct { |
153 | u16 _r_a:1; | 153 | u16 _r_a:1; |
@@ -167,12 +167,12 @@ struct scic_phy_proto { | |||
167 | 167 | ||
168 | 168 | ||
169 | /** | 169 | /** |
170 | * struct scic_phy_properties - This structure defines the properties common to | 170 | * struct sci_phy_properties - This structure defines the properties common to |
171 | * all phys that can be retrieved. | 171 | * all phys that can be retrieved. |
172 | * | 172 | * |
173 | * | 173 | * |
174 | */ | 174 | */ |
175 | struct scic_phy_properties { | 175 | struct sci_phy_properties { |
176 | /** | 176 | /** |
177 | * This field specifies the port that currently contains the | 177 | * This field specifies the port that currently contains the |
178 | * supplied phy. This field may be set to NULL | 178 | * supplied phy. This field may be set to NULL |
@@ -194,12 +194,12 @@ struct scic_phy_properties { | |||
194 | }; | 194 | }; |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * struct scic_sas_phy_properties - This structure defines the properties, | 197 | * struct sci_sas_phy_properties - This structure defines the properties, |
198 | * specific to a SAS phy, that can be retrieved. | 198 | * specific to a SAS phy, that can be retrieved. |
199 | * | 199 | * |
200 | * | 200 | * |
201 | */ | 201 | */ |
202 | struct scic_sas_phy_properties { | 202 | struct sci_sas_phy_properties { |
203 | /** | 203 | /** |
204 | * This field delineates the Identify Address Frame received | 204 | * This field delineates the Identify Address Frame received |
205 | * from the remote end point. | 205 | * from the remote end point. |
@@ -210,17 +210,17 @@ struct scic_sas_phy_properties { | |||
210 | * This field delineates the Phy capabilities structure received | 210 | * This field delineates the Phy capabilities structure received |
211 | * from the remote end point. | 211 | * from the remote end point. |
212 | */ | 212 | */ |
213 | struct scic_phy_cap rcvd_cap; | 213 | struct sci_phy_cap rcvd_cap; |
214 | 214 | ||
215 | }; | 215 | }; |
216 | 216 | ||
217 | /** | 217 | /** |
218 | * struct scic_sata_phy_properties - This structure defines the properties, | 218 | * struct sci_sata_phy_properties - This structure defines the properties, |
219 | * specific to a SATA phy, that can be retrieved. | 219 | * specific to a SATA phy, that can be retrieved. |
220 | * | 220 | * |
221 | * | 221 | * |
222 | */ | 222 | */ |
223 | struct scic_sata_phy_properties { | 223 | struct sci_sata_phy_properties { |
224 | /** | 224 | /** |
225 | * This field delineates the signature FIS received from the | 225 | * This field delineates the signature FIS received from the |
226 | * attached target. | 226 | * attached target. |
@@ -236,12 +236,12 @@ struct scic_sata_phy_properties { | |||
236 | }; | 236 | }; |
237 | 237 | ||
238 | /** | 238 | /** |
239 | * enum scic_phy_counter_id - This enumeration depicts the various pieces of | 239 | * enum sci_phy_counter_id - This enumeration depicts the various pieces of |
240 | * optional information that can be retrieved for a specific phy. | 240 | * optional information that can be retrieved for a specific phy. |
241 | * | 241 | * |
242 | * | 242 | * |
243 | */ | 243 | */ |
244 | enum scic_phy_counter_id { | 244 | enum sci_phy_counter_id { |
245 | /** | 245 | /** |
246 | * This PHY information field tracks the number of frames received. | 246 | * This PHY information field tracks the number of frames received. |
247 | */ | 247 | */ |
@@ -344,7 +344,7 @@ enum scic_phy_counter_id { | |||
344 | SCIC_PHY_COUNTER_SN_DWORD_SYNC_ERROR | 344 | SCIC_PHY_COUNTER_SN_DWORD_SYNC_ERROR |
345 | }; | 345 | }; |
346 | 346 | ||
347 | enum scic_sds_phy_states { | 347 | enum sci_phy_states { |
348 | /** | 348 | /** |
349 | * Simply the initial state for the base domain state machine. | 349 | * Simply the initial state for the base domain state machine. |
350 | */ | 350 | */ |
@@ -441,77 +441,77 @@ enum scic_sds_phy_states { | |||
441 | }; | 441 | }; |
442 | 442 | ||
443 | /** | 443 | /** |
444 | * scic_sds_phy_get_index() - | 444 | * sci_phy_get_index() - |
445 | * | 445 | * |
446 | * This macro returns the phy index for the specified phy | 446 | * This macro returns the phy index for the specified phy |
447 | */ | 447 | */ |
448 | #define scic_sds_phy_get_index(phy) \ | 448 | #define sci_phy_get_index(phy) \ |
449 | ((phy)->phy_index) | 449 | ((phy)->phy_index) |
450 | 450 | ||
451 | /** | 451 | /** |
452 | * scic_sds_phy_get_controller() - This macro returns the controller for this | 452 | * sci_phy_get_controller() - This macro returns the controller for this |
453 | * phy | 453 | * phy |
454 | * | 454 | * |
455 | * | 455 | * |
456 | */ | 456 | */ |
457 | #define scic_sds_phy_get_controller(phy) \ | 457 | #define sci_phy_get_controller(phy) \ |
458 | (scic_sds_port_get_controller((phy)->owning_port)) | 458 | (sci_port_get_controller((phy)->owning_port)) |
459 | 459 | ||
460 | void scic_sds_phy_construct( | 460 | void sci_phy_construct( |
461 | struct isci_phy *iphy, | 461 | struct isci_phy *iphy, |
462 | struct isci_port *iport, | 462 | struct isci_port *iport, |
463 | u8 phy_index); | 463 | u8 phy_index); |
464 | 464 | ||
465 | struct isci_port *phy_get_non_dummy_port(struct isci_phy *iphy); | 465 | struct isci_port *phy_get_non_dummy_port(struct isci_phy *iphy); |
466 | 466 | ||
467 | void scic_sds_phy_set_port( | 467 | void sci_phy_set_port( |
468 | struct isci_phy *iphy, | 468 | struct isci_phy *iphy, |
469 | struct isci_port *iport); | 469 | struct isci_port *iport); |
470 | 470 | ||
471 | enum sci_status scic_sds_phy_initialize( | 471 | enum sci_status sci_phy_initialize( |
472 | struct isci_phy *iphy, | 472 | struct isci_phy *iphy, |
473 | struct scu_transport_layer_registers __iomem *transport_layer_registers, | 473 | struct scu_transport_layer_registers __iomem *transport_layer_registers, |
474 | struct scu_link_layer_registers __iomem *link_layer_registers); | 474 | struct scu_link_layer_registers __iomem *link_layer_registers); |
475 | 475 | ||
476 | enum sci_status scic_sds_phy_start( | 476 | enum sci_status sci_phy_start( |
477 | struct isci_phy *iphy); | 477 | struct isci_phy *iphy); |
478 | 478 | ||
479 | enum sci_status scic_sds_phy_stop( | 479 | enum sci_status sci_phy_stop( |
480 | struct isci_phy *iphy); | 480 | struct isci_phy *iphy); |
481 | 481 | ||
482 | enum sci_status scic_sds_phy_reset( | 482 | enum sci_status sci_phy_reset( |
483 | struct isci_phy *iphy); | 483 | struct isci_phy *iphy); |
484 | 484 | ||
485 | void scic_sds_phy_resume( | 485 | void sci_phy_resume( |
486 | struct isci_phy *iphy); | 486 | struct isci_phy *iphy); |
487 | 487 | ||
488 | void scic_sds_phy_setup_transport( | 488 | void sci_phy_setup_transport( |
489 | struct isci_phy *iphy, | 489 | struct isci_phy *iphy, |
490 | u32 device_id); | 490 | u32 device_id); |
491 | 491 | ||
492 | enum sci_status scic_sds_phy_event_handler( | 492 | enum sci_status sci_phy_event_handler( |
493 | struct isci_phy *iphy, | 493 | struct isci_phy *iphy, |
494 | u32 event_code); | 494 | u32 event_code); |
495 | 495 | ||
496 | enum sci_status scic_sds_phy_frame_handler( | 496 | enum sci_status sci_phy_frame_handler( |
497 | struct isci_phy *iphy, | 497 | struct isci_phy *iphy, |
498 | u32 frame_index); | 498 | u32 frame_index); |
499 | 499 | ||
500 | enum sci_status scic_sds_phy_consume_power_handler( | 500 | enum sci_status sci_phy_consume_power_handler( |
501 | struct isci_phy *iphy); | 501 | struct isci_phy *iphy); |
502 | 502 | ||
503 | void scic_sds_phy_get_sas_address( | 503 | void sci_phy_get_sas_address( |
504 | struct isci_phy *iphy, | 504 | struct isci_phy *iphy, |
505 | struct sci_sas_address *sas_address); | 505 | struct sci_sas_address *sas_address); |
506 | 506 | ||
507 | void scic_sds_phy_get_attached_sas_address( | 507 | void sci_phy_get_attached_sas_address( |
508 | struct isci_phy *iphy, | 508 | struct isci_phy *iphy, |
509 | struct sci_sas_address *sas_address); | 509 | struct sci_sas_address *sas_address); |
510 | 510 | ||
511 | struct scic_phy_proto; | 511 | struct sci_phy_proto; |
512 | void scic_sds_phy_get_protocols( | 512 | void sci_phy_get_protocols( |
513 | struct isci_phy *iphy, | 513 | struct isci_phy *iphy, |
514 | struct scic_phy_proto *protocols); | 514 | struct sci_phy_proto *protocols); |
515 | enum sas_linkrate sci_phy_linkrate(struct isci_phy *iphy); | 515 | enum sas_linkrate sci_phy_linkrate(struct isci_phy *iphy); |
516 | 516 | ||
517 | struct isci_host; | 517 | struct isci_host; |