요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
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 <[email protected]>
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. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, 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 <[email protected]> |
| 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에 사용합니다.