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 {
52
52
} ;
53
53
}
54
54
55
+ /// Memory mapped implementation
55
56
pub mod mmio;
56
57
#[ cfg( target_arch = "x86_64" ) ]
58
+ /// Port asm commands implementation
57
59
pub mod x86_64;
58
60
61
+ pub use crate :: mmio:: MmioSerialPort ;
59
62
#[ cfg( target_arch = "x86_64" ) ]
60
63
pub use crate :: x86_64:: SerialPort ;
61
- pub use crate :: mmio:: MmioSerialPort ;
62
64
63
65
bitflags ! {
64
66
/// 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
+
1
9
use crate :: LineStsFlags ;
2
- use core:: { fmt, sync:: atomic:: {
3
- AtomicPtr ,
4
- Ordering ,
5
- } } ;
6
10
7
11
/// An interface to a serial port that allows sending out individual bytes.
8
12
pub struct MmioSerialPort {
Original file line number Diff line number Diff line change
1
+ use core:: fmt;
2
+
1
3
use x86_64:: instructions:: port:: Port ;
4
+
2
5
use crate :: LineStsFlags ;
3
- use core:: fmt;
4
6
5
7
/// An interface to a serial port that allows sending out individual bytes.
6
8
pub struct SerialPort {
You can’t perform that action at this time.
0 commit comments