요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/virtio/mmio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: virtio memory mapped devices
maintainers:
- Jean-Philippe Brucker <[email protected]>
description:
See https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio for
more details.
properties:
compatible:
const: virtio,mmio
reg:
maxItems: 1
dma-coherent: true
interrupts:
maxItems: 1
'#iommu-cells':
description: Required when the node corresponds to a virtio-iommu device.
const: 1
iommus:
description: Required for devices making accesses thru an IOMMU.
maxItems: 1
wakeup-source:
type: boolean
description: Required for setting irq of a virtio_mmio device as wakeup source.
required:
- compatible
- reg
- interrupts
additionalProperties:
type: object
examples:
- |
virtio@3000 {
compatible = "virtio,mmio";
reg = <0x3000 0x100>;
interrupts = <41>;
/* Device has endpoint ID 23 */
iommus = <&viommu 23>;
};
viommu: iommu@3100 {
compatible = "virtio,mmio";
reg = <0x3100 0x100>;
interrupts = <42>;
#iommu-cells = <1>;
};
...
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Virtio memory-mapped device
1-15GPL-2.0-only 또는 BSD-2-Clause로 배포되는 이 스키마는 memory-mapped Virtio device를 정의합니다. 자세한 규격은 OASIS Virtio 기술 위원회 문서를 참조하며 관리자는 Jean-Philippe Brucker입니다.
MMIO 자원, IOMMU와 wakeup
16-47`compatible`은 `virtio,mmio`로 고정됩니다. `reg`와 `interrupts`는 각각 최대 한 항목이며 `dma-coherent`를 지원합니다.
node가 virtio-iommu device이면 `#iommu-cells = <1>`이 필요합니다. IOMMU를 통해 memory access를 수행하는 device에는 `iommus`가 필요하고 최대 한 항목입니다. `wakeup-source`는 virtio_mmio device의 IRQ를 wakeup source로 설정할 때 필요합니다.
compatible, reg, interrupts가 필수이며 child object 형태의 추가 속성을 허용합니다.
properties:
compatible:
const: virtio,mmio
reg:
maxItems: 1
dma-coherent: true
interrupts:
maxItems: 1
'#iommu-cells':
description: Required when the node corresponds to a virtio-iommu device.
const: 1
iommus:
description: Required for devices making accesses thru an IOMMU.
maxItems: 1
wakeup-source:
type: boolean
description: Required for setting irq of a virtio_mmio device as wakeup source.
required:
- compatible
- reg
- interrupts
additionalProperties:
type: object
Virtio endpoint와 IOMMU 예제
48-67첫 MMIO Virtio device는 endpoint ID 23으로 `viommu`를 참조합니다. 이어지는 Virtio IOMMU node는 별도 register와 interrupt를 가지며 한 cell의 endpoint ID를 받도록 `#iommu-cells = <1>`을 선언합니다.
examples:
- |
virtio@3000 {
compatible = "virtio,mmio";
reg = <0x3000 0x100>;
interrupts = <41>;
/* Device has endpoint ID 23 */
iommus = <&viommu 23>;
};
viommu: iommu@3100 {
compatible = "virtio,mmio";
reg = <0x3100 0x100>;
interrupts = <42>;
#iommu-cells = <1>;
};
...
요약과 해설
mmio.yaml:1-67Virtio MMIO transport의 register, interrupt, IOMMU와 wakeup 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, property, PCI BDF·RID, phandle, example, source path와 원문 줄 좌표를 원형대로 보존합니다.