-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add virtio-def
crate for virtio definitions
#1149
Conversation
c1ea040
to
343a3a5
Compare
@@ -141,13 +142,13 @@ impl ComCfg { | |||
|
|||
/// Returns the device status field. | |||
pub fn dev_status(&self) -> u8 { | |||
unsafe { read_volatile(&self.com_cfg.status).try_into().unwrap() } | |||
unsafe { read_volatile(&self.com_cfg.status).bits() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to return the underlying u8 instead of a DeviceStatus?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we should do that! But the scope of this PR is just changing the underlying types without separate changes to the API that can happen later. :)
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
This comment was made obsolete by 68effc9#diff-aec828209d10fe04d7a8a6f063279edaa909f90ecabc93f062445611e4f63972L380 Signed-off-by: Martin Kröning <[email protected]>
No description provided.