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>
diff --git a/hifi/xaf/hifi-dpf/include/xf-proxy.h b/hifi/xaf/hifi-dpf/include/xf-proxy.h
index 298b782..0260749 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 @@
uint64_t address;
uint64_t v_address;
-}/* __attribute__((__packed__)) */xf_proxy_message_t;
+} __attribute__((__packed__)) xf_proxy_message_t;
#endif
/*******************************************************************************
* Ring buffer support