aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books/arch-handbook/pci/chapter.xml
diff options
context:
space:
mode:
Diffstat (limited to 'zh_CN.GB2312/books/arch-handbook/pci/chapter.xml')
-rw-r--r--zh_CN.GB2312/books/arch-handbook/pci/chapter.xml26
1 files changed, 11 insertions, 15 deletions
diff --git a/zh_CN.GB2312/books/arch-handbook/pci/chapter.xml b/zh_CN.GB2312/books/arch-handbook/pci/chapter.xml
index c3aa94e1c3..506154ae2c 100644
--- a/zh_CN.GB2312/books/arch-handbook/pci/chapter.xml
+++ b/zh_CN.GB2312/books/arch-handbook/pci/chapter.xml
@@ -6,23 +6,19 @@
Original Revision: 1.24
$FreeBSD$
-->
-
-<chapter id="pci">
- <chapterinfo>
+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="pci">
+ <info><title>PCI设备</title>
<authorgroup>
- <author>
- &author.cn.spellar;
- <contrib>&cnproj.translated.by;</contrib>
- </author>
+ <author><personname/><contrib>&cnproj.translated.by;</contrib></author>
</authorgroup>
- </chapterinfo>
- <title>PCI设备</title>
+ </info>
+
<indexterm><primary>PCI总线</primary></indexterm>
<para>本章将讨论FreeBSD为了给PCI总线上的设备编写驱动程序而提供的机制。</para>
- <sect1 id="pci-probe">
+ <sect1 xml:id="pci-probe">
<title>探测与连接</title>
<para>这儿的信息是关于PCI总线代码如何迭代通过未连接的设备,并查看新
@@ -261,8 +257,8 @@ SRCS+= device_if.h bus_if.h pci_if.h
<sect2>
<title>更多资源</title>
<itemizedlist>
- <listitem><simpara><ulink url="http://www.pcisig.org/">PCI
- Special Interest Group</ulink></simpara></listitem>
+ <listitem><simpara><link xlink:href="http://www.pcisig.org/">PCI
+ Special Interest Group</link></simpara></listitem>
<listitem><simpara>PCI System Architecture, Fourth Edition by
Tom Shanley, et al.</simpara></listitem>
@@ -271,7 +267,7 @@ SRCS+= device_if.h bus_if.h pci_if.h
</sect2>
</sect1>
- <sect1 id="pci-bus">
+ <sect1 xml:id="pci-bus">
<title>总线资源</title>
<indexterm><primary>PCI总线</primary><secondary>resources(资源)</secondary></indexterm>
@@ -314,7 +310,7 @@ SRCS+= device_if.h bus_if.h pci_if.h
sc-&gt;bar1_bt = rman_get_bustag(sc-&gt;bar1res);
sc-&gt;bar1_bh = rman_get_bushandle(sc-&gt;bar1res);</programlisting>
- <para>每个基址寄存器的句柄被保存在<structname>softc</structname>
+ <para>每个基址寄存器的句柄被保存在<varname remap="structname">softc</varname>
结构中,以便以后可以使用它们向设备写入。</para>
<para>然后就能使用这些句柄与<function>bus_space_*</function>函数一起
@@ -346,7 +342,7 @@ board_write(struct ni_softc *sc, uint16_t address, uint16_t value)
<function>bus_space_*</function>。
<function>bus_*</function> 函数使用的参数是 <type>struct
resource *</type> 指针, 而不是 bus tag 和句柄。
- 这样, 您就可以将 <structname>softc</structname>
+ 这样, 您就可以将 <varname remap="structname">softc</varname>
中的 bus tag 和 bus 句柄这两个成员变量去掉, 并将
<function>board_read()</function> 函数改写为:</para>