diff options
Diffstat (limited to 'drivers/scsi/isci/port.h')
-rw-r--r-- | drivers/scsi/isci/port.h | 68 |
1 files changed, 31 insertions, 37 deletions
diff --git a/drivers/scsi/isci/port.h b/drivers/scsi/isci/port.h index 9a9be7b47b4a..4c4ab8126d9f 100644 --- a/drivers/scsi/isci/port.h +++ b/drivers/scsi/isci/port.h | |||
@@ -123,7 +123,7 @@ struct isci_port { | |||
123 | struct scu_viit_entry __iomem *viit_registers; | 123 | struct scu_viit_entry __iomem *viit_registers; |
124 | }; | 124 | }; |
125 | 125 | ||
126 | enum scic_port_not_ready_reason_code { | 126 | enum sci_port_not_ready_reason_code { |
127 | SCIC_PORT_NOT_READY_NO_ACTIVE_PHYS, | 127 | SCIC_PORT_NOT_READY_NO_ACTIVE_PHYS, |
128 | SCIC_PORT_NOT_READY_HARD_RESET_REQUESTED, | 128 | SCIC_PORT_NOT_READY_HARD_RESET_REQUESTED, |
129 | SCIC_PORT_NOT_READY_INVALID_PORT_CONFIGURATION, | 129 | SCIC_PORT_NOT_READY_INVALID_PORT_CONFIGURATION, |
@@ -132,25 +132,25 @@ enum scic_port_not_ready_reason_code { | |||
132 | SCIC_PORT_NOT_READY_REASON_CODE_MAX | 132 | SCIC_PORT_NOT_READY_REASON_CODE_MAX |
133 | }; | 133 | }; |
134 | 134 | ||
135 | struct scic_port_end_point_properties { | 135 | struct sci_port_end_point_properties { |
136 | struct sci_sas_address sas_address; | 136 | struct sci_sas_address sas_address; |
137 | struct scic_phy_proto protocols; | 137 | struct sci_phy_proto protocols; |
138 | }; | 138 | }; |
139 | 139 | ||
140 | struct scic_port_properties { | 140 | struct sci_port_properties { |
141 | u32 index; | 141 | u32 index; |
142 | struct scic_port_end_point_properties local; | 142 | struct sci_port_end_point_properties local; |
143 | struct scic_port_end_point_properties remote; | 143 | struct sci_port_end_point_properties remote; |
144 | u32 phy_mask; | 144 | u32 phy_mask; |
145 | }; | 145 | }; |
146 | 146 | ||
147 | /** | 147 | /** |
148 | * enum scic_sds_port_states - This enumeration depicts all the states for the | 148 | * enum sci_port_states - This enumeration depicts all the states for the |
149 | * common port state machine. | 149 | * common port state machine. |
150 | * | 150 | * |
151 | * | 151 | * |
152 | */ | 152 | */ |
153 | enum scic_sds_port_states { | 153 | enum sci_port_states { |
154 | /** | 154 | /** |
155 | * This state indicates that the port has successfully been stopped. | 155 | * This state indicates that the port has successfully been stopped. |
156 | * In this state no new IO operations are permitted. | 156 | * In this state no new IO operations are permitted. |
@@ -211,23 +211,23 @@ enum scic_sds_port_states { | |||
211 | }; | 211 | }; |
212 | 212 | ||
213 | /** | 213 | /** |
214 | * scic_sds_port_get_controller() - | 214 | * sci_port_get_controller() - |
215 | * | 215 | * |
216 | * Helper macro to get the owning controller of this port | 216 | * Helper macro to get the owning controller of this port |
217 | */ | 217 | */ |
218 | #define scic_sds_port_get_controller(this_port) \ | 218 | #define sci_port_get_controller(this_port) \ |
219 | ((this_port)->owning_controller) | 219 | ((this_port)->owning_controller) |
220 | 220 | ||
221 | /** | 221 | /** |
222 | * scic_sds_port_get_index() - | 222 | * sci_port_get_index() - |
223 | * | 223 | * |
224 | * This macro returns the physical port index for this port object | 224 | * This macro returns the physical port index for this port object |
225 | */ | 225 | */ |
226 | #define scic_sds_port_get_index(this_port) \ | 226 | #define sci_port_get_index(this_port) \ |
227 | ((this_port)->physical_port_index) | 227 | ((this_port)->physical_port_index) |
228 | 228 | ||
229 | 229 | ||
230 | static inline void scic_sds_port_decrement_request_count(struct isci_port *iport) | 230 | static inline void sci_port_decrement_request_count(struct isci_port *iport) |
231 | { | 231 | { |
232 | if (WARN_ONCE(iport->started_request_count == 0, | 232 | if (WARN_ONCE(iport->started_request_count == 0, |
233 | "%s: tried to decrement started_request_count past 0!?", | 233 | "%s: tried to decrement started_request_count past 0!?", |
@@ -237,79 +237,73 @@ static inline void scic_sds_port_decrement_request_count(struct isci_port *iport | |||
237 | iport->started_request_count--; | 237 | iport->started_request_count--; |
238 | } | 238 | } |
239 | 239 | ||
240 | #define scic_sds_port_active_phy(port, phy) \ | 240 | #define sci_port_active_phy(port, phy) \ |
241 | (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0) | 241 | (((port)->active_phy_mask & (1 << (phy)->phy_index)) != 0) |
242 | 242 | ||
243 | void scic_sds_port_construct( | 243 | void sci_port_construct( |
244 | struct isci_port *iport, | 244 | struct isci_port *iport, |
245 | u8 port_index, | 245 | u8 port_index, |
246 | struct isci_host *ihost); | 246 | struct isci_host *ihost); |
247 | 247 | ||
248 | enum sci_status scic_sds_port_initialize( | 248 | enum sci_status sci_port_start(struct isci_port *iport); |
249 | struct isci_port *iport, | 249 | enum sci_status sci_port_stop(struct isci_port *iport); |
250 | void __iomem *port_task_scheduler_registers, | ||
251 | void __iomem *port_configuration_regsiter, | ||
252 | void __iomem *viit_registers); | ||
253 | |||
254 | enum sci_status scic_sds_port_start(struct isci_port *iport); | ||
255 | enum sci_status scic_sds_port_stop(struct isci_port *iport); | ||
256 | 250 | ||
257 | enum sci_status scic_sds_port_add_phy( | 251 | enum sci_status sci_port_add_phy( |
258 | struct isci_port *iport, | 252 | struct isci_port *iport, |
259 | struct isci_phy *iphy); | 253 | struct isci_phy *iphy); |
260 | 254 | ||
261 | enum sci_status scic_sds_port_remove_phy( | 255 | enum sci_status sci_port_remove_phy( |
262 | struct isci_port *iport, | 256 | struct isci_port *iport, |
263 | struct isci_phy *iphy); | 257 | struct isci_phy *iphy); |
264 | 258 | ||
265 | void scic_sds_port_setup_transports( | 259 | void sci_port_setup_transports( |
266 | struct isci_port *iport, | 260 | struct isci_port *iport, |
267 | u32 device_id); | 261 | u32 device_id); |
268 | 262 | ||
269 | void isci_port_bcn_enable(struct isci_host *, struct isci_port *); | 263 | void isci_port_bcn_enable(struct isci_host *, struct isci_port *); |
270 | 264 | ||
271 | void scic_sds_port_deactivate_phy( | 265 | void sci_port_deactivate_phy( |
272 | struct isci_port *iport, | 266 | struct isci_port *iport, |
273 | struct isci_phy *iphy, | 267 | struct isci_phy *iphy, |
274 | bool do_notify_user); | 268 | bool do_notify_user); |
275 | 269 | ||
276 | bool scic_sds_port_link_detected( | 270 | bool sci_port_link_detected( |
277 | struct isci_port *iport, | 271 | struct isci_port *iport, |
278 | struct isci_phy *iphy); | 272 | struct isci_phy *iphy); |
279 | 273 | ||
280 | enum sci_status scic_sds_port_link_up(struct isci_port *iport, | 274 | enum sci_status sci_port_link_up(struct isci_port *iport, |
281 | struct isci_phy *iphy); | 275 | struct isci_phy *iphy); |
282 | enum sci_status scic_sds_port_link_down(struct isci_port *iport, | 276 | enum sci_status sci_port_link_down(struct isci_port *iport, |
283 | struct isci_phy *iphy); | 277 | struct isci_phy *iphy); |
284 | 278 | ||
285 | struct isci_request; | 279 | struct isci_request; |
286 | struct isci_remote_device; | 280 | struct isci_remote_device; |
287 | enum sci_status scic_sds_port_start_io( | 281 | enum sci_status sci_port_start_io( |
288 | struct isci_port *iport, | 282 | struct isci_port *iport, |
289 | struct isci_remote_device *idev, | 283 | struct isci_remote_device *idev, |
290 | struct isci_request *ireq); | 284 | struct isci_request *ireq); |
291 | 285 | ||
292 | enum sci_status scic_sds_port_complete_io( | 286 | enum sci_status sci_port_complete_io( |
293 | struct isci_port *iport, | 287 | struct isci_port *iport, |
294 | struct isci_remote_device *idev, | 288 | struct isci_remote_device *idev, |
295 | struct isci_request *ireq); | 289 | struct isci_request *ireq); |
296 | 290 | ||
297 | enum sas_linkrate scic_sds_port_get_max_allowed_speed( | 291 | enum sas_linkrate sci_port_get_max_allowed_speed( |
298 | struct isci_port *iport); | 292 | struct isci_port *iport); |
299 | 293 | ||
300 | void scic_sds_port_broadcast_change_received( | 294 | void sci_port_broadcast_change_received( |
301 | struct isci_port *iport, | 295 | struct isci_port *iport, |
302 | struct isci_phy *iphy); | 296 | struct isci_phy *iphy); |
303 | 297 | ||
304 | bool scic_sds_port_is_valid_phy_assignment( | 298 | bool sci_port_is_valid_phy_assignment( |
305 | struct isci_port *iport, | 299 | struct isci_port *iport, |
306 | u32 phy_index); | 300 | u32 phy_index); |
307 | 301 | ||
308 | void scic_sds_port_get_sas_address( | 302 | void sci_port_get_sas_address( |
309 | struct isci_port *iport, | 303 | struct isci_port *iport, |
310 | struct sci_sas_address *sas_address); | 304 | struct sci_sas_address *sas_address); |
311 | 305 | ||
312 | void scic_sds_port_get_attached_sas_address( | 306 | void sci_port_get_attached_sas_address( |
313 | struct isci_port *iport, | 307 | struct isci_port *iport, |
314 | struct sci_sas_address *sas_address); | 308 | struct sci_sas_address *sas_address); |
315 | 309 | ||