diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2018-11-22 13:11:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-26 16:59:48 +0100 |
commit | 2513eb0dd7ba8a8766b9642075c19ac5f2d5463b (patch) | |
tree | 034c9a02290754acfcddd8341eb5249015c32221 /drivers/misc/mei/hw.h | |
parent | c55bf542e91b5c9156d57fd0461aa257b7d20858 (diff) | |
download | linux-2513eb0dd7ba8a8766b9642075c19ac5f2d5463b.tar.gz linux-2513eb0dd7ba8a8766b9642075c19ac5f2d5463b.tar.bz2 linux-2513eb0dd7ba8a8766b9642075c19ac5f2d5463b.zip |
mei: hw: add dma ring control block
The DMA ring control block contains write and read
indices for host and device circular buffers.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw.h')
-rw-r--r-- | drivers/misc/mei/hw.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index 65655925791a..4f09bbcdbc2a 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h @@ -512,4 +512,27 @@ struct hbm_dma_setup_response { u8 reserved[2]; } __packed; +/** + * struct mei_dma_ring_ctrl - dma ring control block + * + * @hbuf_wr_idx: host circular buffer write index in slots + * @reserved1: reserved for alignment + * @hbuf_rd_idx: host circular buffer read index in slots + * @reserved2: reserved for alignment + * @dbuf_wr_idx: device circular buffer write index in slots + * @reserved3: reserved for alignment + * @dbuf_rd_idx: device circular buffer read index in slots + * @reserved4: reserved for alignment + */ +struct hbm_dma_ring_ctrl { + u32 hbuf_wr_idx; + u32 reserved1; + u32 hbuf_rd_idx; + u32 reserved2; + u32 dbuf_wr_idx; + u32 reserved3; + u32 dbuf_rd_idx; + u32 reserved4; +} __packed; + #endif |