Skip to content

Commit

Permalink
Allow init to proceed without PS/2 keyboard or mouse (theseus-os#1082)
Browse files Browse the repository at this point in the history
* If a PS/2 controller exists, but no keyboard or mouse is plugged in,
  `reset`ting those devices fails.
* This PR handles that situation gracefully by logging an error
  and allowing initialization to continue without them. e06c84a
  • Loading branch information
tsoutsman committed Dec 13, 2023
1 parent ca40552 commit 6abeaed
Show file tree
Hide file tree
Showing 113 changed files with 672 additions and 421 deletions.
2 changes: 1 addition & 1 deletion doc/app_io/trait.ImmutableWrite.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

// Provided method
fn <a href="#method.write_all" class="fn">write_all</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.unit.html">()</a>&gt; { ... }
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.write" class="method"><a class="src rightside" href="../src/app_io/lib.rs.html#27">source</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.write_all" class="method"><a class="src rightside" href="../src/app_io/lib.rs.html#29-44">source</a><h4 class="code-header">fn <a href="#method.write_all" class="fn">write_all</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ImmutableWrite-for-Slave" class="impl"><a class="src rightside" href="../src/app_io/lib.rs.html#65-69">source</a><a href="#impl-ImmutableWrite-for-Slave" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ImmutableWrite.html" title="trait app_io::ImmutableWrite">ImmutableWrite</a> for Slave</h3></section></summary><div class="impl-items"><section id="method.write" class="method trait-impl"><a class="src rightside" href="../src/app_io/lib.rs.html#66-68">source</a><a href="#method.write" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ImmutableWrite-for-StdioWriter" class="impl"><a class="src rightside" href="../src/app_io/lib.rs.html#53-57">source</a><a href="#impl-ImmutableWrite-for-StdioWriter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ImmutableWrite.html" title="trait app_io::ImmutableWrite">ImmutableWrite</a> for <a class="struct" href="../stdio/struct.StdioWriter.html" title="struct stdio::StdioWriter">StdioWriter</a></h3></section></summary><div class="impl-items"><section id="method.write-1" class="method trait-impl"><a class="src rightside" href="../src/app_io/lib.rs.html#54-56">source</a><a href="#method.write-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../implementors/app_io/trait.ImmutableWrite.js" data-ignore-extern-crates="stdio,tty" async></script></section></div></main></body></html>
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.write" class="method"><a class="src rightside" href="../src/app_io/lib.rs.html#27">source</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.write_all" class="method"><a class="src rightside" href="../src/app_io/lib.rs.html#29-44">source</a><h4 class="code-header">fn <a href="#method.write_all" class="fn">write_all</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.unit.html">()</a>&gt;</h4></section></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ImmutableWrite-for-StdioWriter" class="impl"><a class="src rightside" href="../src/app_io/lib.rs.html#53-57">source</a><a href="#impl-ImmutableWrite-for-StdioWriter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ImmutableWrite.html" title="trait app_io::ImmutableWrite">ImmutableWrite</a> for <a class="struct" href="../stdio/struct.StdioWriter.html" title="struct stdio::StdioWriter">StdioWriter</a></h3></section></summary><div class="impl-items"><section id="method.write" class="method trait-impl"><a class="src rightside" href="../src/app_io/lib.rs.html#54-56">source</a><a href="#method.write" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ImmutableWrite-for-Slave" class="impl"><a class="src rightside" href="../src/app_io/lib.rs.html#65-69">source</a><a href="#impl-ImmutableWrite-for-Slave" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ImmutableWrite.html" title="trait app_io::ImmutableWrite">ImmutableWrite</a> for Slave</h3></section></summary><div class="impl-items"><section id="method.write-1" class="method trait-impl"><a class="src rightside" href="../src/app_io/lib.rs.html#66-68">source</a><a href="#method.write-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&amp;self, buf: &amp;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>]) -&gt; Result&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../implementors/app_io/trait.ImmutableWrite.js" data-ignore-extern-crates="stdio,tty" async></script></section></div></main></body></html>
2 changes: 1 addition & 1 deletion doc/arm_boards/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Configuration and definitions for specific boards on aarch64 systems."><title>arm_boards - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="arm_boards" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0-nightly (aa1a71e9e 2023-10-26)" data-channel="nightly" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f34af1a0ee6bacd.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../arm_boards/index.html">arm_boards</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block">
<li><a id="all-types" href="all.html">All Items</a></li></ul></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">arm_boards</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/arm_boards/lib.rs.html#1-74">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Configuration and definitions for specific boards on aarch64 systems.</p>
<li><a id="all-types" href="all.html">All Items</a></li></ul></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">arm_boards</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/arm_boards/lib.rs.html#1-77">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Configuration and definitions for specific boards on aarch64 systems.</p>
<div><table><thead><tr><th>Board Name</th><th>Num CPUs</th><th>Interrupt Controller</th><th>Secondary CPU Startup Method</th></tr></thead><tbody>
<tr><td>qemu_virt</td><td>4</td><td>GICv3</td><td>PSCI</td></tr>
</tbody></table>
Expand Down
1 change: 0 additions & 1 deletion doc/async_channel/all.html

This file was deleted.

Loading

0 comments on commit 6abeaed

Please sign in to comment.