요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/usb-xhci.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Generic USB xHCI Controller
maintainers:
- Mathias Nyman <[email protected]>
allOf:
- $ref: usb-hcd.yaml#
properties:
usb2-lpm-disable:
description: Indicates if we don't want to enable USB2 HW LPM
type: boolean
usb3-lpm-capable:
description: Determines if platform is USB3 LPM capable
type: boolean
quirk-broken-port-ped:
description: Set if the controller has broken port disable mechanism
type: boolean
imod-interval-ns:
description: Interrupt moderation interval
default: 5000
num-hc-interrupters:
description: Maximum number of interrupters to allocate
$ref: /schemas/types.yaml#/definitions/uint16
minimum: 1
maximum: 1024
additionalProperties: true
examples:
- |
usb@f0930000 {
compatible = "generic-xhci";
reg = <0xf0930000 0x8c8>;
interrupts = <0x0 0x4e 0x0>;
usb2-lpm-disable;
usb3-lpm-capable;
};
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Generic USB xHCI controller
1-14GPL-2.0으로 배포되는 이 스키마는 일반 USB xHCI controller를 정의하며 공통 `usb-hcd.yaml`을 상속합니다. 관리자는 Mathias Nyman입니다.
LPM, port quirk와 interrupter
15-38`usb2-lpm-disable`은 USB 2.0 hardware Link Power Management를 활성화하지 않도록 하고, `usb3-lpm-capable`은 platform이 USB 3.0 LPM을 지원함을 나타냅니다. `quirk-broken-port-ped`는 controller의 port disable mechanism이 고장 난 경우 설정합니다.
`imod-interval-ns`는 interrupt moderation interval이며 기본값은 5000ns입니다. `num-hc-interrupters`는 할당할 interrupter의 최대 수로, 16-bit 정수 1~1024 범위입니다. controller별 추가 속성은 허용합니다.
properties:
usb2-lpm-disable:
description: Indicates if we don't want to enable USB2 HW LPM
type: boolean
usb3-lpm-capable:
description: Determines if platform is USB3 LPM capable
type: boolean
quirk-broken-port-ped:
description: Set if the controller has broken port disable mechanism
type: boolean
imod-interval-ns:
description: Interrupt moderation interval
default: 5000
num-hc-interrupters:
description: Maximum number of interrupters to allocate
$ref: /schemas/types.yaml#/definitions/uint16
minimum: 1
maximum: 1024
additionalProperties: true
USB 2.0·3.0 LPM 예제
39-48예제 `generic-xhci` controller는 register와 interrupt를 지정하고 USB 2.0 LPM은 비활성화하는 한편 USB 3.0 LPM capability는 활성화합니다.
examples:
- |
usb@f0930000 {
compatible = "generic-xhci";
reg = <0xf0930000 0x8c8>;
interrupts = <0x0 0x4e 0x0>;
usb2-lpm-disable;
usb3-lpm-capable;
};
요약과 해설
usb-xhci.yaml:1-48일반 xHCI controller의 LPM, port quirk와 interrupter 속성을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며, property, enum, phandle, example, source path와 원문 줄 좌표를 원형대로 보존합니다.