signal start and end of structures consistently
PATCH 1/1 signal start and end of structures consistently
Make sure all structs have the format:
struct X [
...
];
VIRTIO-170
Signed-off-by Michael S. Tsirkin <[email protected]>
--- content.tex | 11 +++++------ virtio-gpu.tex | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-)
content.tex +5 -6
@@ -5272,8 +5272,7 @@ The following commands are defined: #define VIRTIO_SCSI_T_TMF_QUERY_TASK 6 #define VIRTIO_SCSI_T_TMF_QUERY_TASK_SET 7 -struct virtio_scsi_ctrl_tmf -{ +struct virtio_scsi_ctrl_tmf { // Device-readable part le32 type; le32 subtype;
@@ -5281,7 +5280,7 @@ struct virtio_scsi_ctrl_tmf le64 id; // Device-writable part u8 response; -} +}; /* command-specific response values */ #define VIRTIO_SCSI_S_FUNCTION_COMPLETE 0
@@ -5328,7 +5327,7 @@ struct virtio_scsi_ctrl_an { // Device-writable part le32 event_actual; u8 response; -} +}; #define VIRTIO_SCSI_EVT_ASYNC_OPERATIONAL_CHANGE 2 #define VIRTIO_SCSI_EVT_ASYNC_POWER_MGMT 4
@@ -5363,7 +5362,7 @@ struct virtio_scsi_ctrl_an { // Device-writable part le32 event_actual; u8 response; -} +}; \end{lstlisting} By sending this command, the driver asks the specified LUN to
@@ -5415,7 +5414,7 @@ struct virtio_scsi_event { le32 event; u8 lun[8]; le32 reason; -} +}; \end{lstlisting} The devices sets bit 31 in \field{event} to report lost events
virtio-gpu.tex +1 -1
@@ -47,7 +47,7 @@ struct virtio_gpu_config { le32 events_clear; le32 num_scanouts; le32 reserved; -} +}; \end{lstlisting} \subsubsection{Device configuration fields}
Signature · 6 lines
MST --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
Quoted 5 lines · On Mon, 11 Mar 2019 11:50:00 -0400 "Michael S. Tsirkin" <[email protected]> wrote:
Make sure all structs have the format:
struct X [
...
];
[] or {}?
(either will work, I guess)
Quoted 64 lines
VIRTIO-170
Signed-off-by Michael S. Tsirkin <[email protected]>--- content.tex | 11 +++++------ virtio-gpu.tex | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-)content.tex +5
-6@@ -5272,8 +5272,7 @@ The following commands are defined: #define VIRTIO_SCSI_T_TMF_QUERY_TASK 6 #define VIRTIO_SCSI_T_TMF_QUERY_TASK_SET 7 -struct virtio_scsi_ctrl_tmf -{ +struct virtio_scsi_ctrl_tmf { // Device-readable part le32 type; le32 subtype;@@ -5281,7 +5280,7 @@ struct virtio_scsi_ctrl_tmf le64 id; // Device-writable part u8 response; -} +}; /* command-specific response values */ #define VIRTIO_SCSI_S_FUNCTION_COMPLETE 0@@ -5328,7 +5327,7 @@ struct virtio_scsi_ctrl_an { // Device-writable part le32 event_actual; u8 response; -} +}; #define VIRTIO_SCSI_EVT_ASYNC_OPERATIONAL_CHANGE 2 #define VIRTIO_SCSI_EVT_ASYNC_POWER_MGMT 4@@ -5363,7 +5362,7 @@ struct virtio_scsi_ctrl_an { // Device-writable part le32 event_actual; u8 response; -} +}; \end{lstlisting} By sending this command, the driver asks the specified LUN to@@ -5415,7 +5414,7 @@ struct virtio_scsi_event { le32 event; u8 lun[8]; le32 reason; -} +}; \end{lstlisting} The devices sets bit 31 in \field{event} to report lost eventsvirtio-gpu.tex +0
-0
virtio-gpu.tex struct virtio_gpu_config { · line 53
Quoted 8 lines
virtio-gpu.tex +1
-1@@ -47,7 +47,7 @@ struct virtio_gpu_config { le32 events_clear; le32 num_scanouts; le32 reserved; -} +}; \end{lstlisting} \subsubsection{Device configuration fields}
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php