Rust XHCI scaffolding
This commit is contained in:
parent
1a48911745
commit
b9cd550a63
13 changed files with 59 additions and 31 deletions
10
rust/Cargo.lock
generated
10
rust/Cargo.lock
generated
|
|
@ -161,7 +161,7 @@ version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"mammoth",
|
"mammoth",
|
||||||
"victoriafalls",
|
"victoriafalls",
|
||||||
"voyageurs",
|
"voyageurs_client",
|
||||||
"yellowstone-yunq",
|
"yellowstone-yunq",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -192,6 +192,13 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "voyageurs"
|
name = "voyageurs"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"mammoth",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "voyageurs_client"
|
||||||
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"mammoth",
|
"mammoth",
|
||||||
"yellowstone-yunq",
|
"yellowstone-yunq",
|
||||||
|
|
@ -206,7 +213,6 @@ dependencies = [
|
||||||
"denali_client",
|
"denali_client",
|
||||||
"mammoth",
|
"mammoth",
|
||||||
"victoriafalls",
|
"victoriafalls",
|
||||||
"voyageurs",
|
|
||||||
"yellowstone-yunq",
|
"yellowstone-yunq",
|
||||||
"yunq",
|
"yunq",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,18 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
||||||
members = [
|
members = [
|
||||||
"lib/client/denali_client", "lib/fs/ext2",
|
"lib/client/denali_client",
|
||||||
"lib/mammoth", "lib/pci",
|
"lib/client/voyageurs_client",
|
||||||
"lib/voyageurs",
|
"lib/fs/ext2",
|
||||||
|
"lib/mammoth",
|
||||||
|
"lib/pci",
|
||||||
"lib/yellowstone",
|
"lib/yellowstone",
|
||||||
"lib/yunq",
|
"lib/yunq",
|
||||||
"lib/yunq-test",
|
"lib/yunq-test",
|
||||||
"sys/denali",
|
"sys/denali",
|
||||||
"sys/teton",
|
"sys/teton",
|
||||||
"sys/victoriafalls",
|
"sys/victoriafalls",
|
||||||
|
"sys/voyageurs",
|
||||||
"sys/yellowstone",
|
"sys/yellowstone",
|
||||||
"usr/testbed",
|
"usr/testbed",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
12
rust/lib/client/voyageurs_client/Cargo.toml
Normal file
12
rust/lib/client/voyageurs_client/Cargo.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[package]
|
||||||
|
name = "voyageurs_client"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
mammoth = { path = "../../mammoth" }
|
||||||
|
yellowstone-yunq = { path = "../../yellowstone" }
|
||||||
|
yunq = { path = "../../yunq" }
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
yunqc = { path = "../../../../yunq/rust" }
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let input_file = "../../../sys/voyageurs/lib/voyageurs/voyageurs.yunq";
|
let input_file = "../../../../sys/voyageurs/lib/voyageurs/voyageurs.yunq";
|
||||||
|
|
||||||
println!("cargo::rerun-if-changed={input_file}");
|
println!("cargo::rerun-if-changed={input_file}");
|
||||||
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "voyageurs"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
mammoth = { path = "../mammoth" }
|
|
||||||
yellowstone-yunq = { path = "../yellowstone" }
|
|
||||||
yunq = {path = "../yunq"}
|
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
yunqc = {path = "../../../yunq/rust"}
|
|
||||||
|
|
||||||
|
|
@ -6,5 +6,5 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mammoth = { path = "../../lib/mammoth" }
|
mammoth = { path = "../../lib/mammoth" }
|
||||||
victoriafalls = { path = "../victoriafalls" }
|
victoriafalls = { path = "../victoriafalls" }
|
||||||
voyageurs = { path = "../../lib/voyageurs" }
|
voyageurs_client = { path = "../../lib/client/voyageurs_client/" }
|
||||||
yellowstone-yunq = { path = "../../lib/yellowstone" }
|
yellowstone-yunq = { path = "../../lib/yellowstone" }
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ mod psf;
|
||||||
mod terminal;
|
mod terminal;
|
||||||
|
|
||||||
use mammoth::{debug, define_entry, zion::z_err_t};
|
use mammoth::{debug, define_entry, zion::z_err_t};
|
||||||
use voyageurs::listener;
|
use voyageurs_client::listener;
|
||||||
|
|
||||||
define_entry!();
|
define_entry!();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use alloc::{
|
||||||
string::{String, ToString},
|
string::{String, ToString},
|
||||||
};
|
};
|
||||||
use victoriafalls::dir;
|
use victoriafalls::dir;
|
||||||
use voyageurs::listener::KeyboardHandler;
|
use voyageurs_client::listener::KeyboardHandler;
|
||||||
|
|
||||||
pub struct Terminal {
|
pub struct Terminal {
|
||||||
console: Console,
|
console: Console,
|
||||||
|
|
|
||||||
7
rust/sys/voyageurs/Cargo.toml
Normal file
7
rust/sys/voyageurs/Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[package]
|
||||||
|
name = "voyageurs"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
mammoth = { path = "../../lib/mammoth/" }
|
||||||
14
rust/sys/voyageurs/src/main.rs
Normal file
14
rust/sys/voyageurs/src/main.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#![no_std]
|
||||||
|
#![no_main]
|
||||||
|
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
|
use mammoth::{debug, define_entry, zion::z_err_t};
|
||||||
|
|
||||||
|
define_entry!();
|
||||||
|
|
||||||
|
#[unsafe(no_mangle)]
|
||||||
|
extern "C" fn main() -> z_err_t {
|
||||||
|
debug!("In Voyageurs");
|
||||||
|
0
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,5 @@ edition = "2021"
|
||||||
mammoth = { path = "../../lib/mammoth" }
|
mammoth = { path = "../../lib/mammoth" }
|
||||||
denali_client = { path = "../../lib/client/denali_client" }
|
denali_client = { path = "../../lib/client/denali_client" }
|
||||||
victoriafalls = { path = "../victoriafalls" }
|
victoriafalls = { path = "../victoriafalls" }
|
||||||
voyageurs = { path = "../../lib/voyageurs" }
|
|
||||||
yellowstone-yunq = { path = "../../lib/yellowstone" }
|
yellowstone-yunq = { path = "../../lib/yellowstone" }
|
||||||
yunq = { path = "../../lib/yunq" }
|
yunq = { path = "../../lib/yunq" }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue