summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 12:28:07 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-11-25 12:28:07 +0000
commit4601066a4c295a4d1b8b5ce9a24c6cf43ec3f12b (patch)
treeb357ae4934ae0e651c68ab159004e15875bc3c2e
parent26f7978ec56f9725665a3742f27ff9abe21419c8 (diff)
content.tex: manual legacy pci device layout
rewrite legacy pci device layout using tabularx. it was too wide for verbatim to lay out reasonably. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@121 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rw-r--r--content.tex22
-rw-r--r--virtio-v1.0-csd01.tex1
2 files changed, 12 insertions, 11 deletions
diff --git a/content.tex b/content.tex
index 39ef074..b371651 100644
--- a/content.tex
+++ b/content.tex
@@ -912,17 +912,17 @@ applicable).
When used through the legacy interface, the virtio header looks as follows:
-\begin{verbatim}
-+------------++---------------------+---------------------+----------+--------+---------+---------+---------+--------+
-| Bits || 32 | 32 | 32 | 16 | 16 | 16 | 8 | 8 |
-+------------++---------------------+---------------------+----------+--------+---------+---------+---------+--------+
-| Read/Write || R | R+W | R+W | R | R+W | R+W | R+W | R |
-+------------++---------------------+---------------------+----------+--------+---------+---------+---------+--------+
-| Purpose || Device | Guest | Queue | Queue | Queue | Queue | Device | ISR |
-| || Features bits 0:31 | Features bits 0:31 | Address | Size | Select | Notify | Status | Status |
-+------------++---------------------+---------------------+----------+--------+---------+---------+---------+--------+
-\end{verbatim}
-
+\begin{tabularx}{\textwidth}{ |X||X|X|X|X|X|X|X|X| }
+\hline
+ Bits & 32 & 32 & 32 & 16 & 16 & 16 & 8 & 8 \\
+\hline
+ Read / Write & R & R+W & R+W & R & R+W & R+W & R+W & R \\
+\hline
+ Purpose & Device Features bits 0:31 & Guest Features bits 0:31 &
+ Queue Size & Queue Select & Queue Notify & Queue Address &
+ Device Status & ISR \newline Status \\
+\hline
+\end{tabularx}
If MSI-X is enabled for the device, two additional fields
immediately follow this header:
diff --git a/virtio-v1.0-csd01.tex b/virtio-v1.0-csd01.tex
index 84337af..39a2c06 100644
--- a/virtio-v1.0-csd01.tex
+++ b/virtio-v1.0-csd01.tex
@@ -34,6 +34,7 @@
\usepackage[no-math]{fontspec}
\usepackage{xltxtra}
\usepackage{etoolbox}
+\usepackage{tabularx}
\usepackage{underscore}
% This is an alternative to package underscore above
% It makes it possible to disable hyphenation of upper-case