Skip to content

Commit 75b378f

Browse files
00xcJonathanWoollett-Light
authored andcommitted
i8042: add I8042Device::reset_evt() method
Make the I8042Device implementation more symmetric with other devices by allowing the user to get a reference to the underlying trigger descriptor. Signed-off-by: Carlos López <[email protected]>
1 parent d2cc90a commit 75b378f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

vm-superio/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
# Upcoming version
4+
5+
## Changed
6+
7+
- Added a `reset_evt` to the `I8042Device` type to retrieve the underlying
8+
reset event object.
9+
310
# v0.7.0
411

512
## Changed

vm-superio/src/i8042.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ impl<T: Trigger> I8042Device<T> {
8686
I8042Device { reset_evt }
8787
}
8888

89+
/// Provides a reference to the reset event object.
90+
pub fn reset_evt(&self) -> &T {
91+
&self.reset_evt
92+
}
93+
8994
/// Handles a read request from the driver at `_offset` offset from the
9095
/// base I/O address.
9196
///

0 commit comments

Comments
 (0)