|
@@ -1556,14 +1556,14 @@ static const struct scic_sds_phy_state_handler scic_sds_phy_starting_substate_ha
|
|
|
|
|
|
/**
|
|
|
* scic_sds_phy_starting_initial_substate_enter -
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_INITIAL. - The initial state
|
|
|
* handlers are put in place for the struct scic_sds_phy object. - The state is
|
|
|
* changed to the wait phy type event notification. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_initial_substate_enter(struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_initial_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1579,14 +1579,13 @@ static void scic_sds_phy_starting_initial_substate_enter(struct sci_base_object
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_PHY_TYPE_EN. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_ossp_en_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_ossp_en_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1599,14 +1598,14 @@ static void scic_sds_phy_starting_await_ossp_en_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SPEED_EN. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. none
|
|
|
*/
|
|
|
static void scic_sds_phy_starting_await_sas_speed_en_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+ void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1619,14 +1618,13 @@ static void scic_sds_phy_starting_await_sas_speed_en_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_IAF_UF. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_iaf_uf_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_iaf_uf_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1639,15 +1637,14 @@ static void scic_sds_phy_starting_await_iaf_uf_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_POWER. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. - Add this phy object to
|
|
|
* the power control queue none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sas_power_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sas_power_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1665,14 +1662,13 @@ static void scic_sds_phy_starting_await_sas_power_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on exiting
|
|
|
* the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SAS_POWER. - Remove the
|
|
|
* struct scic_sds_phy object from the power control queue. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sas_power_substate_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sas_power_substate_exit(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1685,15 +1681,14 @@ static void scic_sds_phy_starting_await_sas_power_substate_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SATA_POWER. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. - Add this phy object to
|
|
|
* the power control queue none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sata_power_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sata_power_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1711,14 +1706,13 @@ static void scic_sds_phy_starting_await_sata_power_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on exiting
|
|
|
* the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SATA_POWER. - Remove the
|
|
|
* struct scic_sds_phy object from the power control queue. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sata_power_substate_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sata_power_substate_exit(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1732,15 +1726,13 @@ static void scic_sds_phy_starting_await_sata_power_substate_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This function will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SATA_PHY_EN. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sata_phy_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sata_phy_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
|
|
|
@@ -1754,8 +1746,7 @@ static void scic_sds_phy_starting_await_sata_phy_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy
|
|
|
* on exiting
|
|
@@ -1763,7 +1754,7 @@ static void scic_sds_phy_starting_await_sata_phy_substate_enter(
|
|
|
* that was started on entry to await sata phy event notification none
|
|
|
*/
|
|
|
static inline void scic_sds_phy_starting_await_sata_phy_substate_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+ void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
|
|
|
@@ -1772,14 +1763,13 @@ static inline void scic_sds_phy_starting_await_sata_phy_substate_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SATA_SPEED_EN. - Set the
|
|
|
* struct scic_sds_phy object state handlers for this state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sata_speed_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sata_speed_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
|
|
|
@@ -1793,8 +1783,7 @@ static void scic_sds_phy_starting_await_sata_speed_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This function will perform the actions required by the
|
|
|
* struct scic_sds_phy on exiting
|
|
@@ -1802,7 +1791,7 @@ static void scic_sds_phy_starting_await_sata_speed_substate_enter(
|
|
|
* that was started on entry to await sata phy event notification none
|
|
|
*/
|
|
|
static inline void scic_sds_phy_starting_await_sata_speed_substate_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+ void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
|
|
|
@@ -1811,8 +1800,7 @@ static inline void scic_sds_phy_starting_await_sata_speed_substate_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This function will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_AWAIT_SIG_FIS_UF. - Set the
|
|
@@ -1820,8 +1808,7 @@ static inline void scic_sds_phy_starting_await_sata_speed_substate_exit(
|
|
|
* - Start the SIGNATURE FIS
|
|
|
* timeout timer none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_await_sig_fis_uf_substate_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_await_sig_fis_uf_substate_enter(void *object)
|
|
|
{
|
|
|
bool continue_to_ready_state;
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
@@ -1851,8 +1838,7 @@ static void scic_sds_phy_starting_await_sig_fis_uf_substate_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This function will perform the actions required by the
|
|
|
* struct scic_sds_phy on exiting
|
|
@@ -1860,7 +1846,7 @@ static void scic_sds_phy_starting_await_sig_fis_uf_substate_enter(
|
|
|
* FIS timeout timer. none
|
|
|
*/
|
|
|
static inline void scic_sds_phy_starting_await_sig_fis_uf_substate_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+ void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -1871,14 +1857,14 @@ static inline void scic_sds_phy_starting_await_sig_fis_uf_substate_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCIC_SDS_PHY_STARTING_SUBSTATE_FINAL. - Set the struct scic_sds_phy
|
|
|
* object state handlers for this state. - Change base state machine to the
|
|
|
* ready state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_final_substate_enter(struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_final_substate_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2206,14 +2192,13 @@ static void scu_link_layer_tx_hard_reset(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_INITIAL. - This function sets the state
|
|
|
* handlers for the phy object base state machine initial state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_initial_state_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_initial_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2224,15 +2209,14 @@ static void scic_sds_phy_initial_state_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a
|
|
|
- * struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This function will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_INITIAL. - This function sets the state
|
|
|
* handlers for the phy object base state machine initial state. - The SCU
|
|
|
* hardware is requested to stop the protocol engine. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_stopped_state_enter(struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_stopped_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy = (struct scic_sds_phy *)object;
|
|
|
struct scic_sds_controller *scic = scic_sds_phy_get_controller(sci_phy);
|
|
@@ -2266,7 +2250,7 @@ static void scic_sds_phy_stopped_state_enter(struct sci_base_object *object)
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_STARTING. - This function sets the state
|
|
@@ -2276,8 +2260,7 @@ static void scic_sds_phy_stopped_state_enter(struct sci_base_object *object)
|
|
|
* state then the struct scic_sds_controller is informed that the phy has gone link
|
|
|
* down. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_starting_state_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_starting_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2307,7 +2290,7 @@ static void scic_sds_phy_starting_state_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_READY. - This function sets the state
|
|
@@ -2315,8 +2298,7 @@ static void scic_sds_phy_starting_state_enter(
|
|
|
* hardware protocol engine is resumed. - The struct scic_sds_controller is informed
|
|
|
* that the phy object has gone link up. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_ready_state_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_ready_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2333,14 +2315,13 @@ static void scic_sds_phy_ready_state_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on exiting
|
|
|
* the SCI_BASE_PHY_STATE_INITIAL. This function suspends the SCU hardware
|
|
|
* protocol engine represented by this struct scic_sds_phy object. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_ready_state_exit(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_ready_state_exit(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2351,14 +2332,13 @@ static void scic_sds_phy_ready_state_exit(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_RESETTING. - This function sets the state
|
|
|
* handlers for the phy object base state machine resetting state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_resetting_state_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_resetting_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|
|
@@ -2387,14 +2367,13 @@ static void scic_sds_phy_resetting_state_enter(
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
- * @object: This is the struct sci_base_object which is cast to a struct scic_sds_phy object.
|
|
|
+ * @object: This is the object which is cast to a struct scic_sds_phy object.
|
|
|
*
|
|
|
* This method will perform the actions required by the struct scic_sds_phy on
|
|
|
* entering the SCI_BASE_PHY_STATE_FINAL. - This function sets the state
|
|
|
* handlers for the phy object base state machine final state. none
|
|
|
*/
|
|
|
-static void scic_sds_phy_final_state_enter(
|
|
|
- struct sci_base_object *object)
|
|
|
+static void scic_sds_phy_final_state_enter(void *object)
|
|
|
{
|
|
|
struct scic_sds_phy *sci_phy;
|
|
|
|