Skip to content

Commit c8138ab

Browse files
committed
Add DisablePs2Emulation host command
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent d515b02 commit c8138ab

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

framework_lib/src/chromium_ec/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub enum EcCommands {
6060
FlashNotified = 0x3E01,
6161
/// Change charge limit
6262
ChargeLimitControl = 0x3E03,
63+
DisablePs2Emulation = 0x3E8,
6364
/// Get/Set Fingerprint LED brightness
6465
FpLedLevelControl = 0x3E0E,
6566
/// Get information about the current chassis open/close status

framework_lib/src/chromium_ec/commands.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,17 @@ impl EcRequest<EcResponseChargeLimitControl> for EcRequestChargeLimitControl {
10481048
/// TODO: Use this
10491049
pub const EC_CHARGE_LIMIT_RESTORE: u8 = 0x7F;
10501050

1051+
#[repr(C, packed)]
1052+
pub struct EcRequestDisablePs2Emulation {
1053+
pub disable: u8,
1054+
}
1055+
1056+
impl EcRequest<()> for EcRequestDisablePs2Emulation {
1057+
fn command_id() -> EcCommands {
1058+
EcCommands::DisablePs2Emulation
1059+
}
1060+
}
1061+
10511062
#[repr(u8)]
10521063
#[derive(Debug, FromPrimitive)]
10531064
pub enum FpLedBrightnessLevel {

0 commit comments

Comments
 (0)