← Documents Documentation/ABI/testing/sysfs-class-switchtec GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

Microsemi Switchtec class sysfs ABI

Switchtec management endpoint class와 component·product identity, firmware·device version 및 partition metadata를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-class-switchtec
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Switchtec class and instances

sysfs-class-switchtec:1-11

Switchtec class folder 아래에는 등록된 driver instance마다 0부터 시작하는 정수 X를 사용한 switchtecX directory가 생깁니다.

Component identity

sysfs-class-switchtec:14-37

Hardware에 저장된 component identifier, integer revision과 vendor string을 read-only attribute로 제공합니다.

Device and firmware versions

sysfs-class-switchtec:40-53

Hardware device version은 integer로, 현재 실행 중인 firmware version은 hexadecimal integer로 읽습니다.

Partition identity and count

sysfs-class-switchtec:56-69

현재 device의 switch partition number와 switch 전체 partition 수를 read-only integer로 제공합니다.

Product identity

sysfs-class-switchtec:72-96

Hardware에 저장된 product identifier, revision과 vendor를 read-only arbitrary string으로 제공합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 switchtec - Microsemi Switchtec PCI Switch Management Endpoint
2
3 For details on this subsystem look at Documentation/driver-api/switchtec.rst.
4
5 What: /sys/class/switchtec
6 Date: 05-Jan-2017
7 KernelVersion: v4.11
8 Contact: Logan Gunthorpe <logang@deltatee.com>
9 Description: The switchtec class subsystem folder.
10 Each registered switchtec driver is represented by a switchtecX
11 subfolder (X being an integer >= 0).
12
13
14 What: /sys/class/switchtec/switchtec[0-9]+/component_id
15 Date: 05-Jan-2017
16 KernelVersion: v4.11
17 Contact: Logan Gunthorpe <logang@deltatee.com>
18 Description: Component identifier as stored in the hardware (eg. PM8543)
19 (read only)
20 Values: arbitrary string.
21
22
23 What: /sys/class/switchtec/switchtec[0-9]+/component_revision
24 Date: 05-Jan-2017
25 KernelVersion: v4.11
26 Contact: Logan Gunthorpe <logang@deltatee.com>
27 Description: Component revision stored in the hardware (read only)
28 Values: integer.
29
30
31 What: /sys/class/switchtec/switchtec[0-9]+/component_vendor
32 Date: 05-Jan-2017
33 KernelVersion: v4.11
34 Contact: Logan Gunthorpe <logang@deltatee.com>
35 Description: Component vendor as stored in the hardware (eg. MICROSEM)
36 (read only)
37 Values: arbitrary string.
38
39
40 What: /sys/class/switchtec/switchtec[0-9]+/device_version
41 Date: 05-Jan-2017
42 KernelVersion: v4.11
43 Contact: Logan Gunthorpe <logang@deltatee.com>
44 Description: Device version as stored in the hardware (read only)
45 Values: integer.
46
47
48 What: /sys/class/switchtec/switchtec[0-9]+/fw_version
49 Date: 05-Jan-2017
50 KernelVersion: v4.11
51 Contact: Logan Gunthorpe <logang@deltatee.com>
52 Description: Currently running firmware version (read only)
53 Values: integer (in hexadecimal).
54
55
56 What: /sys/class/switchtec/switchtec[0-9]+/partition
57 Date: 05-Jan-2017
58 KernelVersion: v4.11
59 Contact: Logan Gunthorpe <logang@deltatee.com>
60 Description: Partition number for this device in the switch (read only)
61 Values: integer.
62
63
64 What: /sys/class/switchtec/switchtec[0-9]+/partition_count
65 Date: 05-Jan-2017
66 KernelVersion: v4.11
67 Contact: Logan Gunthorpe <logang@deltatee.com>
68 Description: Total number of partitions in the switch (read only)
69 Values: integer.
70
71
72 What: /sys/class/switchtec/switchtec[0-9]+/product_id
73 Date: 05-Jan-2017
74 KernelVersion: v4.11
75 Contact: Logan Gunthorpe <logang@deltatee.com>
76 Description: Product identifier as stored in the hardware (eg. PSX 48XG3)
77 (read only)
78 Values: arbitrary string.
79
80
81 What: /sys/class/switchtec/switchtec[0-9]+/product_revision
82 Date: 05-Jan-2017
83 KernelVersion: v4.11
84 Contact: Logan Gunthorpe <logang@deltatee.com>
85 Description: Product revision stored in the hardware (eg. RevB)
86 (read only)
87 Values: arbitrary string.
88
89
90 What: /sys/class/switchtec/switchtec[0-9]+/product_vendor
91 Date: 05-Jan-2017
92 KernelVersion: v4.11
93 Contact: Logan Gunthorpe <logang@deltatee.com>
94 Description: Product vendor as stored in the hardware (eg. MICROSEM)
95 (read only)
96 Values: arbitrary string.
97

