]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Copy back the Sense data at proper location expected by the application
authorkadesai <kadesai@FreeBSD.org>
Wed, 26 Dec 2018 10:39:22 +0000 (10:39 +0000)
committerkadesai <kadesai@FreeBSD.org>
Wed, 26 Dec 2018 10:39:22 +0000 (10:39 +0000)
commitdf68a4ab44e5efb976597daa144c321401a1f66a
treecc3799b7052c6702456bd6754c100fda781a8c1d
parent97dde5896a7406130115539512daa8bb2a868025
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
sys/dev/mpr/mpr_user.c