aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.h
diff options
context:
space:
mode:
authorEdmund Nadolski <edmund.nadolski@intel.com>2011-06-01 20:10:43 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:50 -0400
commite301370ac553a9a0ac0d1d25e769b86cf60395b3 (patch)
tree58c00e0aeb21c3101df389d4b5e34f47e4b32119 /drivers/scsi/isci/host.h
parent8d2c65c09c9e0adc16070562e7944c1c3277f332 (diff)
isci: state machine cleanup
This cleans up several areas of the state machine mechanism: o Rename sci_base_state_machine_change_state to sci_change_state o Remove sci_base_state_machine_get_state function o Rename 'state_machine' struct member to 'sm' in client structs o Shorten the name of request states o Shorten state machine state names as follows: SCI_BASE_CONTROLLER_STATE_xxx to SCIC_xxx SCI_BASE_PHY_STATE_xxx to SCI_PHY_xxx SCIC_SDS_PHY_STARTING_SUBSTATE_xxx to SCI_PHY_SUB_xxx SCI_BASE_PORT_STATE_xxx to SCI_PORT_xxx and SCIC_SDS_PORT_READY_SUBSTATE_xxx to SCI_PORT_SUB_xxx SCI_BASE_REMOTE_DEVICE_STATE_xxx to SCI_DEV_xxx SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_xxx to SCI_STP_DEV_xxx SCIC_SDS_SMP_REMOTE_DEVICE_READY_SUBSTATE_xxx to SCI_SMP_DEV_xxx SCIC_SDS_REMOTE_NODE_CONTEXT_xxx_STATE to SCI_RNC_xxx Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> 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.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 4ce39e1803ff..be09765ee1d5 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -134,7 +134,7 @@ struct scic_sds_controller {
134 * This field contains the information for the base controller state 134 * This field contains the information for the base controller state
135 * machine. 135 * machine.
136 */ 136 */
137 struct sci_base_state_machine state_machine; 137 struct sci_base_state_machine sm;
138 138
139 /** 139 /**
140 * Timer for controller start/stop operations. 140 * Timer for controller start/stop operations.
@@ -359,7 +359,7 @@ enum scic_sds_controller_states {
359 /** 359 /**
360 * Simply the initial state for the base controller state machine. 360 * Simply the initial state for the base controller state machine.
361 */ 361 */
362 SCI_BASE_CONTROLLER_STATE_INITIAL = 0, 362 SCIC_INITIAL = 0,
363 363
364 /** 364 /**
365 * This state indicates that the controller is reset. The memory for 365 * This state indicates that the controller is reset. The memory for
@@ -368,7 +368,7 @@ enum scic_sds_controller_states {
368 * This state is entered from the INITIAL state. 368 * This state is entered from the INITIAL state.
369 * This state is entered from the RESETTING state. 369 * This state is entered from the RESETTING state.
370 */ 370 */
371 SCI_BASE_CONTROLLER_STATE_RESET, 371 SCIC_RESET,
372 372
373 /** 373 /**
374 * This state is typically an action state that indicates the controller 374 * This state is typically an action state that indicates the controller
@@ -376,28 +376,28 @@ enum scic_sds_controller_states {
376 * are permitted. 376 * are permitted.
377 * This state is entered from the RESET state. 377 * This state is entered from the RESET state.
378 */ 378 */
379 SCI_BASE_CONTROLLER_STATE_INITIALIZING, 379 SCIC_INITIALIZING,
380 380
381 /** 381 /**
382 * This state indicates that the controller has been successfully 382 * This state indicates that the controller has been successfully
383 * initialized. In this state no new IO operations are permitted. 383 * initialized. In this state no new IO operations are permitted.
384 * This state is entered from the INITIALIZING state. 384 * This state is entered from the INITIALIZING state.
385 */ 385 */
386 SCI_BASE_CONTROLLER_STATE_INITIALIZED, 386 SCIC_INITIALIZED,
387 387
388 /** 388 /**
389 * This state indicates the the controller is in the process of becoming 389 * This state indicates the the controller is in the process of becoming
390 * ready (i.e. starting). In this state no new IO operations are permitted. 390 * ready (i.e. starting). In this state no new IO operations are permitted.
391 * This state is entered from the INITIALIZED state. 391 * This state is entered from the INITIALIZED state.
392 */ 392 */
393 SCI_BASE_CONTROLLER_STATE_STARTING, 393 SCIC_STARTING,
394 394
395 /** 395 /**
396 * This state indicates the controller is now ready. Thus, the user 396 * This state indicates the controller is now ready. Thus, the user
397 * is able to perform IO operations on the controller. 397 * is able to perform IO operations on the controller.
398 * This state is entered from the STARTING state. 398 * This state is entered from the STARTING state.
399 */ 399 */
400 SCI_BASE_CONTROLLER_STATE_READY, 400 SCIC_READY,
401 401
402 /** 402 /**
403 * This state is typically an action state that indicates the controller 403 * This state is typically an action state that indicates the controller
@@ -408,7 +408,7 @@ enum scic_sds_controller_states {
408 * This state is entered from the FAILED state. 408 * This state is entered from the FAILED state.
409 * This state is entered from the STOPPED state. 409 * This state is entered from the STOPPED state.
410 */ 410 */
411 SCI_BASE_CONTROLLER_STATE_RESETTING, 411 SCIC_RESETTING,
412 412
413 /** 413 /**
414 * This state indicates that the controller is in the process of stopping. 414 * This state indicates that the controller is in the process of stopping.
@@ -416,14 +416,14 @@ enum scic_sds_controller_states {
416 * operations are allowed to complete. 416 * operations are allowed to complete.
417 * This state is entered from the READY state. 417 * This state is entered from the READY state.
418 */ 418 */
419 SCI_BASE_CONTROLLER_STATE_STOPPING, 419 SCIC_STOPPING,
420 420
421 /** 421 /**
422 * This state indicates that the controller has successfully been stopped. 422 * This state indicates that the controller has successfully been stopped.
423 * In this state no new IO operations are permitted. 423 * In this state no new IO operations are permitted.
424 * This state is entered from the STOPPING state. 424 * This state is entered from the STOPPING state.
425 */ 425 */
426 SCI_BASE_CONTROLLER_STATE_STOPPED, 426 SCIC_STOPPED,
427 427
428 /** 428 /**
429 * This state indicates that the controller could not successfully be 429 * This state indicates that the controller could not successfully be
@@ -433,10 +433,7 @@ enum scic_sds_controller_states {
433 * This state is entered from the STOPPING state. 433 * This state is entered from the STOPPING state.
434 * This state is entered from the RESETTING state. 434 * This state is entered from the RESETTING state.
435 */ 435 */
436 SCI_BASE_CONTROLLER_STATE_FAILED, 436 SCIC_FAILED,
437
438 SCI_BASE_CONTROLLER_MAX_STATES
439
440}; 437};
441 438
442 439