요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/devices/platform/<phy-name>/role
2
Date: October 2016
3
KernelVersion: 4.10
4
Contact: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
5
Description:
6
This file can be read and write.
7
The file can show/change the phy mode for role swap of usb.
9
Write the following strings to change the mode:
11
- "host" - switching mode from peripheral to host.
12
- "peripheral" - switching mode from host to peripheral.
14
Read the file, then it shows the following strings:
16
- "host" - The mode is host now.
17
- "peripheral" - The mode is peripheral now.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
R-Car Gen3 USB2 PHY role sysfs ABI: role
1-17| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/devices/platform/<phy-name>/role |
| Date | 2016년 10월 |
| KernelVersion | 4.10 |
| Contact | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Description | `/sys/devices/platform/<phy-name>/role`은 read/write할 수 있으며 USB role swap을 위한 PHY mode를 표시하거나 변경합니다. `host`를 쓰면 peripheral에서 host로, `peripheral`을 쓰면 host에서 peripheral로 전환합니다. Read 결과 `host`는 현재 host mode, `peripheral`은 현재 peripheral mode임을 뜻합니다. |
StringWrite effectRead meaning
hostPeripheral to hostCurrently host
peripheralHost to peripheralCurrently peripheral
Write transition과 readback 의미를 같은 strings로 대응시킵니다.
USB2 PHY role swap
sysfs-platform-phy-rcar-gen3-usb2:1-17같은 host/peripheral strings를 write command와 current-mode readback에 사용합니다.