diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2019-03-11 11:48:22 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-03-21 13:24:59 -0400 |
commit | 0b5288f06affd912f21261fc9f3a200a534fb9a5 (patch) | |
tree | 1cf9ace58d96f6cbd900518543b7dbe650795336 /content.tex | |
parent | c7b25037e9c2794a03376a4e3eabca4d02191219 (diff) | |
download | virtio-spec-0b5288f06affd912f21261fc9f3a200a534fb9a5.tar.gz |
signal start and end of structures consistently
Make sure all structs have the format:
struct X {
...
};
Fixes: https://issues.oasis-open.org/browse/VIRTIO-170
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'content.tex')
-rw-r--r-- | content.tex | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/content.tex b/content.tex index 4180296..f40d4fc 100644 --- a/content.tex +++ b/content.tex @@ -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 |