Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

THE BLUETOOTH DEVICE IS CONNECTED SUCCESSFULLY 🗣️🔥

Layle86efa16e2ede
diff --git a/crates/gecko/src/hollywood/ipc.rs b/crates/gecko/src/hollywood/ipc.rs
index d8e3ce0..503f6ef 100644
--- a/crates/gecko/src/hollywood/ipc.rs
+++ b/crates/gecko/src/hollywood/ipc.rs
@@ -2,6 +2,7 @@ pub mod di;
pub mod es;
pub mod fs;
pub mod stm;
+pub mod usb;
use crate::dvd::DvdInterface;
use crate::hollywood::regs::{ArmCtrl, ArmMsg, PpcCtrl, PpcMsg};
diff --git a/crates/gecko/src/hollywood/ipc/usb.rs b/crates/gecko/src/hollywood/ipc/usb.rs
new file mode 100644
index 0000000..987fbd0
--- /dev/null
+++ b/crates/gecko/src/hollywood/ipc/usb.rs
@@ -0,0 +1,23 @@
+use crate::hollywood::ipc::IosDevice;
+
+pub struct Usb;
+
+impl IosDevice for Usb {
+ fn ioctlv(
+ &mut self,
+ _ctx: &mut super::DeviceContext<'_>,
+ cmd: u32,
+ in_count: u32,
+ io_count: u32,
+ vec_ptr: u32,
+ ) -> i32 {
+ tracing::warn!(
+ cmd = format!("{cmd:#010X}"),
+ in_count,
+ io_count,
+ vec_ptr = format!("{vec_ptr:#010X}"),
+ "USB: unimplemented ioctlv"
+ );
+ 0
+ }
+}
diff --git a/crates/gecko/src/starlet.rs b/crates/gecko/src/starlet.rs
index 6b36fc3..ebe1796 100644
--- a/crates/gecko/src/starlet.rs
+++ b/crates/gecko/src/starlet.rs
@@ -122,6 +122,7 @@ impl System<{ crate::WII }> {
self.starlet
.register("/dev/di", Box::new(ipc::di::DiskInterface::new()));
self.starlet.register("/dev/es", Box::new(ipc::es::ETicketServices));
+ self.starlet.register("/dev/usb/oh1/57e/305", Box::new(ipc::usb::Usb));
}
pub fn create_device_context(&mut self) -> (&mut Starlet, DeviceContext<'_>) {