blob: 4582ac28bfc61710efe7302315c2a16259647bf5 [file] [log] [blame]
Cheng C Yangeedde142019-12-24 14:48:40 +08001description: >
2 SMBIOS MDR V2 service
3methods:
4 - name: GetDirectoryInformation
5 description: >
6 Get the directory with directory index.
7 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -05008 - name: dirIndex
9 type: byte
10 description: >
11 Directory index of SMBIOS.
Cheng C Yangeedde142019-12-24 14:48:40 +080012 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050013 - name: dir
14 type: array[byte]
15 description: >
16 Directory of agent.
Cheng C Yangeedde142019-12-24 14:48:40 +080017 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050018 - self.Error.InvalidParameter
Cheng C Yangeedde142019-12-24 14:48:40 +080019
20 - name: GetDataInformation
21 description: >
22 Get the data info with id index and data set ID.
23 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050024 - name: idIndex
25 type: byte
26 description: >
27 Index of SMBIOS directory.
Cheng C Yangeedde142019-12-24 14:48:40 +080028 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050029 - name: dataInfo
30 type: array[byte]
31 description: >
32 Data information of SMBIOS.
Cheng C Yangeedde142019-12-24 14:48:40 +080033 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050034 - self.Error.InvalidParameter
Cheng C Yangeedde142019-12-24 14:48:40 +080035
36 - name: SendDirectoryInformation
37 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050038 Send directory information to SMBIOS directory.
Cheng C Yangeedde142019-12-24 14:48:40 +080039 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050040 - name: dirVersion
41 type: byte
42 description: >
43 A counter which increments each time directory updated.
44 - name: dirIndex
45 type: byte
46 description: >
47 Directory index of SMBIOS.
48 - name: returnedEntries
49 type: byte
50 description: >
51 Indicates number of directory entries.
52 - name: remainingEntries
53 type: byte
54 description: >
55 Remaining entries which are higher than index in this transfer.
56 - name: dirEntry
57 type: array[byte]
58 description: >
59 Data set ID of SMBIOS table.
Cheng C Yangeedde142019-12-24 14:48:40 +080060 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050061 - name: status
62 type: boolean
63 description: >
64 Need to continue directory transmisson or not.
Cheng C Yangeedde142019-12-24 14:48:40 +080065 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050066 - self.Error.InvalidParameter
Cheng C Yangeedde142019-12-24 14:48:40 +080067
68 - name: GetDataOffer
69 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050070 Get data set ID.
Cheng C Yangeedde142019-12-24 14:48:40 +080071 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050072 - name: offer
73 type: array[byte]
74 description: >
75 Data set ID.
Cheng C Yangeedde142019-12-24 14:48:40 +080076 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050077 - self.Error.UpdateInProgress
Cheng C Yangeedde142019-12-24 14:48:40 +080078
79 - name: SendDataInformation
80 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050081 Send data information with directory index.
Cheng C Yangeedde142019-12-24 14:48:40 +080082 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050083 - name: idIndex
84 type: byte
85 description: >
86 Index of SMBIOS directory.
87 - name: flag
88 type: byte
89 description: >
90 Valid flag to set dir entry status.
91 - name: dataLen
92 type: uint32
93 description: >
94 The length of the data in bytes.
95 - name: dataVer
96 type: uint32
97 description: >
98 The version number of this data.
99 - name: timeStamp
100 type: uint32
101 description: >
102 Timestamp determinded by the agent.
Cheng C Yangeedde142019-12-24 14:48:40 +0800103 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -0500104 - name: status
105 type: boolean
106 description: >
107 Whether data changes.
Cheng C Yangeedde142019-12-24 14:48:40 +0800108 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -0500109 - self.Error.InvalidParameter
Cheng C Yangeedde142019-12-24 14:48:40 +0800110
111 - name: FindIdIndex
112 description: >
113 Find id index by data info.
114 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -0500115 - name: dataInfo
116 type: array[byte]
117 description: >
118 Data info of data entry.
Cheng C Yangeedde142019-12-24 14:48:40 +0800119 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -0500120 - name: idIndex
121 type: int32
122 description: >
123 Id index of data entry.
Cheng C Yangeedde142019-12-24 14:48:40 +0800124 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -0500125 - self.Error.InvalidId
Cheng C Yangeedde142019-12-24 14:48:40 +0800126
127 - name: AgentSynchronizeData
128 description: >
129 Synchronize SMBIOS data from file.
130 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -0500131 - name: status
132 type: boolean
133 description: >
134 Whether synchronization succeed or not.
Cheng C Yangeedde142019-12-24 14:48:40 +0800135
136 - name: SynchronizeDirectoryCommonData
137 description: >
138 Synchronize directory common data.
139 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -0500140 - name: idIndex
141 type: byte
142 description: >
143 Index of SMBIOS directory.
144 - name: size
145 type: uint32
146 description: >
147 Size of data that BIOS prepare to transfer.
Cheng C Yangeedde142019-12-24 14:48:40 +0800148 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -0500149 - name: commonData
150 type: array[uint32]
151 description: >
152 Directory common data includes data size, version and timestamp.
Cheng C Yangeedde142019-12-24 14:48:40 +0800153
154properties:
155 - name: DirectoryEntries
156 type: byte
157 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -0500158 Numbers of directory entries.