Skip to content

Commit 57ff7a8

Browse files
committed
pldm: Advertise more control commands
Add some more recently added control commands. MultipartSend and MultipartReceive are also added, since they may be handled externally by PLDM subtypes. Signed-off-by: Matt Johnston <[email protected]>
1 parent e59997b commit 57ff7a8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pldm/src/control/responder.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,18 @@ impl<const N: usize> Responder<N> {
122122
0,
123123
0xf1f1f000,
124124
None,
125-
&[Cmd::SetTID as u8, Cmd::GetTID as u8],
125+
&[
126+
Cmd::SetTID,
127+
Cmd::GetTID,
128+
Cmd::GetPLDMVersion,
129+
Cmd::GetPLDMTypes,
130+
Cmd::GetPLDMCommands,
131+
Cmd::NegotiateTransferParameters,
132+
// May be handled by PLDM subtypes
133+
Cmd::MultipartSend,
134+
Cmd::MultipartReceive,
135+
]
136+
.map(|c| c as u8),
126137
);
127138
let _ = r.types.push(t);
128139
r

0 commit comments

Comments
 (0)