File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed
Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -102,25 +102,6 @@ impl ConstantDevice {
102102}
103103
104104impl BusDevice {
105- pub fn i8042_device_ref ( & self ) -> Option < & I8042Device > {
106- match self {
107- Self :: I8042Device ( x) => Some ( x) ,
108- _ => None ,
109- }
110- }
111- #[ cfg( target_arch = "aarch64" ) ]
112- pub fn rtc_device_ref ( & self ) -> Option < & RTCDevice > {
113- match self {
114- Self :: RTCDevice ( x) => Some ( x) ,
115- _ => None ,
116- }
117- }
118- pub fn boot_timer_ref ( & self ) -> Option < & BootTimer > {
119- match self {
120- Self :: BootTimer ( x) => Some ( x) ,
121- _ => None ,
122- }
123- }
124105 pub fn mmio_transport_ref ( & self ) -> Option < & MmioTransport > {
125106 match self {
126107 Self :: MmioTransport ( x) => Some ( x) ,
@@ -140,25 +121,6 @@ impl BusDevice {
140121 _ => None ,
141122 }
142123 }
143- #[ cfg( target_arch = "aarch64" ) ]
144- pub fn rtc_device_mut ( & mut self ) -> Option < & mut RTCDevice > {
145- match self {
146- Self :: RTCDevice ( x) => Some ( x) ,
147- _ => None ,
148- }
149- }
150- pub fn boot_timer_mut ( & mut self ) -> Option < & mut BootTimer > {
151- match self {
152- Self :: BootTimer ( x) => Some ( x) ,
153- _ => None ,
154- }
155- }
156- pub fn mmio_transport_mut ( & mut self ) -> Option < & mut MmioTransport > {
157- match self {
158- Self :: MmioTransport ( x) => Some ( x) ,
159- _ => None ,
160- }
161- }
162124 pub fn serial_mut ( & mut self ) -> Option < & mut SerialDevice < std:: io:: Stdin > > {
163125 match self {
164126 Self :: Serial ( x) => Some ( x) ,
You can’t perform that action at this time.
0 commit comments