File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ macro_rules! wait_for {
5252 } ;
5353}
5454
55+ /// Memory mapped implementation
5556pub mod mmio;
5657#[ cfg( target_arch = "x86_64" ) ]
58+ /// Port asm commands implementation
5759pub mod x86_64;
5860
61+ pub use crate :: mmio:: MmioSerialPort ;
5962#[ cfg( target_arch = "x86_64" ) ]
6063pub use crate :: x86_64:: SerialPort ;
61- pub use crate :: mmio:: MmioSerialPort ;
6264
6365bitflags ! {
6466 /// Interrupt enable flags
Original file line number Diff line number Diff line change 1+ use core:: {
2+ fmt,
3+ sync:: atomic:: {
4+ AtomicPtr ,
5+ Ordering ,
6+ } ,
7+ } ;
8+
19use crate :: LineStsFlags ;
2- use core:: { fmt, sync:: atomic:: {
3- AtomicPtr ,
4- Ordering ,
5- } } ;
610
711/// An interface to a serial port that allows sending out individual bytes.
812pub struct MmioSerialPort {
Original file line number Diff line number Diff line change 1+ use core:: fmt;
2+
13use x86_64:: instructions:: port:: Port ;
4+
25use crate :: LineStsFlags ;
3- use core:: fmt;
46
57/// An interface to a serial port that allows sending out individual bytes.
68pub struct SerialPort {
You can’t perform that action at this time.
0 commit comments