FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * This method will combind the frame header and frame buffer to create
 * a SATA D2H register FIS
 *
 * @param[out] resposne_buffer This is the buffer into which the D2H register
 *             FIS will be constructed.
 * @param[in]  frame_header This is the frame header returned by the hardware.
 * @param[in]  frame_buffer This is the frame buffer returned by the hardware.
 *
 * @erturn none
 */
This method will combind the frame header and frame buffer to create
a SATA D2H register FIS

@param[out] resposne_buffer This is the buffer into which the D2H register
FIS will be constructed.
@param[in]  frame_header This is the frame header returned by the hardware.
@param[in]  frame_buffer This is the frame buffer returned by the hardware.

@erturn none
This method will combind the frame header and frame buffer to create a SATA D2H register FIS @param [ out ] resposne_buffer This is the buffer into which the D2H register FIS will be constructed . @param [ in ] frame_header This is the frame header returned by the hardware . @param [ in ] frame_buffer This is the frame buffer returned by the hardware . @erturn none
void scic_sds_controller_copy_sata_response(
   void * response_buffer,
   void * frame_header,
   void * frame_buffer
)
{
   memcpy(
      response_buffer,
      frame_header,
      sizeof(U32)
   );
   memcpy(
      (char *)((char *)response_buffer + sizeof(U32)),
      frame_buffer,
      sizeof(SATA_FIS_REG_D2H_T) - sizeof(U32)
   );
}
void scic_sds_controller_copy_sata_response ( void * response_buffer , void * frame_header , void * frame_buffer ) { memcpy ( response_buffer , frame_header , sizeof ( U32 ) ) ; memcpy ( ( char * ) ( ( char * ) response_buffer + sizeof ( U32 ) ) , frame_buffer , sizeof ( SATA_FIS_REG_D2H_T ) - sizeof ( U32 ) ) ; }
This method will combind the frame header and frame buffer to create
 a SATA D2H register FIS
This method will combind the frame header and frame buffer to create a SATA D2H register FIS