3. 한국어 전문 번역

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

Switchtec class subsystem

1-11

switchtec은 Microsemi Switchtec PCI Switch Management Endpoint입니다. 이 subsystem의 자세한 내용은 Documentation/driver-api/switchtec.rst를 참조하십시오.

항목한국어 전문 번역
What/sys/class/switchtec
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionSwitchtec class subsystem folder입니다. 등록된 switchtec driver는 각각 switchtecX subfolder로 나타나며 X는 0 이상의 정수입니다.
Switchtec sysfs hierarchy
/sys/class/switchtecswitchtec0switchtec1추가 registered driver instances

Class root 아래 각 registered driver instance가 numbered subfolder로 나타납니다.

Hardware component identifier

14-20
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/component_id
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 component identifier입니다(예: PM8543). Read-only입니다.
Values임의의 string입니다.

Hardware component revision

23-28
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/component_revision
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 component revision입니다. Read-only입니다.
ValuesInteger입니다.

Hardware component vendor

31-37
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/component_vendor
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 component vendor입니다(예: MICROSEM). Read-only입니다.
Values임의의 string입니다.
Switchtec component identity
Attribute형식
component_idArbitrary stringPM8543
component_revisionIntegerHardware-defined
component_vendorArbitrary stringMICROSEM

Component 자체를 식별하는 세 read-only hardware field입니다.

Hardware device version

40-45
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/device_version
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 device version입니다. Read-only입니다.
ValuesInteger입니다.

Running firmware version

48-53
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/fw_version
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
Description현재 실행 중인 firmware version입니다. Read-only입니다.
ValuesHexadecimal integer입니다.
Switchtec version fields
Attribute대상형식
device_versionStored hardware device versionInteger
fw_versionCurrently running firmwareHexadecimal integer

Device hardware version과 running firmware version의 표현 형식입니다.

Current device partition

56-61
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/partition
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionSwitch 안에서 이 device가 속한 partition number입니다. Read-only입니다.
ValuesInteger입니다.

Total switch partition count

64-69
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/partition_count
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionSwitch의 total partition 수입니다. Read-only입니다.
ValuesInteger입니다.
Switchtec partition context
Switch 전체partition_count: total partitionspartition: 이 device의 partition number해당 partition의 management endpoint

Current management endpoint의 partition 위치를 switch 전체 count와 함께 해석합니다.

Hardware product identifier

72-78
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/product_id
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 product identifier입니다(예: PSX 48XG3). Read-only입니다.
Values임의의 string입니다.

Hardware product revision

81-87
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/product_revision
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 product revision입니다(예: RevB). Read-only입니다.
Values임의의 string입니다.

Hardware product vendor

90-96
항목한국어 전문 번역
What/sys/class/switchtec/switchtec[0-9]+/product_vendor
Date2017년 1월 5일
KernelVersionv4.11
ContactLogan Gunthorpe <logang@deltatee.com>
DescriptionHardware에 저장된 product vendor입니다(예: MICROSEM). Read-only입니다.
Values임의의 string입니다.
Switchtec product identity
Attribute내용
product_idProduct identifierPSX 48XG3
product_revisionProduct revisionRevB
product_vendorProduct vendorMICROSEM

Product-level identity를 구성하는 세 arbitrary-string field입니다.