Skip to content

Commit ce11200

Browse files
Yanteng SiJonathan Corbet
authored andcommitted
Docs/zh_CN: Update the translation of pci to 5.19-rc8
Update to commit f21949c ("PCI/doc:Update obsolete pci_set_dma_mask() references") 05b0ebd ("PCI/doc: cleanup references to the legacy PCI DMA API") Signed-off-by: Yanteng Si <siyanteng@loongson.cn> Reviewed-by: Wu XiangCheng <bobwxc@email.cn> Reviewed-by: Alex Shi <alexs@kernel.org> Link: https://lore.kernel.org/r/bccb98a1c6706ecfd4aaba8c27f1c64024e1c139.1658983157.git.siyanteng@loongson.cn Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c78478e commit ce11200

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Documentation/translations/zh_CN/PCI

Documentation/translations/zh_CN/PCI/pci.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ pci_set_master()将通过设置PCI_COMMAND寄存器中的总线主控位来启
255255

256256
虽然所有的驱动程序都应该明确指出PCI总线主控的DMA功能(如32位或64位),但对于流式
257257
数据来说,具有超过32位总线主站功能的设备需要驱动程序通过调用带有适当参数的
258-
``pci_set_dma_mask()`` 来“注册”这种功能。一般来说,在系统RAM高于4G物理地址的情
258+
``dma_set_mask()`` 来“注册”这种功能。一般来说,在系统RAM高于4G物理地址的情
259259
况下,这允许更有效的DMA。
260260

261-
所有PCI-X和PCIe兼容设备的驱动程序必须调用 ``pci_set_dma_mask()`` ,因为它们
261+
所有PCI-X和PCIe兼容设备的驱动程序必须调用 ``dma_set_mask()`` ,因为它们
262262
是64位DMA设备。
263263

264-
同样,如果设备可以通过调用 ``pci_set_consistent_dma_mask()`` 直接寻址到
264+
同样,如果设备可以通过调用 ``dma_set_coherent_mask()`` 直接寻址到
265265
4G物理地址以上的系统RAM中的“一致性内存”,那么驱动程序也必须“注册”这种功能。同
266266
样,这包括所有PCI-X和PCIe兼容设备的驱动程序。许多64位“PCI”设备(在PCI-X之前)
267267
和一些PCI-X设备对有效载荷(“流式”)数据具有64位DMA功能,但对控制(“一致性”)数

0 commit comments

Comments
 (0)