123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef SMMU_PROXY_MSGQ_H
- #define SMMU_PROXY_MSGQ_H
- #include <linux/gunyah/gh_rm_drv.h>
- enum smmu_proxy_msg_type {
- SMMU_PROXY_MAP,
- SMMU_PROXY_MAP_RESP,
- SMMU_PROXY_UNMAP,
- SMMU_PROXY_UNMAP_RESP,
- SMMU_PROXY_ERR_RESP,
- SMMU_PROXY_MSG_MAX,
- };
- struct smmu_proxy_msg_hdr {
- u32 msg_type;
- u32 msg_size;
- } __packed;
- struct smmu_proxy_resp_hdr {
- u32 msg_type;
- u32 msg_size;
- s32 ret;
- } __packed;
- struct smmu_proxy_map_req {
- struct smmu_proxy_msg_hdr hdr;
- u32 hdl;
- u32 cb_id;
- struct gh_acl_desc acl_desc;
- } __packed;
- struct smmu_proxy_map_resp {
- struct smmu_proxy_resp_hdr hdr;
- u64 iova;
- u64 mapping_len;
- } __packed;
- struct smmu_proxy_unmap_req {
- struct smmu_proxy_msg_hdr hdr;
- u32 hdl;
- } __packed;
- struct smmu_proxy_unmap_resp {
- struct smmu_proxy_resp_hdr hdr;
- } __packed;
- #endif
|