@@ -167,10 +167,9 @@ fn reconnect_serial_to_console(serial_handle: Handle) {
167
167
/// Send the `request` string to the host via the `serial` device, then
168
168
/// wait up to 10 seconds to receive a reply. Returns an error if the
169
169
/// reply is not `"OK\n"`.
170
- fn send_request_to_host ( bt : & BootServices , request : HostRequest ) {
171
- let serial_handle = bt
172
- . get_handle_for_protocol :: < Serial > ( )
173
- . expect ( "Failed to get serial handle" ) ;
170
+ fn send_request_to_host ( request : HostRequest ) {
171
+ let serial_handle =
172
+ uefi:: boot:: get_handle_for_protocol :: < Serial > ( ) . expect ( "Failed to get serial handle" ) ;
174
173
175
174
// Open the serial protocol in exclusive mode.
176
175
//
@@ -183,8 +182,7 @@ fn send_request_to_host(bt: &BootServices, request: HostRequest) {
183
182
// end with `connect_controller`.
184
183
//
185
184
// [console splitter driver]: https://github.com/tianocore/edk2/blob/HEAD/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c
186
- let mut serial = bt
187
- . open_protocol_exclusive :: < Serial > ( serial_handle)
185
+ let mut serial = uefi:: boot:: open_protocol_exclusive :: < Serial > ( serial_handle)
188
186
. expect ( "Could not open serial protocol" ) ;
189
187
190
188
// Send the request, but don't check the result yet so that first
@@ -211,7 +209,7 @@ fn shutdown(mut st: SystemTable<Boot>) -> ! {
211
209
// Tell the host that tests are done. We are about to exit boot
212
210
// services, so we can't easily communicate with the host any later
213
211
// than this.
214
- send_request_to_host ( st . boot_services ( ) , HostRequest :: TestsComplete ) ;
212
+ send_request_to_host ( HostRequest :: TestsComplete ) ;
215
213
216
214
// Send a special log to the host so that we can verify that logging works
217
215
// up until exiting boot services. See `reconnect_serial_to_console` for the
0 commit comments