From 4601066a4c295a4d1b8b5ce9a24c6cf43ec3f12b Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Mon, 25 Nov 2013 12:28:07 +0000 Subject: 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 git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@121 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- content.tex | 22 +++++++++++----------- virtio-v1.0-csd01.tex | 1 + 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 -- cgit v1.2.3