Collapsing of struct scic_sds_phy phy_type data structure
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
{
struct sas_identify_frame *iaf;
{
struct sas_identify_frame *iaf;
- iaf = &sci_phy->phy_type.sas.identify_address_frame_buffer;
+ iaf = &sci_phy->phy_type.sas_id_frame;
memcpy(sas_address, iaf->sas_addr, SAS_ADDR_SIZE);
}
memcpy(sas_address, iaf->sas_addr, SAS_ADDR_SIZE);
}
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
struct sas_identify_frame *iaf;
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
struct sas_identify_frame *iaf;
- iaf = &sci_phy->phy_type.sas.identify_address_frame_buffer;
+ iaf = &sci_phy->phy_type.sas_id_frame;
memcpy(&protocols->u.all, &iaf->initiator_bits, 2);
} else if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
protocols->u.bits.stp_target = 1;
memcpy(&protocols->u.all, &iaf->initiator_bits, 2);
} else if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
protocols->u.bits.stp_target = 1;
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
memcpy(&properties->rcvd_iaf,
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
memcpy(&properties->rcvd_iaf,
- &sci_phy->phy_type.sas.identify_address_frame_buffer,
+ &sci_phy->phy_type.sas_id_frame,
sizeof(struct sas_identify_frame));
properties->received_capabilities.u.all =
sizeof(struct sas_identify_frame));
properties->received_capabilities.u.all =
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
memcpy(&properties->signature_fis,
{
if (sci_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
memcpy(&properties->signature_fis,
- &sci_phy->phy_type.sata.signature_fis_buffer,
+ &sci_phy->phy_type.sata_sig_fis,
sizeof(struct dev_to_host_fis));
/* / @todo add support for port selectors. */
sizeof(struct dev_to_host_fis));
/* / @todo add support for port selectors. */
frame_words[4] = SCIC_SWAP_DWORD(frame_words[4]);
frame_words[5] = SCIC_SWAP_DWORD(frame_words[5]);
frame_words[4] = SCIC_SWAP_DWORD(frame_words[4]);
frame_words[5] = SCIC_SWAP_DWORD(frame_words[5]);
- memcpy(&sci_phy->phy_type.sas.identify_address_frame_buffer,
+ memcpy(&sci_phy->phy_type.sas_id_frame,
identify_frame,
sizeof(struct sas_identify_frame));
identify_frame,
sizeof(struct sas_identify_frame));
(void **)&fis_frame_data);
scic_sds_controller_copy_sata_response(
(void **)&fis_frame_data);
scic_sds_controller_copy_sata_response(
- &sci_phy->phy_type.sata.signature_fis_buffer,
+ &sci_phy->phy_type.sata_sig_fis,
frame_header,
fis_frame_data);
frame_header,
fis_frame_data);
bool is_in_link_training;
union {
bool is_in_link_training;
union {
- struct {
- struct sas_identify_frame identify_address_frame_buffer;
-
- } sas;
-
- struct {
- struct dev_to_host_fis signature_fis_buffer;
-
- } sata;
-
+ struct sas_identify_frame sas_id_frame;
+ struct dev_to_host_fis sata_sig_fis;