← Documents Documentation/ABI/testing/debugfs-moxtet GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

Moxtet shift-register debugfs ABI

Moxtet CPU board와 연결 module의 shift-register input을 N+1 hexadecimal bytes로 읽고 module별 output byte를 읽거나 쓰는 debugfs ABI를 설명합니다.

Source pathDocumentation/ABI/testing/debugfs-moxtet
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Shift-register input bytes

debugfs-moxtet:1-17

input은 CPU board byte를 선두로 하고 연결 module 수 N만큼의 byte를 뒤따르게 하여 총 N+1 bytes를 hexadecimal로 반환합니다.

Shift-register output bytes

debugfs-moxtet:19-35

output은 각 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 <[email protected]>
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.
8
9 Example::
10
11 101214
12
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 == =======================================
18
19 What: /sys/kernel/debug/moxtet/output
20 Date: March 2019
21 KernelVersion: 5.3
22 Contact: Marek Behún <[email protected]>
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.
26
27 Example::
28
29 0102
30
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 == ================================================
36

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Moxtet shift-register input

1-17
항목내용
What/sys/kernel/debug/moxtet/input
Date2019년 3월
KernelVersion5.3
ContactMarek Behún <[email protected]>
Description(Read) Shift register의 input을 hexadecimal로 읽습니다. Moxtet에 연결된 module 수를 N이라 할 때 N+1 bytes를 반환하며, 첫 byte는 CPU board 자체에서 옵니다.

예:

101214
Byte의미
10SD card가 있는 CPU board
122 = PCIe module, 1 = IRQ not active
144 = Peridot module, 1 = IRQ not active

Moxtet shift-register output

19-35
항목내용
What/sys/kernel/debug/moxtet/output
Date2019년 3월
KernelVersion5.3
ContactMarek Behún <[email protected]>
Description(RW) Shift register에 마지막으로 쓴 값을 hexadecimal로 읽거나, shift register에 쓸 값을 역시 hexadecimal로 기록합니다.

예:

0102
Byte의미
01첫 번째 module의 shift register에 마지막으로 쓴 값이거나 새로 쓸 값
02두 번째 module에 대해 같은 의미
Moxtet shift-register byte 순서
input = 10 12 14Byte 0: CPU board 0x10Byte 1: PCIe module 0x12Byte 2: Peridot module 0x14
output = 01 02Module 1 register = 0x01Module 2 register = 0x02

Input은 CPU board byte를 포함해 N+1 bytes이고, output은 연결 module마다 한 byte를 배치한다.