freebsd-dev/sys/dev/mpr
Kashyap D Desai 23daf8f40b Copy back the Sense data at proper location expected by the application
typedef struct mps_pass_thru
{
               uint64_t               PtrRequest;
               uint64_t               PtrReply;
               uint64_t               PtrData;
               uint32_t               RequestSize;
               uint32_t               ReplySize;
               uint32_t               DataSize;
               uint32_t               DataDirection;
               uint64_t               PtrDataOut;
               uint32_t               DataOutSize;
               uint32_t               Timeout;
} mps_pass_thru_t, * ptrmpssas_pass_thru_t;

In the above mps_pass_thru structure; Application expects PrtReply buffer
should contain both MPI reply followed by sense data. So, updated driver
to copy sense data at PtrReply + sizeof(MPI2 reply) location where
application wants the driver to copy back the sense data info.

Submitted by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Reviewed by:  Kashyap Desai <Kashyap.Desai@broadcom.com>
Approved by:  ken
MFC after:  3 days
Sponsored by:   Broadcom Inc
2018-12-26 10:39:22 +00:00
..
mpi Update MPI header files version to 2.00.52 from 2.00.48 2018-12-26 10:38:12 +00:00
mpr_config.c
mpr_ioctl.h Update mpr(4) driver from v15 to v18 from Broadcom site. 2018-03-19 23:21:45 +00:00
mpr_mapping.c Clean enclosure_table when resetting num_enc_table_entries to zero. 2018-05-02 02:41:09 +00:00
mpr_mapping.h
mpr_pci.c Add PNP info to PCI attachments of cbb, cxgb, ida, iwn, ixl, ixlv, 2018-09-26 17:12:30 +00:00
mpr_sas_lsi.c mps(4), mpr(4): remove SATA ID command cancellation hack 2018-12-21 20:30:52 +00:00
mpr_sas.c Further refactoring for task management commands. Also fix a related 2018-12-24 06:14:32 +00:00
mpr_sas.h Garbage collect usued fields 2017-09-23 08:26:42 +00:00
mpr_table.c Convert some in-line printing of diagnostic into tables. 2017-09-09 22:02:36 +00:00
mpr_table.h Convert some in-line printing of diagnostic into tables. 2017-09-09 22:02:36 +00:00
mpr_user.c Copy back the Sense data at proper location expected by the application 2018-12-26 10:39:22 +00:00
mpr.c mps(4), mpr(4): remove SATA ID command cancellation hack 2018-12-21 20:30:52 +00:00
mprvar.h First step in refactoring and fixing the error recovery and task management 2018-12-24 05:05:38 +00:00