diff options
author | Niranjan Yadla <nyadla@cadence.com> | 2018-05-08 11:21:23 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2018-05-08 12:42:16 -0700 |
commit | 817858b73eb7fa6abc0088f572c07a127cae0185 (patch) | |
tree | 12b2b32406581e234d2cabbc81c93b404fdc3b53 /hifi/xaf/hifi-dpf | |
parent | fd5e31aba957ca5dc321f0cd0d5bea936403b5f8 (diff) | |
download | hikey-817858b73eb7fa6abc0088f572c07a127cae0185.tar.gz |
hikey960: Support packed structure in host/dsp XAF
Support packed structure in host/dsp XAF
Change-Id: I9c162b523da086331671d7fcde55a1e6893451c5
Signed-off-by: Niranjan Yadla <nyadla@cadence.com>
Diffstat (limited to 'hifi/xaf/hifi-dpf')
-rw-r--r-- | hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/dsp_driver_mailbox.h | 3 | ||||
-rw-r--r-- | hifi/xaf/hifi-dpf/include/xf-proxy.h | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/dsp_driver_mailbox.h b/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/dsp_driver_mailbox.h index 8730df2c..5fdcca9a 100644 --- a/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/dsp_driver_mailbox.h +++ b/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/dsp_driver_mailbox.h @@ -132,8 +132,9 @@ typedef struct xf_proxy_msg { /* ...length of attached buffer */ uint32_t length; - /* ...shared logical address of message buffer */ + /* ...physical address of message buffer */ uint64_t address; + uint64_t v_address; } __attribute__((__packed__)) xf_proxy_msg_t; diff --git a/hifi/xaf/hifi-dpf/include/xf-proxy.h b/hifi/xaf/hifi-dpf/include/xf-proxy.h index 298b782f..0260749c 100644 --- a/hifi/xaf/hifi-dpf/include/xf-proxy.h +++ b/hifi/xaf/hifi-dpf/include/xf-proxy.h @@ -39,16 +39,17 @@ typedef struct xf_proxy_message { /* ...session ID */ - u32 session_id; + uint32_t session_id; /* ...proxy API command/reponse code */ - u32 opcode; + uint32_t opcode; /* ...length of attached buffer */ - u32 length; + uint32_t length; /* ...physical address of message buffer */ - u32 address; + uint64_t address; + uint64_t v_address; } __attribute__((__packed__)) xf_proxy_message_t; #else @@ -68,7 +69,7 @@ typedef struct xf_proxy_message uint64_t address; uint64_t v_address; -}/* __attribute__((__packed__)) */xf_proxy_message_t; +} __attribute__((__packed__)) xf_proxy_message_t; #endif /******************************************************************************* * Ring buffer support |