요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Shift-register output bytes
debugfs-moxtet:19-35output은 각 module shift register에 마지막으로 쓴 값을 읽거나 새 값을 쓰는 read-write hexadecimal interface입니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/kernel/debug/moxtet/input
2
Date: March 2019
3
KernelVersion: 5.3
4
Contact: Marek Behún <kabel@kernel.org>
5
Description: (Read) Read input from the shift registers, in hexadecimal.
6
Returns N+1 bytes, where N is the number of Moxtet connected
7
modules. The first byte is from the CPU board itself.
9
Example::
11
101214
13
== =======================================
14
10 CPU board with SD card
15
12 2 = PCIe module, 1 = IRQ not active
16
14 4 = Peridot module, 1 = IRQ not active
17
== =======================================
19
What: /sys/kernel/debug/moxtet/output
20
Date: March 2019
21
KernelVersion: 5.3
22
Contact: Marek Behún <kabel@kernel.org>
23
Description: (RW) Read last written value to the shift registers, in
24
hexadecimal, or write values to the shift registers, also
25
in hexadecimal.
27
Example::
29
0102
31
== ================================================
32
01 01 was last written, or is to be written, to the
33
first module's shift register
34
02 the same for second module
35
== ================================================
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Moxtet shift-register input
1-17| 항목 | 내용 |
|---|---|
| What | /sys/kernel/debug/moxtet/input |
| Date | 2019년 3월 |
| KernelVersion | 5.3 |
| Contact | Marek Behún <kabel@kernel.org> |
| Description | (Read) Shift register의 input을 hexadecimal로 읽습니다. Moxtet에 연결된 module 수를 N이라 할 때 N+1 bytes를 반환하며, 첫 byte는 CPU board 자체에서 옵니다. |
예:
101214
| Byte | 의미 |
|---|---|
| 10 | SD card가 있는 CPU board |
| 12 | 2 = PCIe module, 1 = IRQ not active |
| 14 | 4 = Peridot module, 1 = IRQ not active |
Moxtet shift-register output
19-35| 항목 | 내용 |
|---|---|
| What | /sys/kernel/debug/moxtet/output |
| Date | 2019년 3월 |
| KernelVersion | 5.3 |
| Contact | Marek Behún <kabel@kernel.org> |
| Description | (RW) Shift register에 마지막으로 쓴 값을 hexadecimal로 읽거나, shift register에 쓸 값을 역시 hexadecimal로 기록합니다. |
예:
0102
| Byte | 의미 |
|---|---|
| 01 | 첫 번째 module의 shift register에 마지막으로 쓴 값이거나 새로 쓸 값 |
| 02 | 두 번째 module에 대해 같은 의미 |
input = 10 12 14→Byte 0: CPU board 0x10→Byte 1: PCIe module 0x12→Byte 2: Peridot module 0x14
output = 01 02→Module 1 register = 0x01→Module 2 register = 0x02
Input은 CPU board byte를 포함해 N+1 bytes이고, output은 연결 module마다 한 byte를 배치한다.
Shift-register input bytes
debugfs-moxtet:1-17input은 CPU board byte를 선두로 하고 연결 module 수 N만큼의 byte를 뒤따르게 하여 총 N+1 bytes를 hexadecimal로 반환합니다.