Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpmsg: virtio_rpmsg_bus: move back rpmsg_hdr into a public header
Commit e88dae5 ("rpmsg: Move virtio specifics from public header") has moved the struct rpmsg_hdr definition from the public rpmsg.h and made it private to virtio_rpmsg_bus module. This structure is a common header used in all virtio rpmsg messages, and used by various virtio rpmsg bus drivers. So, move this back into the virtio_rpmsg specific public header to make it visible to various rpmsg drivers. Signed-off-by: Suman Anna <s-anna@ti.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _LINUX_RPMSG_VIRTIO_RPMSG_H | ||
#define _LINUX_RPMSG_VIRTIO_RPMSG_H | ||
|
||
/** | ||
* struct rpmsg_hdr - common header for all virtio rpmsg messages | ||
* @src: source address | ||
* @dst: destination address | ||
* @reserved: reserved for future use | ||
* @len: length of payload (in bytes) | ||
* @flags: message flags | ||
* @data: @len bytes of message payload data | ||
* | ||
* Every message sent(/received) on the rpmsg bus begins with this header. | ||
*/ | ||
struct rpmsg_hdr { | ||
u32 src; | ||
u32 dst; | ||
u32 reserved; | ||
u16 len; | ||
u16 flags; | ||
u8 data[0]; | ||
} __packed; | ||
|
||
#endif |