diff options
author | Edmund Nadolski <edmund.nadolski@intel.com> | 2011-06-01 20:10:43 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:50 -0400 |
commit | e301370ac553a9a0ac0d1d25e769b86cf60395b3 (patch) | |
tree | 58c00e0aeb21c3101df389d4b5e34f47e4b32119 /drivers/scsi/isci/port.h | |
parent | 8d2c65c09c9e0adc16070562e7944c1c3277f332 (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/port.h')
-rw-r--r-- | drivers/scsi/isci/port.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/isci/port.h b/drivers/scsi/isci/port.h index 9a6912855fc1..fee6d80df769 100644 --- a/drivers/scsi/isci/port.h +++ b/drivers/scsi/isci/port.h | |||
@@ -84,7 +84,7 @@ struct scic_sds_port { | |||
84 | /** | 84 | /** |
85 | * This field contains the information for the base port state machine. | 85 | * This field contains the information for the base port state machine. |
86 | */ | 86 | */ |
87 | struct sci_base_state_machine state_machine; | 87 | struct sci_base_state_machine sm; |
88 | 88 | ||
89 | bool ready_exit; | 89 | bool ready_exit; |
90 | 90 | ||
@@ -224,7 +224,7 @@ enum scic_sds_port_states { | |||
224 | * In this state no new IO operations are permitted. | 224 | * In this state no new IO operations are permitted. |
225 | * This state is entered from the STOPPING state. | 225 | * This state is entered from the STOPPING state. |
226 | */ | 226 | */ |
227 | SCI_BASE_PORT_STATE_STOPPED, | 227 | SCI_PORT_STOPPED, |
228 | 228 | ||
229 | /** | 229 | /** |
230 | * This state indicates that the port is in the process of stopping. | 230 | * This state indicates that the port is in the process of stopping. |
@@ -232,33 +232,33 @@ enum scic_sds_port_states { | |||
232 | * operations are allowed to complete. | 232 | * operations are allowed to complete. |
233 | * This state is entered from the READY state. | 233 | * This state is entered from the READY state. |
234 | */ | 234 | */ |
235 | SCI_BASE_PORT_STATE_STOPPING, | 235 | SCI_PORT_STOPPING, |
236 | 236 | ||
237 | /** | 237 | /** |
238 | * This state indicates the port is now ready. Thus, the user is | 238 | * This state indicates the port is now ready. Thus, the user is |
239 | * able to perform IO operations on this port. | 239 | * able to perform IO operations on this port. |
240 | * This state is entered from the STARTING state. | 240 | * This state is entered from the STARTING state. |
241 | */ | 241 | */ |
242 | SCI_BASE_PORT_STATE_READY, | 242 | SCI_PORT_READY, |
243 | 243 | ||
244 | /** | 244 | /** |
245 | * The substate where the port is started and ready but has no | 245 | * The substate where the port is started and ready but has no |
246 | * active phys. | 246 | * active phys. |
247 | */ | 247 | */ |
248 | SCIC_SDS_PORT_READY_SUBSTATE_WAITING, | 248 | SCI_PORT_SUB_WAITING, |
249 | 249 | ||
250 | /** | 250 | /** |
251 | * The substate where the port is started and ready and there is | 251 | * The substate where the port is started and ready and there is |
252 | * at least one phy operational. | 252 | * at least one phy operational. |
253 | */ | 253 | */ |
254 | SCIC_SDS_PORT_READY_SUBSTATE_OPERATIONAL, | 254 | SCI_PORT_SUB_OPERATIONAL, |
255 | 255 | ||
256 | /** | 256 | /** |
257 | * The substate where the port is started and there was an | 257 | * The substate where the port is started and there was an |
258 | * add/remove phy event. This state is only used in Automatic | 258 | * add/remove phy event. This state is only used in Automatic |
259 | * Port Configuration Mode (APC) | 259 | * Port Configuration Mode (APC) |
260 | */ | 260 | */ |
261 | SCIC_SDS_PORT_READY_SUBSTATE_CONFIGURING, | 261 | SCI_PORT_SUB_CONFIGURING, |
262 | 262 | ||
263 | /** | 263 | /** |
264 | * This state indicates the port is in the process of performing a hard | 264 | * This state indicates the port is in the process of performing a hard |
@@ -266,14 +266,14 @@ enum scic_sds_port_states { | |||
266 | * port. | 266 | * port. |
267 | * This state is entered from the READY state. | 267 | * This state is entered from the READY state. |
268 | */ | 268 | */ |
269 | SCI_BASE_PORT_STATE_RESETTING, | 269 | SCI_PORT_RESETTING, |
270 | 270 | ||
271 | /** | 271 | /** |
272 | * This state indicates the port has failed a reset request. This state | 272 | * This state indicates the port has failed a reset request. This state |
273 | * is entered when a port reset request times out. | 273 | * is entered when a port reset request times out. |
274 | * This state is entered from the RESETTING state. | 274 | * This state is entered from the RESETTING state. |
275 | */ | 275 | */ |
276 | SCI_BASE_PORT_STATE_FAILED, | 276 | SCI_PORT_FAILED, |
277 | 277 | ||
278 | 278 | ||
279 | }; | 279 | }; |