Skip to content

Commit 3bb3d19

Browse files
dianpopaShadowCurse
authored andcommitted
devices: doc for legacy devices
Doc for legacy devices Signed-off-by: Diana Popa <dpopa@amazon.com>
1 parent 4651cd4 commit 3bb3d19

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/vmm/src/devices/legacy/rtc_pl031.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::convert::TryInto;
55

66
use logger::{warn, IncMetric, RTCDeviceMetrics, METRICS};
77

8+
/// Wrapper over vm_superio's RTC implementation.
89
#[derive(Debug)]
910
pub struct RTCDevice(pub vm_superio::Rtc<&'static RTCDeviceMetrics>);
1011

src/vmm/src/devices/legacy/serial.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ use vm_superio::{Serial, Trigger};
2020

2121
use crate::devices::legacy::EventFdTrigger;
2222

23-
// Received Data Available interrupt - for letting the driver know that
24-
// there is some pending data to be processed.
23+
/// Received Data Available interrupt - for letting the driver know that
24+
/// there is some pending data to be processed.
2525
pub const IER_RDA_BIT: u8 = 0b0000_0001;
26-
// Received Data Available interrupt offset
26+
/// Received Data Available interrupt offset
2727
pub const IER_RDA_OFFSET: u8 = 1;
2828

2929
#[derive(Debug)]

0 commit comments

Comments
 (0)